文档
测试

商品列表

GET
{{host}}/api/goods

请求头

参数名
类型
描述
必填
Token
string
必填

请求参数

application/json
参数名
类型
描述
必填
说明
page
int
页码
必填
type
int
商品类型
必填
1 普通商品 2 兑换商品

响应参数

application/json
参数名
类型
描述
必填
code
int
状态码 1成功 0 失败 401 未登录(无权限)
必填
msg
string
消息内容
必填
time
int
响应时间戳
必填
data
object(json)
数据集
必填
list
object(json)
商品列表
必填
id
int
商品ID
必填
productname
string
商品名称
必填
describe
string
商品描述
必填
price
float
市场价
必填
virtuavount
int
已购买人数
必填
endtime
int
销售截止时间
必填
goodspic
string
商品图片
必填
groupprice
float
售价
必填
allcount
int
总行数
必填
count
int
当前页行数
必填
totalPages
int
总页数
必填
currentPage
int
当前页
必填
nextPage
int
下一页 为0时就是没有了
必填

说明 / 示例

{ "code": 0, "msg": "参数不正确", "time": "1713949560", "data": null }