绑定父子关系

This commit is contained in:
2026-04-26 11:33:33 +08:00
parent b9e00e6846
commit bfed0198ac
3 changed files with 92 additions and 0 deletions

View File

@@ -75,4 +75,22 @@ public class LbDepartmentUserController {
}
return ResponseEntity.internalServerError().body(result);
}
@PostMapping("/bindParentUser")
@Operation(summary = "绑定父子用户关系")
public ResponseEntity<Map<String, Object>> bindParentUser(
@RequestParam String parentUserId,
@RequestParam(required = false) String parentUserName,
@RequestParam String childUserId,
@RequestParam(required = false) String childUserName,
@RequestParam String tenantId) {
Map<String, Object> result = lbDepartmentUserService.bindParentUser(
parentUserId, parentUserName, childUserId, childUserName, tenantId
);
Boolean success = (Boolean) result.get("success");
if (success != null && success) {
return ResponseEntity.ok(result);
}
return ResponseEntity.badRequest().body(result);
}
}