935090232@qq.com
2021-10-28 248f33ff3b981a15b4adf26880e24852809561d9
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
package com.matrix.system.common.actions;
 
import com.matrix.core.enums.EnumsManager;
import com.matrix.core.pojo.AjaxResult;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * @author 姜友瑶
 * @description 管理员总action
 * @email 935090232@qq.com
 * @date 2016-06-26
 */
@RestController
@RequestMapping(value = "commondata")
public class CommonDataAction {
 
 
    @RequestMapping("/getEnums/{enumCode}")
    public AjaxResult getEnums(@PathVariable String enumCode) throws ClassNotFoundException {
        return AjaxResult.buildSuccessInstance(EnumsManager.getShowEnum(enumCode));
    }
 
 
}