935090232@qq.com
2021-03-18 5d43370b99a03391c9271d04d3f351f0fd734dae
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
package com.matrix.system.common.actions;
 
import com.matrix.core.constance.MatrixConstance;
import com.matrix.core.pojo.AjaxResult;
import com.matrix.core.web.BaseAction;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
 
/**
 * @description 管理员总action
 * @author 姜友瑶
 * @email 935090232@qq.com
 * @date 2016-06-26
 */
@Controller
@RequestMapping(value = "developer")
public class DeveloperAction extends BaseAction {
 
    /**
     * 
     *  页面定向方法,每个权限模块公用一个,每个模块共享一个一级路径,已便于进行权限过滤
     * @author:姜友瑶
     * @param page1
     * @param page2
     * @return 返回类型 String
     * @date 2016年8月31日
     */
    @RequestMapping(value = "/redirect/{page1}/{page2}")
    public String redirect(@PathVariable("page1") String page1, @PathVariable("page2") String page2) {
        return "developer/" + page1 + "/" + page2;
    }
 
    /**
     * 
     *  页面定向方法,每个权限模块公用一个,每个模块共享一个一级路径,已便于进行权限过滤
     * @author:姜友瑶
     * @param page1
     * @return 返回类型 String
     * @date 2016年8月31日
     */
    @RequestMapping(value = "/redirect/{page1}")
    public String redirect(@PathVariable("page1") String page1) {
        return "developer/" + page1;
    }
 
    /**
     * 关闭debug模式
     * 
     * @author JIANGYOUYAO
     * @email 935090232@qq.com
     * @date Dec 10, 2017
     * @return
     */
    @RequestMapping("/closeDebug")
    public @ResponseBody AjaxResult closeDebug() {
        MatrixConstance.setDebugflag(false);
        return new AjaxResult(AjaxResult.STATUS_SUCCESS, "debug模式关闭");
    }
 
    /**
     * 打开debug模式
     * 
     * @author JIANGYOUYAO
     * @email 935090232@qq.com
     * @date Dec 10, 2017
     * @return
     */
    @RequestMapping("/openDebug")
    public @ResponseBody AjaxResult openDebug() {
        MatrixConstance.setDebugflag(true);
        return new AjaxResult(AjaxResult.STATUS_SUCCESS, "debug模式开启");
    }
 
}