企微同步,需要有租户ID

This commit is contained in:
2026-04-24 20:54:04 +08:00
parent d1ff7bde35
commit 1f7b1e6d55
13 changed files with 814 additions and 0 deletions

View File

@@ -71,5 +71,16 @@ public class QweiUserController {
}
return ResponseEntity.internalServerError().body(result);
}
@PostMapping("/sync")
@Operation(summary = "同步企微用户并入库")
public ResponseEntity<Map<String, Object>> sync() {
Map<String, Object> result = qweiUserService.syncFromQiWei();
Boolean success = (Boolean) result.get("success");
if (success != null && success) {
return ResponseEntity.ok(result);
}
return ResponseEntity.badRequest().body(result);
}
}