| | |
| | | import javax.management.Query; |
| | | import javax.validation.Valid; |
| | | import javax.validation.constraints.NotNull; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | |
| | | |
| | | |
| | | @GetMapping("findNewsCategoryList") |
| | | @ControllerEndpoint(operation = "") |
| | | @ControllerEndpoint(operation = "新闻分类列表", exceptionMessage = "获取失败") |
| | | public FebsResponse findNewsCategoryList(MallNewsCategory mallNewsCategory, QueryRequest request) { |
| | | return null; |
| | | return new FebsResponse().success().data(getDataTable(mallNewsInfoService.findNewsCategoryInPage(mallNewsCategory, request))); |
| | | } |
| | | |
| | | @PostMapping("addOrModifyNewsCategory") |
| | | @ControllerEndpoint(operation = "新闻分类", exceptionMessage = "新增失败") |
| | | public FebsResponse addOrModifyNewsCategory(MallNewsCategory mallNewsCategory) { |
| | | mallNewsInfoService.addOrModifyNewsCategory(mallNewsCategory); |
| | | return new FebsResponse().success().message("新增成功"); |
| | | } |
| | | |
| | | @GetMapping(value = "findAllCategoryList") |
| | | public FebsResponse findAllCategoryList() { |
| | | List<MallNewsCategory> categories = mallNewsInfoService.findAllCategory(); |
| | | return new FebsResponse().success().data(categories); |
| | | } |
| | | |
| | | } |