Commit 60d53fda by 吕明尚

增加商品集合查询接口

parent fd3720bb
......@@ -4,6 +4,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import share.system.domain.vo.OnlineQueryDto;
import share.system.domain.vo.TiktokCouponDto;
import share.system.service.TiktokService;
......@@ -50,4 +51,9 @@ public class TiktokController {
return tiktokService.poiQuery(tiktokCouponDto);
}
@GetMapping("/online/query")
public Object onlineQuery(OnlineQueryDto onlineQueryDto) {
return tiktokService.onlineQuery(onlineQueryDto);
}
}
package share.system.domain.vo;
import lombok.Data;
@Data
public class OnlineQueryDto {
//第一页不传,之后用前一次返回的next_cursor传入进行翻页
private String cursor;
//分页数量,不传默认为5,最大上限50
private Integer count;
//筛选在线状态,1-在线 2-下线 3-封禁
private Integer status;
//商家ID,传入时服务商须与该商家满足授权关系
private String accountId;
//区分商品创建者的查询方式
//0 - 查询服务商/开发者创建的商品
//1 - 查询商家(account_id)创建的商品
private Integer goodsCreatorType;
//是否查询商品全量关联门店
//设置为true时,分页数量最大上限为20
private boolean queryAllPoi;
//新商品查询参数,仅支持ka自研开发者使用,当前参数生效时goods_creator_type参数不再生效
//1 - 可查询归属于ka自研的所有商品,包括非ka自研创建的商品
private Integer goodsQueryType;
}
package share.system.service;
import cn.hutool.json.JSONArray;
import share.system.domain.vo.OnlineQueryDto;
import share.system.domain.vo.TiktokCouponDto;
import java.util.List;
......@@ -17,4 +18,6 @@ public interface TiktokService {
String certificateGet(TiktokCouponDto tiktokCouponDto);
Object poiQuery(TiktokCouponDto tiktokCouponDto);
Object onlineQuery(OnlineQueryDto onlineQueryDto);
}
......@@ -16,6 +16,7 @@ import share.common.core.redis.RedisUtil;
import share.common.enums.ErrorCodeEnum;
import share.common.enums.ReceiptRdeisEnum;
import share.common.enums.VerifyResultsEnum;
import share.system.domain.vo.OnlineQueryDto;
import share.system.domain.vo.TiktokCouponDto;
import share.system.service.TiktokService;
......@@ -205,6 +206,11 @@ public class TiktokServiceImpl implements TiktokService {
return pois;
}
@Override
public Object onlineQuery(OnlineQueryDto onlineQueryDto) {
return null;
}
public String obtain() {
String o;
o = redisUtil.get(ReceiptRdeisEnum.TIKTOK_CLIENT_TOKEN.getValue());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment