Commit dc00bb4c authored by Quxl's avatar Quxl

xx

parent f043588f
......@@ -59,7 +59,7 @@ public class AdminAuthServiceImpl implements AdminAuthService {
public void mergeAdmin(Fc_admin admin) {
jdbcTemplate.merge(admin);
}
@Override
public List<Map<String, Object>> queryGroupMenuList(Integer group_id) {
String s = "select am.*, agm.group_id from fc_admin_menu am left join fc_admin_group_menu agm on am.menu_id = agm.menu_id and agm.group_id = ? order by order_num";
......
......@@ -153,6 +153,34 @@ public class AdminAuthController {
return Rjx.jsonOk().set("groupMenuList", groupMenuList).set("groupFilmtypeList", groupFilmtypeList);
}
@ResponseBody
@PostMapping("saveMenu")
@ApiOperation("保存菜单")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="menu_type", value="菜单类型 [0 目录, 1 菜单, 2 按钮或其他功能或页面元素]"),
@ApiImplicitParam(paramType="query", dataType="int", required=true, name="parent_id", value="状态"),
@ApiImplicitParam(paramType="query", dataType="int", required=true, name="order_num", value="排序顺序"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="menu_name", value="菜单名(显示名)"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="menu_no", value="菜单编号[英文的菜单标记,如果没有可以填VUE路由名]"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="menu_link", value="菜单连接[URI或VUE路由]"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="menu_icon", value="菜单图标"),
})
public Object saveMenu(Integer group_id, String group_name, Integer state) {
Fc_admin_group group = new Fc_admin_group();
group.setGroup_id(group_id);
group.setGroup_name(group_name);
group.setState(state);
if(group.getGroup_id() == null) {
group.setAdminid((Integer)tokenService.getToken().getId());
String remoteIp = WebMvcConfig.getRemoteIp();
group.setUser_num(0L);
group.setCreate_ip(remoteIp);
group.setCreate_time(System.currentTimeMillis());
}
service.mergeGroup(group);
return Rjx.jsonOk();
}
@ResponseBody
@PostMapping("groupAuthUpdate")
@ApiOperation("保存或更新管理组权限")
......
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