RoleController.java
1.08 KB
package com.bsth.controller.sys;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.bsth.controller.BaseController;
import com.bsth.entity.sys.Role;
import com.bsth.service.sys.RoleService;
@RestController
@RequestMapping("role")
public class RoleController extends BaseController<Role, Integer>{
@Autowired
RoleService roleService;
/**
*
* @Title: settRoleModules
* @Description: TODO(为角色设置模块,全量覆盖)
* @param @param roleId 角色ID
* @param @param mIds 模块ID字符串(1,2,3,4)
* @throws
*/
@RequestMapping(value = "/settModules", method = RequestMethod.POST)
public Map<String, Object> settRoleModules(@RequestParam Integer roleId,@RequestParam String mIds){
return roleService.settRoleModules(roleId, mIds);
}
}