From 8c7c2cadd5ec68b66b9a0c6afc0434c4513c1135 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 23 Jun 2020 14:55:36 +0800 Subject: [PATCH] 20200623 代码提交 --- src/main/java/com/xcong/excoin/modules/systemSetting/controller/SystemSettingController.java | 46 +++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 43 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/xcong/excoin/modules/systemSetting/controller/SystemSettingController.java b/src/main/java/com/xcong/excoin/modules/systemSetting/controller/SystemSettingController.java index e5368e4..4116fe7 100644 --- a/src/main/java/com/xcong/excoin/modules/systemSetting/controller/SystemSettingController.java +++ b/src/main/java/com/xcong/excoin/modules/systemSetting/controller/SystemSettingController.java @@ -17,6 +17,7 @@ import com.xcong.excoin.common.entity.FebsResponse; import com.xcong.excoin.common.entity.QueryRequest; import com.xcong.excoin.modules.systemSetting.entity.PlatformBannerEntity; +import com.xcong.excoin.modules.systemSetting.entity.PlatformNoticeEntity; import com.xcong.excoin.modules.systemSetting.entity.PlatformSymbolsSkuEntity; import com.xcong.excoin.modules.systemSetting.entity.PlatformTradeSettingEntity; import com.xcong.excoin.modules.systemSetting.service.SystemSettingService; @@ -101,10 +102,49 @@ /** * 轮播图---新增 */ - @GetMapping("platformBannerAdd") + @PostMapping("platformBannerAdds") @ControllerEndpoint(operation = "轮播图---新增", exceptionMessage = "新增失败") - public FebsResponse platformBannerAdd() { - systemSettingService.platformBannerAdd(); + public FebsResponse platformBannerAdds(@Valid PlatformBannerEntity platformBannerEntity) { + systemSettingService.platformBannerAdd(platformBannerEntity); + return new FebsResponse().success(); + } + + /** + * 公告管理---列表 + */ + @GetMapping("noticeManage") + public FebsResponse noticeManage(PlatformNoticeEntity platformNoticeEntity, QueryRequest request) { + Map<String, Object> data = getDataTable(systemSettingService.findNoticeManageInPage(platformNoticeEntity, request)); + return new FebsResponse().success().data(data); + } + + /** + * 公告管理---确认 + * @return + */ + @PostMapping("noticeManageConfirm") + @ControllerEndpoint(operation = "公告管理---确认", exceptionMessage = "设置失败") + public FebsResponse noticeManageConfirm(@Valid PlatformNoticeEntity platformNoticeEntity) { + return systemSettingService.noticeManageConfirm(platformNoticeEntity); + } + + /** + * 公告管理---删除 + * @return + */ + @GetMapping("noticeManageDelete/{id}") + @ControllerEndpoint(operation = "公告管理---删除", exceptionMessage = "删除失败") + public FebsResponse noticeManageDelete(@NotNull(message = "{required}") @PathVariable Long id) { + return systemSettingService.noticeManageDelete(id); + } + + /** + * 公告管理---新增 + */ + @PostMapping("noticeManageAdds") + @ControllerEndpoint(operation = "公告管理---新增", exceptionMessage = "新增失败") + public FebsResponse noticeManageAdds(@Valid PlatformNoticeEntity platformNoticeEntity) { + systemSettingService.noticeManageAdds(platformNoticeEntity); return new FebsResponse().success(); } -- Gitblit v1.9.1