同步接口增加 token参数

This commit is contained in:
2026-05-28 21:00:51 +08:00
parent 608e5a7adc
commit 246c5a7080
4 changed files with 32 additions and 12 deletions

View File

@@ -30,8 +30,10 @@ public interface ILbGoodsService extends IService<LbGoods> {
/**
* 分页调用第三方 {@code /api/order/goods},解析后 upsert 到 {@code lb_goods}。
*
* @param token 可选;非空时作为请求头 token否则使用 {@code hxr.admin.goods-api-token}
*/
Map<String, Object> syncFromHxrGoods(String tenantId);
Map<String, Object> syncFromHxrGoods(String tenantId, String token);
/**
* 按 {@code total_money} 从大到小选取 {@code lb_goods},调用 hxrd {@code /api/order/buy} 抢购。