类 RoleController
java.lang.Object
plus.hiver.module.system.controller.RoleController
@RestController
@RequestMapping("/hiver/role")
@Transactional
public class RoleController
extends Object
角色管理接口
尊重知识产权,CV 请保留版权,海文科技 https://hiver.cc 出品,不允许非法使用,后果自负
- 作者:
- Yazhi Li
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明plus.hiver.common.api.Resultplus.hiver.common.api.Result<plus.hiver.common.entity.Role>edit(plus.hiver.common.entity.Role entity) plus.hiver.common.api.ResulteditRoleDep(Long roleId, Integer dataType, Long[] depIds) plus.hiver.common.api.ResulteditRolePerm(Long roleId, Long[] permIds) plus.hiver.common.api.Result<org.springframework.data.domain.Page<plus.hiver.common.entity.Role>>getRoleByPage(String key, plus.hiver.common.vo.PageVo page) plus.hiver.common.api.Resultplus.hiver.common.api.Result<plus.hiver.common.entity.Role>save(plus.hiver.common.entity.Role role) plus.hiver.common.api.ResultsetDefault(Long id, Boolean isDefault)
-
构造器详细资料
-
RoleController
public RoleController()
-
-
方法详细资料
-
roleGetAll
@GetMapping("/getAllList") public plus.hiver.common.api.Result roleGetAll() -
getRoleByPage
@GetMapping("/getAllByPage") public plus.hiver.common.api.Result<org.springframework.data.domain.Page<plus.hiver.common.entity.Role>> getRoleByPage(String key, plus.hiver.common.vo.PageVo page) -
setDefault
-
editRolePerm
-
editRoleDep
-
save
@PostMapping("/save") public plus.hiver.common.api.Result<plus.hiver.common.entity.Role> save(plus.hiver.common.entity.Role role) -
edit
@PostMapping("/edit") public plus.hiver.common.api.Result<plus.hiver.common.entity.Role> edit(plus.hiver.common.entity.Role entity) -
delByIds
-