|
|
@ -33,6 +33,7 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletResponse; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
@ -73,6 +74,7 @@ public class BannerController { |
|
|
|
public Result save(@RequestBody BannerDTO dto) { |
|
|
|
//效验数据
|
|
|
|
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|
|
|
dto.setStateTime(new Date()); |
|
|
|
bannerService.saveOrUpdate(dto); |
|
|
|
return new Result(); |
|
|
|
} |
|
|
|