文档
测试

兑换商品列表

POST
http://localhost:8080/app/exchange/goods/list

请求参数

参数名
类型
描述
必填
user_id
string
用户id 示例:41840909af844632885424fbc20cae79
必填
type_id
string
商品分类id  示例:
必填
page
int
当前页码 示例:1
必填
limit
int
每页条数 示例:5
必填
sign
string
签名 示例:1e9b143a9cd5bd633d4c14c2251f8ea7
必填
query_name
string
用户输入的搜索内容
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
errors
object
数据字典
必填
msg
string
示例:加载成功
必填
result
object
数据字典
必填
goods_list
array
商品列表
必填
goods_id
string
商品id 示例:2
必填
goods_name
string
商品名称 示例:猪屎香
必填
score
int
兑换需要积分 示例:5000
必填
exchange_num
int
已兑换数量 示例:3421
必填
type
int
类型 1现金券 2商品  示例:2
必填
goods_img
string
商品图片 示例:https://baiyiquan.oss-cn-shenzhen.aliyuncs.com/1640672186537.png
必填

说明 / 示例

{ "code": 1, "errors": { }, "msg": "加载成功", "result": { "goods_list": [ { "goods_name": "猪屎香", "score": 5000, "exchange_num": 3421, "goods_id": "2", "type": 2, "goods_img": "https://baiyiquan.oss-cn-shenzhen.aliyuncs.com/1640672186537.png" }, { "goods_name": "牛屎香", "score": 5000, "exchange_num": 3421, "goods_id": "1", "type": 2, "goods_img": "https://baiyiquan.oss-cn-shenzhen.aliyuncs.com/1640672186537.png" }, { "goods_name": "精白沙", "score": 5000, "exchange_num": 3421, "goods_id": "4", "type": 2, "goods_img": "https://baiyiquan.oss-cn-shenzhen.aliyuncs.com/1640672186537.png" }, { "goods_name": "星巴克咖啡", "score": 5000, "exchange_num": 3421, "goods_id": "3", "type": 2, "goods_img": "https://baiyiquan.oss-cn-shenzhen.aliyuncs.com/1640672186537.png" } ] } }