net.guerlab.smart.banner.web.controller.user.BannerGroupController 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.BannerGroupDTO;
import net.guerlab.smart.banner.core.exception.BannerGroupInvalidException;
import net.guerlab.smart.banner.core.searchparams.BannerGroupSearchParams;
import net.guerlab.smart.banner.service.entity.BannerGroup;
import net.guerlab.smart.banner.service.service.BannerGroupService;
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/bannerGroup")
@RequestMapping("/user/bannerGroup")
public class BannerGroupController
extends BaseController {
@Override
public void copyProperties(BannerGroupDTO dto, BannerGroup entity, String id) {
super.copyProperties(dto, entity, id);
if (id != null) {
entity.setBannerGroupKey(id);
}
}
@Override
protected ApplicationException nullPointException() {
return new BannerGroupInvalidException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy