类 RoleController
- java.lang.Object
-
- io.edurt.datacap.server.controller.admin.RoleController
-
@RestController @RequestMapping("/api/v1/admin/role") public class RoleController extends Object
-
-
构造器概要
构造器 构造器 说明 RoleController(RoleRepository roleRepository, RoleService roleService)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Response<PageEntity<RoleEntity>>getAllByFilter(FilterBody filter)Response<RoleEntity>getInfo(Long id)Response<RoleEntity>save(RoleEntity configure)
-
-
-
构造器详细资料
-
RoleController
public RoleController(RoleRepository roleRepository, RoleService roleService)
-
-
方法详细资料
-
getAllByFilter
@PostMapping("list") public Response<PageEntity<RoleEntity>> getAllByFilter(@RequestBody FilterBody filter)
-
save
@RequestMapping(method={POST,PUT}) public Response<RoleEntity> save(@RequestBody @Validated(Create.class) RoleEntity configure)
-
getInfo
@GetMapping("{id}") public Response<RoleEntity> getInfo(@PathVariable("id") Long id)
-
-