提交 dfc533dc authored 作者: renjiancai's avatar renjiancai

--no commit message

上级 6493fbce
......@@ -9,6 +9,7 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.zrqx.core.constant.sysuser.SysUserRequestPath;
......@@ -23,6 +24,7 @@ import com.zrqx.core.util.page.PageParam;
import com.zrqx.core.util.response.CallBack;
import com.zrqx.core.vo.sysuser.bg.dept.DepartmentVO;
import com.zrqx.sysuser.bg.service.dept.DepartmentService;
import com.zrqx.sysuser.bg.service.modulepower.ModulepowerService;
import com.zrqx.sysuser.commons.utils.Copy;
import io.swagger.annotations.Api;
......@@ -38,6 +40,8 @@ public class DepartmentController {
@Autowired
private DepartmentService departmentSerivce;
@Autowired
private ModulepowerService modulepowerSerivce;
@ApiOperation(value = "新增部门" , notes ="新增一个部门")
@PostMapping(value = SysUserRequestPath.SAVE)
......@@ -113,4 +117,10 @@ public class DepartmentController {
public CallBack<Boolean> saveModulepowerToDepartment(@RequestBody ModulepowerToDepartmentForm form){
return CallBack.success(departmentSerivce.saveModulepowerToDepartment(form));
}
@ApiOperation(value = "查询权限" , notes ="查询部门权限")
@GetMapping(value = SysUserRequestPath.GET+"/mtod")
public CallBack<List<Integer>> getMotodList(@RequestParam Integer deptId){
List<Integer> mpidList = modulepowerSerivce.getMPListByDeptId(deptId);
return CallBack.success(mpidList);
}
}
......@@ -70,6 +70,7 @@ public class ModulepowerController {
public CallBack<Boolean> update(@RequestBody Modulepower modulepower){
return CallBack.success(modulepowerSerivce.updateByPrimaryKeySelective(modulepower));
}
@ApiOperation(value = "删除" , notes ="根据ID删除一个模块权限")
@RequestMapping(value = SysUserRequestPath.DELETE_OID, method = RequestMethod.POST)
public CallBack<Boolean> delete(@PathVariable Integer oid){
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论