parent
bbc8f2fc9c
commit
8782c05704
@ -0,0 +1,51 @@ |
||||
package edu.ncst.award.controller; |
||||
|
||||
import edu.ncst.award.common.core.page.TableDataInfo; |
||||
import edu.ncst.award.model.system.Role; |
||||
import edu.ncst.award.service.ISysRoleService; |
||||
import edu.ncst.award.vo.ResultVO; |
||||
import edu.ncst.award.vo.param.query.PageQuery; |
||||
import io.swagger.annotations.Api; |
||||
import io.swagger.annotations.ApiOperation; |
||||
import lombok.RequiredArgsConstructor; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.RequestMapping; |
||||
import org.springframework.web.bind.annotation.RestController; |
||||
|
||||
import javax.annotation.Resource; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* 角色信息 |
||||
*/ |
||||
@Api(value = "角色信息控制器", tags = {"角色信息管理"}) |
||||
@RestController |
||||
@RequiredArgsConstructor |
||||
@RequestMapping("/api/role") |
||||
public abstract class RoleController { |
||||
|
||||
private final ISysRoleService roleService; |
||||
|
||||
/** |
||||
* 获取角色列表 |
||||
*/ |
||||
@ApiOperation("获取角色列表") |
||||
@GetMapping("/list") |
||||
public TableDataInfo<Role> list(Role role, PageQuery pageQuery){ |
||||
return roleService.selectPageRoleList(role,pageQuery); |
||||
} |
||||
|
||||
// 增加权限
|
||||
abstract ResultVO<Void> addAllRole(); |
||||
|
||||
// 分配权限
|
||||
abstract ResultVO<Void> assignRole(); |
||||
|
||||
// 修改权限
|
||||
abstract ResultVO<Void> updateByRoleId(); |
||||
|
||||
// 删除权限
|
||||
abstract ResultVO<Void> deleteRoleByUserId(); |
||||
|
||||
|
||||
} |
||||
Loading…
Reference in new issue