文档
测试

商品查询

POST
/product/spu/list

说明 / 示例

字段说明 查询参数 ```java "current":1, "size":10, /** * 商品名称模糊查询 */ private String spuName; /** * 分类信息 */ private Integer catId; /** * 分类id列表 */ private List<Integer> catIdList; /** * 商品id */ private List<Integer> spuIdList; /** * 单个商品id */ private Integer spuId; /** * 商户id */ private Integer merchantId; /** * 标签 */ private List<Integer> tagCodeList; /** * 排序字段名 */ private String sortField; /** * 是否降序 */ private Boolean desc; ``` ```json { "current":1, "size":10, "sortField":"spuName", "desc":true } ``` ```json { "status": 200, "error": "", "message": "success", "payload": { "records": [ { "spuId": 68, "spuName": "苹果13", "spuDescription": null, "catId": 34, "weight": 100, "publishStatus": true, "type": "1", "imgUrl": "https://img2.baidu.com/it/u=2116882029,1761299726&fm=26&fmt=auto&gp=0.jpg", "accountPattern": null, "accountName": null, "createTime": "2021-08-23T09:03:49.000+00:00", "updateTime": "2021-08-23T09:03:49.000+00:00", "memberDiscount": true, "saleTime": "2021-08-17T08:46:24.000+00:00", "saleMin": 1, "merchantId": 1, "deleted": false, "minPrice": 850651, "maxPrice": 968000, "saleCount": 65, "minDiscountPrice": 833637.98, "maxDiscountPrice": 948640.00, "discount": 0.98 } ], "total": 1, "size": 10, "current": 1, "orders": [], "optimizeCountSql": true, "hitCount": false, "countId": null, "maxLimit": null, "searchCount": true, "pages": 1 } } ``` 响应参数 ```json /** * spuId */ private Integer spuId; /** * 商品名称 */ private String spuName; /** * 商品描述 */ private String spuDescription; /** * 所属分类id */ private Integer catId; /** * 重量 克 */ private Integer weight; /** * 上架状态[0 - 下架,1 - 上架] */ private Boolean publishStatus; /** * 商品类型1实物商品 2 虚拟商品 */ private String type; /** * 商品图片地址 用来展示 默认图片 */ private String imgUrl; /** * 账号校验格式 */ private String accountPattern; /** * 充值账号名称 */ private String accountName; /** * 创建时间 */ private Date createTime; /** * 更新时间 */ private Date updateTime; /** * 是否开启会员折扣 [0/1 不开启/开启] */ private Boolean memberDiscount; /** * 开售时间 */ private Date saleTime; /** * 起售数量 */ private Integer saleMin; /** * 商户id */ private Integer merchantId; /** * 是否删除 [0/1 未删除/删除] */ private Boolean deleted; /** * 最小价格 */ private BigDecimal minPrice; /** * 最大价格 */ private BigDecimal maxPrice; /** * 商品销量 */ private Integer saleCount; /** * 最小折扣价 */ private BigDecimal minDiscountPrice; /** * 最大折扣价 */ private BigDecimal maxDiscountPrice; /** * 商品折扣 */ private BigDecimal discount; /** * 商品总库存 */ private Integer inventory; /** * 可用库存 */ private Integer usableInventory; /** * 直购券数量 */ private Integer privilegeCoupon; ```