拉取买家订单列表
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.rj.controller;
|
||||
|
||||
import com.rj.dto.LbBuyerShoppingPullRequest;
|
||||
import com.rj.entity.LbBuyerShopping;
|
||||
import com.rj.service.ILbBuyerShoppingService;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
@@ -48,6 +49,20 @@ public class LbBuyerShoppingController {
|
||||
return toResponse(result);
|
||||
}
|
||||
|
||||
@PostMapping("/pull-from-third")
|
||||
@Operation(
|
||||
summary = "从第三方拉取买方购物列表",
|
||||
description =
|
||||
"按 tenantId 从 lb_third_integration_config 读取 login_api_path、buyer_order_list_path 等配置,"
|
||||
+ "对每个买方手机号模拟登录获取 token,再分页调用买方订单列表 API 并解析入库;"
|
||||
+ "未传 password 时默认密码为 123456")
|
||||
public ResponseEntity<Map<String, Object>> pullFromThird(
|
||||
@Parameter(description = "租户 id 与买方手机号列表", required = true)
|
||||
@RequestBody LbBuyerShoppingPullRequest request) {
|
||||
Map<String, Object> result = lbBuyerShoppingService.pullFromThirdParty(request);
|
||||
return toResponse(result);
|
||||
}
|
||||
|
||||
@GetMapping("/list")
|
||||
@Operation(summary = "分页查询")
|
||||
public ResponseEntity<Map<String, Object>> list(
|
||||
|
||||
Reference in New Issue
Block a user