net.guerlab.smart.banner.web.controller.user.BannerController Maven / Gradle / Ivy
package net.guerlab.smart.banner.web.controller.user;
import io.swagger.annotations.Api;
import net.guerlab.commons.exception.ApplicationException;
import net.guerlab.smart.banner.core.domain.BannerDTO;
import net.guerlab.smart.banner.core.exception.BannerInvalidException;
import net.guerlab.smart.banner.core.searchparams.BannerSearchParams;
import net.guerlab.smart.banner.service.entity.Banner;
import net.guerlab.smart.banner.service.service.BannerService;
import net.guerlab.smart.platform.server.controller.BaseController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* banner
*
* @author guer
*/
@Api(tags = "banner")
@RestController("/user/banner")
@RequestMapping("/user/banner")
public class BannerController extends BaseController {
@Override
public void copyProperties(BannerDTO dto, Banner entity, Long id) {
super.copyProperties(dto, entity, id);
entity.setBannerId(id);
}
@Override
protected ApplicationException nullPointException() {
return new BannerInvalidException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy