Helius
2020-06-19 5fd46ebbfe3c3bdc2aea660cd19d4f52de59f2da
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
package com.xcong.excoin.modules.contract.controller;
 
import com.xcong.excoin.common.entity.FebsConstant;
import com.xcong.excoin.common.utils.FebsUtil;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
 
/**
 * @author wzy
 * @date 2020-06-16
 **/
@Controller("contract")
@RequestMapping(FebsConstant.VIEW_PREFIX + "/contract")
public class ViewController {
 
    @GetMapping("holdList")
    @RequiresPermissions("hold:view")
    public String holdList() {
        return FebsUtil.view("modules/contract/hold-list");
    }
 
    @GetMapping("buyList")
    @RequiresPermissions("buy:view")
    public String buyList() {
        return FebsUtil.view("modules/contract/buy-list");
    }
 
    @GetMapping("saleList")
    @RequiresPermissions("sale:view")
    public String saleList() {
        return FebsUtil.view("modules/contract/sale-list");
    }
 
    @GetMapping("historyList")
    @RequiresPermissions("history:view")
    public String historyList() {
        return FebsUtil.view("modules/contract/history-list");
    }
}