@FeignClient(name="account")
@RequestMapping(value="/account/rest/v1/authorities")
public interface AuthorityManagerClient
@PostMapping AuthorityDto createAuthority(@RequestBody AuthorityDto authorityDto)
authorityDto - 权限信息@PutMapping AuthorityDto updateAuthority(@RequestBody AuthorityDto authorityDto)
authorityDto - 权限信息@PatchMapping(value="/{id}/operation")
boolean addOperation(@PathVariable(name="id")
String id,
@RequestBody
List<String> operationIds)
id - 权限idoperationIds - 操作id列表@DeleteMapping(value="/{id}/operation")
boolean removeOperationRef(@PathVariable(name="id")
String id,
@RequestBody
List<String> operationIds)
id - 权限idoperationIds - 操作id列表@DeleteMapping(value="/{id}")
boolean deleteAuthority(@PathVariable(name="id")
String id)
id - 权限id@GetMapping(value="/{id}")
AuthorityDto findById(@PathVariable(name="id")
String id)
id - 权限id@PostMapping(value="/search") List<AuthorityDto> findAuthorities(@RequestBody AuthorityDto authorityDto)
authorityDto - 权限信息@GetMapping(value="/url") List<AuthorityDto> findUrlAuthorities(@RequestParam(name="username") String username, @RequestParam(name="path") String path, @RequestParam(name="method",required=false) String method)
username - 用户名path - 请求路径method - GET POST DELETE@GetMapping(value="module-code") List<AuthorityDto> findModuleAuthorities(@RequestParam(name="username") String username, @RequestParam(name="moduleCode") String moduleCode)
username - 用户名moduleCode - 模块编码@GetMapping(value="/module-operations") List<OperationDto> findModuleAuthorityOperation(@RequestParam(name="username") String username, @RequestParam(name="moduleCode") String moduleCode)
username - 用户名moduleCode - 模块编码@GetMapping(value="/client-modules") List<AuthorityDto> findModuleTypeAuthorities(@RequestParam(name="username") String username, @RequestParam(name="clientId",required=false) String clientId, @RequestParam(name="moduleType",required=false) String moduleType)
username - 当前操作人clientId - 应用IdmoduleType - 模块类型 classification:业务分类, menu:菜单, form:表单 element:页面元素 api:服务@GetMapping(value="/sub-module/authorities") List<AuthorityDto> findSubModuleAuthorities(@RequestParam(name="username") String username, @RequestParam(name="moduleCode") String moduleCode, @RequestParam(name="moduleType") String moduleType)
username - 当前操作人moduleCode - 模块编码moduleType - 模块类型 classification:业务分类, menu:菜单, form:表单 element:页面元素 api:服务@GetMapping(value="/menu-codes") String findMenuModules(@RequestParam(name="username") String username, @RequestParam(name="clientId",required=false) String clientId)
username - 当前操作人clientId - 应用Id@GetMapping(value="/client/user/modules") List<ModuleDto> findClientUserModules(@RequestParam(name="username") String username, @RequestParam(name="clientId") String clientId, @RequestParam(name="moduleType") String moduleType)
username - 当前操作人clientId - 应用Id@GetMapping(value="/sub/user/modules") List<ModuleDto> findSubUserModules(@RequestParam(name="username") String username, @RequestParam(name="moduleCode") String moduleCode, @RequestParam(name="moduleType") String moduleType)
username - 当前操作人moduleCode - 上一级模块编码Copyright © 2025 GTMAP. All rights reserved.