|
|
@@ -129,7 +129,7 @@ public class KeycloakController {
|
|
|
return keycloakService.updateUser(userId , switchDTO , Constant.ENABLE);
|
|
|
}
|
|
|
|
|
|
- @PutMapping("/admin/users/{userId}/reset")
|
|
|
+ @PutMapping("/admin/users/{userId}/resetPassword")
|
|
|
public Response resetPassword(@PathVariable("userId") String userId , @RequestBody CredentialRepresentation credential){
|
|
|
if(StringUtils.isEmpty(credential.getType()) || !credential.getType().equals(Constant.type)){
|
|
|
return Response.buildFailure("500","type参数不合法!");
|
|
|
@@ -169,7 +169,7 @@ public class KeycloakController {
|
|
|
return keycloakService.updateUser(userId , representation ,Constant.RESET_ATTRBUTE);
|
|
|
}
|
|
|
|
|
|
- @PostMapping("/super/damin/tenant")
|
|
|
+ @PostMapping("/super/admin/tenant")
|
|
|
public Response addKeyclaokTenant(@RequestBody GroupRepresentation groupRepresentation){
|
|
|
if(StringUtils.isEmpty(groupRepresentation.getName())){
|
|
|
return Response.buildFailure("500","name不能为空!");
|
|
|
@@ -180,7 +180,7 @@ public class KeycloakController {
|
|
|
return keycloakService.addKeyclaokTenant(groupRepresentation);
|
|
|
}
|
|
|
|
|
|
- @DeleteMapping("/super/damin/tenant/{id}")
|
|
|
+ @DeleteMapping("/super/admin/tenant/{id}")
|
|
|
public Response addKeyclaokTenant(@PathVariable("id")String id){
|
|
|
return keycloakService.removeGroup(id);
|
|
|
}
|