Commit 98353513 by fsn

字典管理权限整理

parent f5cb9905
...@@ -66,6 +66,7 @@ public class DictController extends BaseController { ...@@ -66,6 +66,7 @@ public class DictController extends BaseController {
/** /**
* 跳转到修改字典 * 跳转到修改字典
*/ */
@Permission(Const.ADMIN_NAME)
@RequestMapping("/dict_edit/{dictId}") @RequestMapping("/dict_edit/{dictId}")
public String deptUpdate(@PathVariable Integer dictId, Model model) { public String deptUpdate(@PathVariable Integer dictId, Model model) {
Dict dict = dictMapper.selectById(dictId); Dict dict = dictMapper.selectById(dictId);
...@@ -97,6 +98,7 @@ public class DictController extends BaseController { ...@@ -97,6 +98,7 @@ public class DictController extends BaseController {
* 获取所有字典列表 * 获取所有字典列表
*/ */
@RequestMapping(value = "/list") @RequestMapping(value = "/list")
@Permission(Const.ADMIN_NAME)
@ResponseBody @ResponseBody
public Object list(String condition) { public Object list(String condition) {
List<Map<String, Object>> list = this.dictDao.list(condition); List<Map<String, Object>> list = this.dictDao.list(condition);
...@@ -107,6 +109,7 @@ public class DictController extends BaseController { ...@@ -107,6 +109,7 @@ public class DictController extends BaseController {
* 字典详情 * 字典详情
*/ */
@RequestMapping(value = "/detail/{dictId}") @RequestMapping(value = "/detail/{dictId}")
@Permission(Const.ADMIN_NAME)
@ResponseBody @ResponseBody
public Object detail(@PathVariable("dictId") Integer dictId) { public Object detail(@PathVariable("dictId") Integer dictId) {
return dictMapper.selectById(dictId); return dictMapper.selectById(dictId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment