12345678910111213141516171819202122232425262728293031323334353637383940 |
- package com.cdf.httpClient.client;
- import com.alibaba.fastjson.JSONObject;
- import com.cdf.httpClient.response.cdf.CdfProductListRequest;
- import com.cdf.httpClient.response.cdf.CdfProductListResponse;
- import com.cdf.httpClient.response.cdf.CdfProductVo;
- import com.dtflys.forest.annotation.*;
- @Address(basePath = "https://m.cdfmembers.com")
- public interface CdfClient {
- /**
- * 获取商品详情
- */
- @Get(url = "/api/prod/sqdetail?productId=${productId}",
- headers = {
- "app-key: h5sqBuyer_600667208",
- "app-version: 6.6.88",
- })
- CdfProductVo getProductById(@Var("productId") String productId);
- /**
- * 根据关键字搜索商品列表
- */
- @Post(url = "/api/nodesearch/sqsearch",
- headers = {
- "app-key: h5sqBuyer_600667208",
- "app-version: 6.6.88",
- })
- CdfProductListResponse getProductList(@JSONBody CdfProductListRequest param);
- /**
- * 查询购物车数量
- */
- @Get(url = "/api/trading/sqscartprodnum",
- headers = {
- "app-key: h5sqBuyer_600667208",
- "app-version: 6.6.88",
- "ymt-pars: appid=71&accesstoken=C10DBE77A888E4592F2EBAEDC252C0A4279DF95858B3DBBF271513CE83F44FE90E39CC0AA7E08823D671F0A359B2AE8971A3DDAEFCC522A7&mchId=600667208&language=zh_CN&format=json",
- })
- JSONObject getCatNum();
- }
|