查询商品
GET
https://tiandaoyuan.net/resexplore/productDetails/find
接口描述
查询商品
请求参数
参数名
类型
描述
必填
productType
int
示例:商品类型 0单品 1多品 2任务
必填
auditStatus
int
示例:审核状态 -1保存未发布 0待审核 1审核未通过需要修改 2审核通过
必填
userId
int
示例:1 当前用户id,通过当前用户查询商品
必填
dealStatus
int
示例:交易状态 0下架 1交易中
必填
categoryId
int
示例:1 分类id
必填
productInfoQuery
string
名称/内容查询 如:洗发
必填
offset
int
1 当前页数 需要分页时传入
必填
limit
int
10 当前总记录数 需要分页时传入
必填
id
int
当前商品id
必填
likeUserId
int
传当前用户id,该字段为查询当前用户是否为某个商品点赞 登陆后传入(移动端查询字段)
必填
响应参数
参数名
类型
描述
必填
message
string
示例:成功
必填
code
int
示例:200
必填
info
object
示例:null
必填
total
int
示例:4
必填
id
int
示例:6
必填
productName
string
示例:单品发布
必填
productType
int
示例:1
必填
unitPrice
string
示例:100
必填
rewardPrice
string
示例:1
必填
userId
int
示例:3
必填
productInfo
string
示例:{"html":"<p><span style=\"font-size: 12px;\">奥术大师</span></p>","text":"奥术大师\n","delta":{"ops":[{"attributes":{"fontSize":"12px"},"insert":"奥术大师"},{"insert":"\n"}]}}
必填
createTime
string
示例:2020-12-05T06:53:50.000+0000
必填
updateTime
string
示例:2020-12-05T06:53:50.000+0000
必填
productImg
object
示例:null
必填
auditStatus
int
示例:0
必填
likeNum
int
示例:0
必填
shareNum
int
示例:0
必填
browseNum
int
示例:0
必填
termsTrade
int
示例:0
必填
salesVolume
int
示例:0
必填
taskNum
int
示例:0
必填
remark
object
示例:null
必填
dealStatus
int
示例:0
必填