增加抢单接口

This commit is contained in:
2026-05-28 18:45:12 +08:00
parent b0494ff5b6
commit 412aa1f8d8
7 changed files with 304 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ package com.rj.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rj.entity.LbGoods;
import java.util.List;
import java.util.Map;
public interface ILbGoodsService extends IService<LbGoods> {
@@ -32,4 +33,9 @@ public interface ILbGoodsService extends IService<LbGoods> {
* 分页调用第三方 {@code /api/order/goods},解析后 upsert 到 {@code lb_goods}。
*/
Map<String, Object> syncFromHxrGoods(String tenantId);
/**
* 按 id 列表查询 {@code lb_goods},使用 token 调用 hxrd {@code /api/order/buy} 抢购。
*/
Map<String, Object> rushBuy(String token, Integer maxBuyCount, List<Long> idList);
}