模拟登录第三方接口
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.rj.controller;
|
||||
|
||||
import com.rj.dto.LbFanSimulateLoginRequest;
|
||||
import com.rj.entity.LbFanManagement;
|
||||
import com.rj.service.ILbFanManagementService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
@@ -49,6 +50,20 @@ public class LbFanManagementController {
|
||||
return toResponse(result);
|
||||
}
|
||||
|
||||
@PostMapping("/simulate-login")
|
||||
@Operation(
|
||||
summary = "批量模拟第三方登录",
|
||||
description =
|
||||
"按 tenantId 从 lb_third_integration_config 读取 login_api_path 等配置,"
|
||||
+ "对每个手机号调用第三方登录接口并解析返回 JSON;"
|
||||
+ "未传 password 时默认密码为 123456")
|
||||
public ResponseEntity<Map<String, Object>> simulateLogin(
|
||||
@Parameter(description = "租户 id 与手机号列表", required = true)
|
||||
@RequestBody LbFanSimulateLoginRequest request) {
|
||||
Map<String, Object> result = lbFanManagementService.simulateLogin(request);
|
||||
return toResponse(result);
|
||||
}
|
||||
|
||||
@GetMapping("/list")
|
||||
@Operation(summary = "分页查询粉丝")
|
||||
public ResponseEntity<Map<String, Object>> list(
|
||||
|
||||
Reference in New Issue
Block a user