文档
测试

查询商品

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
必填
data
object
数据字典
必填
total
int
示例:4
必填
rows
array
数据列表
必填
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
必填

说明 / 示例

{ "message": "成功", "code": 200, "info": null, "data": { "total": 8, "rows": [ { "id": 6, ==产品名称== "productName": "单品发布", ==产品类别(0:单品 1:多品 2:任务)== "productType": 1, ==单价== "unitPrice": "100", ==赏金/赏金比例== "rewardPrice": "1", "userId": 3, ==产品简介== "productInfo": "{\"html\":\"<p><span style=\\\"font-size: 12px;\\\">奥术大师</span></p>\",\"text\":\"奥术大师\\n\",\"delta\":{\"ops\":[{\"attributes\":{\"fontSize\":\"12px\"},\"insert\":\"奥术大师\"},{\"insert\":\"\\n\"}]}}", "createTime": "2020-12-05T06:53:50.000+0000", "updateTime": "2020-12-05T06:53:50.000+0000", ==图片== "productImg": null, ==审核状态 -1保存未发布 0发布待审核 1审核未通过需要修改 2审核通过== "auditStatus": 2, ==点赞数== "likeNum": 2, ==分享数== "shareNum": 0, ==浏览量== "browseNum": 0, ==交易方式== "termsTrade": 0, ==销量== "salesVolume": 0, ==任务次数== "taskNum": 0, ==备注== "remark": null, ==交易状态 0关闭交易 1交易中== "dealStatus": 1, ==类别id== "categoryId": 1, ==语音== "voiceUrl": null, ==文件== "fileUrl": null, "productFinishCondition": null, ==任务完成条件== "conditions": [], ==是否点赞== "isLike": 1, ==是否关注== "isFocus": 1 "likeUserId": null, ==用户名== "nickName": null, ==头像== "photo": null, ==总投票数== "voteNum":0, ==赞同票数== "approvalNum": 1, ==反对票数== "notApprovalNum": 0, "productInfoQuery": null, ==大类名称== "resourceName": "陪聊", ==小类名称== "resourceSubName": "女孩", }, { "id": 7, "productName": "2312312", "productType": 1, "unitPrice": "12312", "rewardPrice": "123", "userId": 3, "productInfo": "{\"html\":\"<p><span style=\\\"font-size: 12px;\\\">123121</span></p>\",\"text\":\"123121\\n\",\"delta\":{\"ops\":[{\"attributes\":{\"fontSize\":\"12px\"},\"insert\":\"123121\"},{\"insert\":\"\\n\"}]}}", "createTime": "2020-12-09T06:34:27.000+0000", "updateTime": "2020-12-09T06:34:27.000+0000", "productImg": null, "auditStatus": 2, "likeNum": 1, "shareNum": 0, "browseNum": 0, "termsTrade": 0, "salesVolume": 0, "taskNum": 0, "remark": null, "dealStatus": 1, "categoryId": 1, "voiceUrl": null, "fileUrl": null, "productFinishCondition": null, ==任务完成条件== "conditions": [], "isLike": 0, "likeUserId": null, "userName": null, "photo": null, "productInfoQuery": null }, { "id": 8, "productName": "123123", "productType": 2, "unitPrice": "1231", "rewardPrice": "2312", "userId": 3, "productInfo": "{\"html\":\"<p><span style=\\\"font-size: 12px;\\\">3123</span></p>\",\"text\":\"3123\\n\",\"delta\":{\"ops\":[{\"attributes\":{\"fontSize\":\"12px\"},\"insert\":\"3123\"},{\"insert\":\"\\n\"}]}}", "createTime": "2020-12-09T06:34:48.000+0000", "updateTime": "2020-12-09T06:34:48.000+0000", "productImg": null, "auditStatus": 2, "likeNum": 1, "shareNum": 0, "browseNum": 0, "termsTrade": 0, "salesVolume": 0, "taskNum": 10, "remark": null, "dealStatus": 1, "categoryId": 1, "voiceUrl": null, "fileUrl": null, "productFinishCondition": null, "conditions": [], "isLike": 0, "likeUserId": null, "userName": null, "photo": null, "productInfoQuery": null }, { "id": 10, "productName": "蜂蜜", "productType": 0, "unitPrice": "10", "rewardPrice": "5", "userId": 4, "productInfo": "{\"html\":\"<p><span style=\\\"font-size: 12px;\\\">奥术大师</span></p>\",\"text\":\"奥术大师\\n\",\"delta\":{\"ops\":[{\"attributes\":{\"fontSize\":\"12px\"},\"insert\":\"奥术大师\"},{\"insert\":\"\\n\"}]}}", "createTime": "2020-12-10T08:45:13.000+0000", "updateTime": "2020-12-10T08:45:13.000+0000", "productImg": null, "auditStatus": 2, "likeNum": 0, "shareNum": 0, "browseNum": 0, "termsTrade": 0, "salesVolume": 0, "taskNum": 0, "remark": "", "dealStatus": 1, "categoryId": 4, "voiceUrl": null, "fileUrl": null, "productFinishCondition": null, "conditions": [ { "id": 11, "productId": 10, "condition": "农家土蜂蜜", "status": 0, "createTime": "2020-12-10T09:03:45.000+0000" }, { "id": 12, "productId": 10, "condition": "500M", "status": 0, "createTime": "2020-12-10T09:03:45.000+0000" } ], "isLike": 0, "likeUserId": null, "userName": "无时无刻都记住掌声响遍天。", "photo": null, "productInfoQuery": null }, { "id": 12, "productName": "洗发水", "productType": 0, "unitPrice": "55", "rewardPrice": "5", "userId": 4, "productInfo": "{\"html\":\"<p><span style=\\\"font-size: 12px;\\\">奥术大师</span></p>\",\"text\":\"奥术大师\\n\",\"delta\":{\"ops\":[{\"attributes\":{\"fontSize\":\"12px\"},\"insert\":\"奥术大师\"},{\"insert\":\"\\n\"}]}}", "createTime": "2020-12-11T02:13:35.000+0000", "updateTime": "2020-12-11T02:13:35.000+0000", "productImg": null, "auditStatus": 2, "likeNum": 0, "shareNum": 0, "browseNum": 0, "termsTrade": 0, "salesVolume": 0, "taskNum": 0, "remark": "", "dealStatus": 1, "categoryId": 3, "voiceUrl": null, "fileUrl": null, "productFinishCondition": null, "conditions": [ { "id": 13, "productId": 12, "condition": "清扬", "status": 0, "createTime": "2020-12-11T02:13:35.000+0000" }, { "id": 14, "productId": 12, "condition": "解决头皮瘙痒,防脱发", "status": 0, "createTime": "2020-12-11T02:13:35.000+0000" }, { "id": 15, "productId": 12, "condition": "100块钱以内", "status": 0, "createTime": "2020-12-11T02:13:35.000+0000" } ], "isLike": 0, "likeUserId": null, "userName": "无时无刻都记住掌声响遍天。", "photo": null, "productInfoQuery": null }, { "id": 14, "productName": "耳机", "productType": 0, "unitPrice": "119", "rewardPrice": "15", "userId": 4, "productInfo": "{\"html\":\"<p><span style=\\\"font-size: 12px;\\\">苹果手机耳机</span></p>\",\"text\":\"苹果手机耳机\\n\",\"delta\":{\"ops\":[{\"attributes\":{\"fontSize\":\"12px\"},\"insert\":\"苹果手机耳机\"},{\"insert\":\"\\n\"}]}}", "createTime": "2020-12-15T09:14:46.000+0000", "updateTime": "2020-12-15T09:14:46.000+0000", "productImg": "", "auditStatus": 0, "likeNum": 0, "shareNum": 0, "browseNum": 0, "termsTrade": 0, "salesVolume": 0, "taskNum": 0, "remark": null, "dealStatus": 0, "categoryId": null, "voiceUrl": null, "fileUrl": null, "productFinishCondition": null, "conditions": [], "isLike": 0, "likeUserId": null, "userName": "无时无刻都记住掌声响遍天。", "photo": null, "productInfoQuery": null }, { "id": 15, "productName": "水杯", "productType": 0, "unitPrice": "15", "rewardPrice": "5", "userId": 4, "productInfo": "{\"html\":\"<p><span style=\\\"font-size: 12px;\\\">保温杯</span></p>\",\"text\":\"保温杯\\n\",\"delta\":{\"ops\":[{\"attributes\":{\"fontSize\":\"12px\"},\"insert\":\"保温杯\"},{\"insert\":\"\\n\"}]}}", "createTime": "2020-12-17T03:02:39.000+0000", "updateTime": null, "productImg": "http://123.57.146.19:8000/images/tmp_b5b20d3ffdb1805e6a0f27bbfa88c5e7.jpg", "auditStatus": 0, "likeNum": 0, "shareNum": 0, "browseNum": 0, "termsTrade": 0, "salesVolume": 0, "taskNum": 0, "remark": null, "dealStatus": 0, "categoryId": null, "voiceUrl": null, "fileUrl": null, "productFinishCondition": null, "conditions": [], "isLike": 0, "likeUserId": null, "userName": "无时无刻都记住掌声响遍天。", "photo": null, "productInfoQuery": null }, { "id": 16, "productName": "任务商品", "productType": 2, "unitPrice": "300", "rewardPrice": "199", "userId": 6, "productInfo": "{\"html\":\"<p><span style=\\\"font-size: 24px;\\\">商品内容商品</span></p>\",\"text\":\"商品内容商品\\n\",\"delta\":{\"ops\":[{\"attributes\":{\"fontSize\":\"24px\"},\"insert\":\"商品内容商品\"},{\"insert\":\"\\n\"}]}}", "createTime": "2020-12-18T05:40:26.000+0000", "updateTime": null, "productImg": "http://123.57.146.19:8000/images/wx1cf78fc99a6b8816.o6zAJsxQjCHEPWqdKv0kLHHZZ6go.g31V1W33lruuf850cd4702b1ac39896ed1238651a7d3.jpg", "auditStatus": 0, "likeNum": 3, "shareNum": 0, "browseNum": 0, "termsTrade": 0, "salesVolume": 0, "taskNum": 10, "remark": null, "dealStatus": 0, "categoryId": null, "voiceUrl": null, "fileUrl": null, "productFinishCondition": null, "conditions": [ { "id": 17, "productId": 16, "condition": "条件", "status": 0, "createTime": "2020-12-18T05:40:26.000+0000" } ], "isLike": 1, "likeUserId": null, "userName": "昵称", "photo": "", "productInfoQuery": null } ] } }