| | |
| | | import org.springblade.system.entity.*; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | |
| | | String PARAM = API_PREFIX + "/param"; |
| | | String PARAM_VALUE = API_PREFIX + "/param-value"; |
| | | String REGION = API_PREFIX + "/region"; |
| | | String STRATEGY = API_PREFIX + "/query-tenantid-name"; |
| | | String STRATEGYBYID = API_PREFIX + "/query-userid"; |
| | | String REGEX = API_PREFIX + "/combination-regex"; |
| | | |
| | | /** |
| | | * 获取菜单 |
| | |
| | | @GetMapping(REGION) |
| | | R<Region> getRegion(@RequestParam("code") String code); |
| | | |
| | | /** |
| | | * 根据租户id以及用户名获取密码策略 |
| | | * @param tenantId |
| | | * @param name |
| | | * @return |
| | | */ |
| | | @PostMapping(STRATEGY) |
| | | R<Strategy> getByTenantIdAndName(@RequestParam("tenantId") String tenantId, @RequestParam("name") String name); |
| | | |
| | | /** |
| | | * 根据用户id获取密码策略 |
| | | * @param userId |
| | | * @return |
| | | */ |
| | | @PostMapping(STRATEGYBYID) |
| | | R<Strategy> getByUserId(@RequestParam("id") Long userId); |
| | | |
| | | /** |
| | | * 根据组合方式id获取值 |
| | | * @return |
| | | */ |
| | | @PostMapping(REGEX) |
| | | R<String> getRegex(@RequestBody List<String> combinationIds); |
| | | |
| | | } |