| package com.xcong.excoin.modules.helpCenter.controller;  | 
|   | 
| 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;  | 
|   | 
| import com.xcong.excoin.common.entity.FebsConstant;  | 
| import com.xcong.excoin.common.utils.FebsUtil;  | 
| import com.xcong.excoin.modules.helpCenter.entity.HelpCenterArticleEntity;  | 
| import com.xcong.excoin.modules.helpCenter.service.HelpCenterService;  | 
|   | 
| import lombok.RequiredArgsConstructor;  | 
|   | 
| @Controller("helpCenterView")  | 
| @RequestMapping(FebsConstant.VIEW_PREFIX + "modules/helpCenter")  | 
| @RequiredArgsConstructor  | 
| public class ViewController {  | 
|       | 
|     private final HelpCenterService helpCenterService;  | 
|       | 
|     /**  | 
|      * 帮助中心---列表  | 
|      * @return  | 
|      */  | 
|     @GetMapping("helpCenterList")  | 
|     @RequiresPermissions("helpCenterList:view")  | 
|     public String helpCenterList() {  | 
|         return FebsUtil.view("modules/helpCenter/helpCenterList");  | 
|     }  | 
|       | 
|     /**  | 
|      * 帮助中心---中文版修改  | 
|      */  | 
|     @GetMapping("helpCenterUpdate/{id}")  | 
|     @RequiresPermissions("helpCenterUpdate:update")  | 
|     public String helpCenterUpdate(@PathVariable long id, Model model) {  | 
|         HelpCenterArticleEntity data = helpCenterService.selectHelpCenterServiceById(id);  | 
|         model.addAttribute("member", data);  | 
|         return FebsUtil.view("modules/helpCenter/helpCenterUpdate");  | 
|     }  | 
|     /**  | 
|      * 帮助中心---英文版修改  | 
|      */  | 
|     @GetMapping("helpCenterUpdateUs/{id}")  | 
|     @RequiresPermissions("helpCenterUpdateUs:update")  | 
|     public String helpCenterUpdateUs(@PathVariable long id, Model model) {  | 
|         HelpCenterArticleEntity data = helpCenterService.selectHelpCenterUsServiceById(id);  | 
|         model.addAttribute("member", data);  | 
|         return FebsUtil.view("modules/helpCenter/helpCenterUpdateUs");  | 
|     }  | 
|       | 
|     /**  | 
|      * 帮助中心---新增  | 
|      */  | 
|     @GetMapping("helpCenterAdd")  | 
|     @RequiresPermissions("helpCenterAdd:add")  | 
|     public String helpCenterAdd() {  | 
|         return FebsUtil.view("modules/helpCenter/helpCenterAdd");  | 
|     }  | 
|       | 
|     /**  | 
|      * 帮助中心---类型---列表  | 
|      * @return  | 
|      */  | 
|     @GetMapping("helpCenterTypeList")  | 
|     @RequiresPermissions("helpCenterTypeList:view")  | 
|     public String helpCenterTypeList() {  | 
|         return FebsUtil.view("modules/helpCenter/helpCenterTypeList");  | 
|     }  | 
|   | 
|     /**  | 
|      * 帮助中心---类型---新增  | 
|      */  | 
|     @GetMapping("helpCenterTypeAdd")  | 
|     @RequiresPermissions("helpCenterTypeAdd:add")  | 
|     public String helpCenterTypeAdd() {  | 
|         return FebsUtil.view("modules/helpCenter/helpCenterTypeAdd");  | 
|     }  | 
|       | 
|       | 
|       | 
|       | 
|       | 
|       | 
|       | 
|       | 
|       | 
|       | 
|       | 
|       | 
|       | 
|       | 
|       | 
|       | 
| }  |