企微同步,需要有租户ID
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user