java.lang.Object
cn.herodotus.engine.web.api.servlet.AbstractReadableController<E,ID,S>
cn.herodotus.engine.web.api.servlet.AbstractWriteableController<E,ID,cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<E,ID>>
cn.herodotus.engine.web.api.servlet.AbstractJpaWriteableController<SysRole,String>
cn.herodotus.engine.rest.servlet.upms.controller.security.SysRoleController
All Implemented Interfaces:
cn.herodotus.engine.core.definition.domain.BaseDomain, cn.herodotus.engine.core.definition.domain.Pagination, BindingController<SysRole,String,cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysRole,String>>, PageController<SysRole,String,cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysRole,String>>, PaginationController, cn.herodotus.engine.web.core.definition.Controller, Serializable

@RestController @RequestMapping("/security/role") public class SysRoleController extends AbstractJpaWriteableController<SysRole,String>

Description: SysRoleController

Author:
: gengwei.zheng
See Also:
Date:
: 2021/10/11 21:27
  • Constructor Details

    • SysRoleController

      public SysRoleController(SysRoleService sysRoleService)
  • Method Details

    • getService

      public cn.herodotus.engine.data.core.jpa.service.BaseJpaWriteableService<SysRole,String> getService()
    • findByRoleCode

      @AccessLimited @GetMapping("/{roleCode}") public cn.herodotus.engine.core.definition.domain.Result<SysRole> findByRoleCode(@PathVariable("roleCode") String roleCode)
    • findAll

      @AccessLimited @GetMapping("/list") public cn.herodotus.engine.core.definition.domain.Result<List<SysRole>> findAll()
    • assign

      @PutMapping public cn.herodotus.engine.core.definition.domain.Result<SysRole> assign(@RequestParam(name="roleId") String roleId, @RequestParam(name="permissions[]") String[] permissions)