| | |
| | | import com.xcong.excoin.common.controller.BaseController;
|
| | | import com.xcong.excoin.common.entity.FebsResponse;
|
| | | import com.xcong.excoin.common.entity.QueryRequest;
|
| | | import com.xcong.excoin.modules.systemSetting.entity.AppVersionEntity;
|
| | | 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;
|
| | |
| | | /**
|
| | | * 交易设置---列表
|
| | | */
|
| | | @GetMapping("platformTradeSetting")
|
| | | public FebsResponse platformTradeSetting(PlatformTradeSettingEntity platformTradeSettingEntity, QueryRequest request) {
|
| | | Map<String, Object> data = getDataTable(systemSettingService.findPlatformTradeSettingInPage(platformTradeSettingEntity, request));
|
| | | return new FebsResponse().success().data(data);
|
| | | }
|
| | | // @GetMapping("platformTradeSetting")
|
| | | // public FebsResponse platformTradeSetting(PlatformTradeSettingEntity platformTradeSettingEntity, QueryRequest request) {
|
| | | // Map<String, Object> data = getDataTable(systemSettingService.findPlatformTradeSettingInPage(platformTradeSettingEntity, request));
|
| | | // return new FebsResponse().success().data(data);
|
| | | // }
|
| | |
|
| | | /**
|
| | | *交易设置---确认
|
| | | * @return
|
| | | */
|
| | | @PostMapping("platformTradeSettingConfirm")
|
| | | @ControllerEndpoint(operation = "交易设置---确认", exceptionMessage = "设置失败")
|
| | | public FebsResponse platformTradeSettingConfirm(@Valid PlatformTradeSettingEntity platformTradeSettingEntity) {
|
| | | return systemSettingService.platformTradeSettingConfirm(platformTradeSettingEntity);
|
| | | }
|
| | | // @PostMapping("platformTradeSettingConfirm")
|
| | | // @ControllerEndpoint(operation = "交易设置---确认", exceptionMessage = "设置失败")
|
| | | // public FebsResponse platformTradeSettingConfirm(@Valid PlatformTradeSettingEntity platformTradeSettingEntity) {
|
| | | // return systemSettingService.platformTradeSettingConfirm(platformTradeSettingEntity);
|
| | | // }
|
| | |
|
| | | /**
|
| | | * 币种规格---列表
|
| | | */
|
| | | @GetMapping("platformSymbolsSku")
|
| | | public FebsResponse platformSymbolsSku(PlatformSymbolsSkuEntity platformSymbolsSkuEntity, QueryRequest request) {
|
| | | Map<String, Object> data = getDataTable(systemSettingService.findPlatformSymbolsSkuInPage(platformSymbolsSkuEntity, request));
|
| | | return new FebsResponse().success().data(data);
|
| | | }
|
| | | // @GetMapping("platformSymbolsSku")
|
| | | // public FebsResponse platformSymbolsSku(PlatformSymbolsSkuEntity platformSymbolsSkuEntity, QueryRequest request) {
|
| | | // Map<String, Object> data = getDataTable(systemSettingService.findPlatformSymbolsSkuInPage(platformSymbolsSkuEntity, request));
|
| | | // return new FebsResponse().success().data(data);
|
| | | // }
|
| | |
|
| | | /**
|
| | | * 币种规格---确认
|
| | | * @return
|
| | | */
|
| | | @PostMapping("platformSymbolsSkuConfirm")
|
| | | @ControllerEndpoint(operation = "币种规格---确认", exceptionMessage = "设置失败")
|
| | | public FebsResponse platformSymbolsSkuConfirm(@Valid PlatformSymbolsSkuEntity platformSymbolsSkuEntity) {
|
| | | return systemSettingService.platformSymbolsSkuConfirm(platformSymbolsSkuEntity);
|
| | | }
|
| | | // @PostMapping("platformSymbolsSkuConfirm")
|
| | | // @ControllerEndpoint(operation = "币种规格---确认", exceptionMessage = "设置失败")
|
| | | // public FebsResponse platformSymbolsSkuConfirm(@Valid PlatformSymbolsSkuEntity platformSymbolsSkuEntity) {
|
| | | // return systemSettingService.platformSymbolsSkuConfirm(platformSymbolsSkuEntity);
|
| | | // }
|
| | |
|
| | | /**
|
| | | * 轮播图---列表
|
| | |
| | | /**
|
| | | * 轮播图---新增
|
| | | */
|
| | | @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();
|
| | | }
|
| | | |
| | | /**
|
| | | * 版本管理---列表
|
| | | */
|
| | | @GetMapping("appVersionManage")
|
| | | public FebsResponse appVersionManage(AppVersionEntity appVersionEntity, QueryRequest request) {
|
| | | Map<String, Object> data = getDataTable(systemSettingService.findAppVersionEntityInPage(appVersionEntity, request));
|
| | | return new FebsResponse().success().data(data);
|
| | | }
|
| | | |
| | | /**
|
| | | * 版本管理---确认
|
| | | */
|
| | | @PostMapping("appVersionConfirm")
|
| | | @ControllerEndpoint(operation = "版本管理---确认", exceptionMessage = "设置失败")
|
| | | public FebsResponse appVersionConfirm(@Valid AppVersionEntity appVersionEntity) {
|
| | | return systemSettingService.appVersionConfirm(appVersionEntity);
|
| | | }
|
| | | |
| | | /**
|
| | | * 版本管理---删除
|
| | | */
|
| | | @GetMapping("appVersionDelete/{id}")
|
| | | @ControllerEndpoint(operation = "版本管理---删除", exceptionMessage = "删除失败")
|
| | | public FebsResponse appVersionDelete(@NotNull(message = "{required}") @PathVariable Long id) {
|
| | | return systemSettingService.appVersionDelete(id);
|
| | | }
|
| | | |
| | | /**
|
| | | * 版本管理---新增
|
| | | */
|
| | | @PostMapping("appVersionAdds")
|
| | | @ControllerEndpoint(operation = "版本管理---新增", exceptionMessage = "新增失败")
|
| | | public FebsResponse appVersionAdds(@Valid AppVersionEntity appVersionEntity) {
|
| | | systemSettingService.appVersionAdds(appVersionEntity);
|
| | | return new FebsResponse().success();
|
| | | }
|
| | |
|