文档
测试

根据分类或者用户获取社区服务列表

POST
{{host}}Service/getList

接口描述

is_history 为0时 根据分类获取列表 为1时 根据分类获取用户的历史记录

请求头

参数名
类型
描述
必填
token
string
示例:{{token}}
必填
shopid
int
示例:9
必填
sid
int
示例:1
必填

请求参数

参数名
类型
描述
必填
type
int
示例:1
必填
page
int
示例:1
必填
limit
int
示例:5
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
msg
string
示例:请求成功
必填
time
string
示例:1606913569
必填
data
array
数据列表
必填
id
int
示例:7
必填
title
string
示例:测试文章发布
必填
images
string
示例:/uploads/20201126/FpKC_Alc2UJy879wXvg7N9bcG6RT.png,/uploads/20201126/FrBNA3iQF1cw798CNfA3L9AOa3fT.png
必填
type
string
示例:1
必填
user_id
int
示例:8
必填
shop_id
int
示例:9
必填
f_time
int
示例:1606912805
必填
createtime
int
示例:1606912805
必填
updatetime
object
示例:null
必填
content
string
示例:测试发布内容
必填
phone
string
示例:15528314179
必填
num
int
示例:0
必填
x_id
int
示例:1
必填
type_text
string
示例:Type 1
必填
f_time_text
string
示例:2020-12-02 20:40:05
必填
code
int
示例:1
必填
msg
string
示例:请求成功
必填
time
string
示例:1606913910
必填
data
array
数据列表
必填
id
int
示例:7
必填
title
string
示例:测试文章发布
必填
images
array
数据列表
必填
type
string
示例:1
必填
user_id
int
示例:8
必填
shop_id
int
示例:9
必填
f_time
int
示例:1606912805
必填
createtime
int
示例:1606912805
必填
updatetime
object
示例:null
必填
content
string
示例:测试发布内容
必填
phone
string
示例:15528314179
必填
num
int
示例:0
必填
x_id
int
示例:1
必填
type_text
string
示例:Type 1
必填
f_time_text
string
示例:2020-12-02 20:40:05
必填

说明 / 示例

{ "code": 1, "msg": "请求成功", "time": "1606913910", "data": [ { "id": 7, "title": "测试文章发布", == 文章标题== "images": [ "http://img.luojing.vip/uploads/20201126/FpKC_Alc2UJy879wXvg7N9bcG6RT.png", "http://img.luojing.vip/uploads/20201126/FrBNA3iQF1cw798CNfA3L9AOa3fT.png" ], == 图片== "type": "1", "user_id": 8, "shop_id": 9, "f_time": 2020-12-02, == 时间== "createtime": 1606912805, "updatetime": null, "content": "测试发布内容", == 内容== "phone": "15528314179", == 联系方式== "num": 0, == 阅读量== "x_id": 1, "type_text": "Type 1", "f_time_text": "2020-12-02 20:40:05", "message_num": 4 ==留言数== }, { "id": 1, "title": "测试文章1", "images": [ "http://img.luojing.vip/uploads/20201126/FpKC_Alc2UJy879wXvg7N9bcG6RT.png", "http://img.luojing.vip/uploads/20201126/FrBNA3iQF1cw798CNfA3L9AOa3fT.png" ], "type": "1", "user_id": 3, "shop_id": 9, "f_time": 2020-12-02, "createtime": 1606805262, "updatetime": 1606805262, "content": "测试房屋租赁", "phone": "15528314179", "num": 0, "x_id": null, "type_text": "Type 1", "f_time_text": "2020-12-01 14:47:05" "message_num": 4 }, { "id": 2, "title": "测试文章2", "images": [ "http://img.luojing.vip/uploads/20201126/FpKC_Alc2UJy879wXvg7N9bcG6RT.png", "http://img.luojing.vip/uploads/20201126/FrBNA3iQF1cw798CNfA3L9AOa3fT.png" ], "type": "1", "user_id": 3, "shop_id": 9, "f_time": 2020-12-02, "createtime": 1606805262, "updatetime": 1606805262, "content": "测试房屋租赁", "phone": "15528314179", "num": 0, "x_id": null, "type_text": "Type 1", "f_time_text": "2020-12-01 14:47:05" "message_num": 4 }, { "id": 3, "title": "测试文章3", "images": [ "http://img.luojing.vip/uploads/20201126/FpKC_Alc2UJy879wXvg7N9bcG6RT.png", "http://img.luojing.vip/uploads/20201126/FrBNA3iQF1cw798CNfA3L9AOa3fT.png" ], "type": "1", "user_id": 3, "shop_id": 9, "f_time": 2020-12-02, "createtime": 1606805262, "updatetime": 1606805262, "content": "测试房屋租赁", "phone": "15528314179", "num": 0, "x_id": null, "type_text": "Type 1", "f_time_text": "2020-12-01 14:47:05" "message_num": 4 }, { "id": 4, "title": "测试文章4", "images": [ "http://img.luojing.vip/uploads/20201126/FpKC_Alc2UJy879wXvg7N9bcG6RT.png", "http://img.luojing.vip/uploads/20201126/FrBNA3iQF1cw798CNfA3L9AOa3fT.png" ], "type": "1", "user_id": 3, "shop_id": 9, "f_time": 2020-12-02, "createtime": 1606805262, "updatetime": 1606805262, "content": "测试房屋租赁", "phone": "15528314179", "num": 0, "x_id": null, "type_text": "Type 1", "f_time_text": "2020-12-01 14:47:05" "message_num": 4 } ] }