| package com.xcong.excoin.modules.systemSetting.controller; | 
|   | 
| import com.xcong.excoin.common.entity.FebsConstant; | 
| import com.xcong.excoin.common.utils.FebsUtil; | 
| 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; | 
|   | 
| import lombok.RequiredArgsConstructor; | 
|   | 
| import org.apache.shiro.authz.annotation.RequiresPermissions; | 
| import org.springframework.stereotype.Controller; | 
| import org.springframework.ui.Model; | 
| import org.springframework.web.bind.annotation.GetMapping; | 
| import org.springframework.web.bind.annotation.PathVariable; | 
| import org.springframework.web.bind.annotation.RequestMapping; | 
|   | 
| /** | 
|  * @author wzy | 
|  * @date 2020-06-10 | 
|  **/ | 
| @Controller("systemSettingView") | 
| @RequestMapping(FebsConstant.VIEW_PREFIX + "modules/systemSetting") | 
| @RequiredArgsConstructor | 
| public class ViewController { | 
|      | 
|     private final SystemSettingService systemSettingService; | 
|   | 
|     /** | 
|      * 交易设置---列表 | 
|      */ | 
|     @GetMapping("platformTradeSetting") | 
|     @RequiresPermissions("platformTradeSetting:view") | 
|     public String platformTradeSetting() { | 
|         return FebsUtil.view("modules/systemSetting/platformTradeSetting"); | 
|     } | 
|      | 
|     /** | 
|      * 交易设置---修改 | 
|      */ | 
|     @GetMapping("platformTradeSettingUpdate/{id}") | 
|     @RequiresPermissions("platformTradeSettingUpdate:update") | 
|     public String platformTradeSettingUpdate(@PathVariable long id, Model model) { | 
|         PlatformTradeSettingEntity data = systemSettingService.selectPlatformTradeSettingById(id); | 
|         model.addAttribute("member", data); | 
|         return FebsUtil.view("modules/systemSetting/platformTradeSettingDetail"); | 
|     } | 
|      | 
|     /** | 
|      * 币种规格---列表 | 
|      */ | 
|     @GetMapping("platformSymbolsSku") | 
|     @RequiresPermissions("platformSymbolsSku:view") | 
|     public String platformSymbolsSku() { | 
|         return FebsUtil.view("modules/systemSetting/platformSymbolsSku"); | 
|     } | 
|      | 
|     /** | 
|      * 币种规格---修改 | 
|      */ | 
|     @GetMapping("platformSymbolsSkuUpdate/{id}") | 
|     @RequiresPermissions("platformSymbolsSkuUpdate:update") | 
|     public String platformSymbolsSkuUpdate(@PathVariable long id, Model model) { | 
|         PlatformSymbolsSkuEntity data = systemSettingService.selectplatformSymbolsSkuById(id); | 
|         model.addAttribute("member", data); | 
|         return FebsUtil.view("modules/systemSetting/platformSymbolsSkuDetail"); | 
|     } | 
|      | 
|     /** | 
|      * 轮播图---列表 | 
|      */ | 
|     @GetMapping("platformBanner") | 
|     @RequiresPermissions("platformBanner:view") | 
|     public String platformBanner() { | 
|         return FebsUtil.view("modules/systemSetting/platformBanner"); | 
|     } | 
|      | 
|     /** | 
|      * 轮播图---修改 | 
|      */ | 
|     @GetMapping("platformBannerUpdate/{id}") | 
|     @RequiresPermissions("platformBannerUpdate:update") | 
|     public String platformBannerUpdate(@PathVariable long id, Model model) { | 
|         PlatformBannerEntity data = systemSettingService.selectPlatformBannerById(id); | 
|         model.addAttribute("member", data); | 
|         return FebsUtil.view("modules/systemSetting/platformBannerDetail"); | 
|     } | 
|      | 
|     /** | 
|      * 轮播图---新增 | 
|      */ | 
|     @GetMapping("platformBannerAdd") | 
|     @RequiresPermissions("platformBannerAdd:add") | 
|     public String platformBannerAdd() { | 
|         return FebsUtil.view("modules/systemSetting/platformBannerAdd"); | 
|     } | 
|      | 
|     /** | 
|      * 公告管理---列表 | 
|      */ | 
|     @GetMapping("noticeManage") | 
|     @RequiresPermissions("noticeManage:view") | 
|     public String noticeManage() { | 
|         return FebsUtil.view("modules/systemSetting/noticeManage"); | 
|     } | 
|      | 
|     /** | 
|      * 公告管理---修改 | 
|      */ | 
|     @GetMapping("noticeManageUpdate/{id}") | 
|     @RequiresPermissions("noticeManageUpdate:update") | 
|     public String noticeManageUpdate(@PathVariable long id, Model model) { | 
|         PlatformNoticeEntity data = systemSettingService.selectNoticeManageById(id); | 
|         model.addAttribute("member", data); | 
|         return FebsUtil.view("modules/systemSetting/noticeManageDetail"); | 
|     } | 
|      | 
|     /** | 
|      * 公告管理---新增 | 
|      */ | 
|     @GetMapping("noticeManageAdd") | 
|     @RequiresPermissions("noticeManageAdd:add") | 
|     public String noticeManageAdd() { | 
|         return FebsUtil.view("modules/systemSetting/noticeManageAdd"); | 
|     } | 
|      | 
|     /** | 
|      * 版本管理---列表 | 
|      */ | 
|     @GetMapping("appVersionManage") | 
|     @RequiresPermissions("appVersionManage:view") | 
|     public String appVersionManage() { | 
|         return FebsUtil.view("modules/systemSetting/appVersionManage"); | 
|     } | 
|      | 
|     /** | 
|      * 版本管理---修改 | 
|      */ | 
|     @GetMapping("appVersionUpdate/{id}") | 
|     @RequiresPermissions("appVersionUpdate:update") | 
|     public String appVersionUpdate(@PathVariable long id, Model model) { | 
|         AppVersionEntity data = systemSettingService.selectAppVersionById(id); | 
|         model.addAttribute("member", data); | 
|         return FebsUtil.view("modules/systemSetting/appVersionDetail"); | 
|     } | 
|      | 
|     /** | 
|      * 版本管理---新增 | 
|      */ | 
|     @GetMapping("appVersionAdd") | 
|     @RequiresPermissions("appVersionAdd:add") | 
|     public String appVersionAdd() { | 
|         return FebsUtil.view("modules/systemSetting/appVersionAdd"); | 
|     } | 
|      | 
| } |