xiaoyong931011
2021-01-08 0d03d3fe08f4ca6865adf4147dbbc4830e231837
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
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");
    }
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
}