@cfygaoyang
2018-05-23T03:35:34.000000Z
字数 6386
阅读 593
GET /web/notice
{
"Authorization": "1234567890"
}
{
"total": 2,
"data": [
{
"id": 2,
"number": "00000002",
"title": "标题",
"content": "内容",
"thumbnail": "",
"status": 0,
"created_at": "2018-04-03T02:43:05.853651"
}
],
"pages": 1,
"page_size": 20,
"current_page": 1
}
POST /web/notice
{
"Authorization": "1234567890"
}
参数 | 类型 | 必须 | 说明 |
---|---|---|---|
title | 字符串 | 是 | 标题 |
content | 字符串 | 是 | 内容 |
thubmnail | 字符串 | 可选 | 缩略图地址 |
* 请求回调
{
"message": {
"id": 3,
"number": "00000003",
"title": "标题",
"content": "内容",
"thumbnail": "",
"status": 0,
"created_at": "2018-04-03T02:46:22.378016"
},
"code": 0
}
GET /web/notice/{pk}
{
"Authorization": "1234567890"
}
{
"message": {
"id": 1,
"number": "",
"title": "标题",
"content": "内容",
"thumbnail": "",
"status": 0,
"created_at": "2018-04-03T02:39:39.320524"
},
"code": 0
}
PUT /web/notice/{pk}
{
"Authorization": "1234567890"
}
参数 | 类型 | 必须 | 说明 |
---|---|---|---|
title | 字符串 | 是 | 标题 |
content | 字符串 | 是 | 内容 |
thubmnail | 字符串 | 是 | 缩略图地址 |
{
"message": {
"id": 1,
"number": "",
"title": "标题",
"content": "内容",
"thumbnail": "",
"status": 0,
"created_at": "2018-04-03T02:39:39.320524"
},
"code": 0
}
DELETE /web/notice/{pk}
{
"Authorization": "1234567890"
}
{
"message": "success",
"code": 0
}
GET /web/feedback?date={date}&page={PAGE}
{
"Authorization" :"1234567890qwertyuio"
}
参数 | 类型 | 必须 | 说明 |
---|---|---|---|
date | 字符串 | 否 | 天数 例 3 (查询三天内) |
content | 字符串 | 否 | 关键字查询 例 怎么办 |
status | 字符串 | 否 | 状态查询 例 0(未处理) 1(处理中) 2(已关闭) |
查询优先级: 时间 > 关键字 > 状态
没有搜索条件则查询所有
{
"message": {
"total": 1,
"data": [反馈信息列表],
"pages": 1,
"page_size": 20,
"current_page": 1
},
"code": 0
}
GET /web/feedback/{pk}
{
"Authorization" :"1234567890qwertyuio"
}
参数 | 类型 | 必须 | 说明 |
---|---|---|---|
pk | 整形 | 是 | 反馈主键 feedback_id |
{
"code": 0,
"message": {反馈信息}
}
PUT /web/feedback/{pk}
{
"Authorization" :"1234567890qwertyuio"
}
{
"feedback_title": "标题",
"feedback_content": "描述"
}
参数 | 类型 | 必须 | 说明 |
---|---|---|---|
feedback_title | 字符串 | 是 | 反馈标题 |
feedback_content | 字符串 | 是 | 反馈描述 |
{
"code": 0,
"message": {反馈信息}
}
DELETE /web/feedback/{pk}
{
"Authorization" :"1234567890qwertyuio"
}
参数 | 类型 | 必须 | 说明 |
---|---|---|---|
pk | 整形 | 是 | 反馈主键 feedback_id |
{
"code": 0,
"message": "success"
}
GET /web/feedback_reply/{pk}?page={PAGE}
参数 | 类型 | 必须 | 说明 |
---|---|---|---|
pk | 整形 | 是 | 反馈信息主键 feedback_id |
{
"message": {
"total": 1,
"data": [回复信息列表],
"pages": 1,
"page_size": 20,
"current_page": 1
},
"code": 0
}
POST /web/feedback_reply/{pk}
参数 | 类型 | 必须 | 说明 |
---|---|---|---|
reply_content | 字符串 | 是 | 回复内容 |
feedback_status | 整型 | 是 | 状态(0:待处理,1:处理中,2:已关闭) |
{
"message": {
"reply_id": 4,
"reply_content": "cccc222",
"feedback_id": 3,
"is_read": false,
"created_at": "2018-04-11T17:08:00.631000",
"updated_at": "2018-04-11T17:08:00.632000"
},
"code": 0
}
GET /notice
{
"Authorization" :"1234567890qwertyuio"
}
{
"total": 3,
"data": [
{
"id": 2,
"number": "00000002",
"title": "ttt",
"content": "cccc",
"thumbnail": "",
"status": 0,
"created_at": "2018-04-10T13:13:52.330000"
},
{
"id": 3,
"number": "00000003",
"title": "ttt222",
"content": "cccc2222",
"thumbnail": "",
"status": 0,
"created_at": "2018-04-10T13:59:30.147000"
},
{
"id": 4,
"number": "00000004",
"title": "tttddd",
"content": "ddddd",
"thumbnail": "",
"status": 0,
"created_at": "2018-04-10T14:16:15.091000"
}
],
"pages": 1,
"page_size": 20,
"current_page": 1
}
GET /notice/{pk}
{
"Authorization" :"1234567890qwertyuio"
}
{
"message": {
"id": 6,
"number": "00000006",
"title": "ttt222",
"content": "cccc2222",
"thumbnail": "https://sds.fmart.com.cn/storage/img/20180408155636.jpg",
"status": 0,
"created_at": "2018-04-10T16:37:29.749000"
},
"code": 0
}
GET /web/notice?number={number}
{
"Authorization" :"1234567890qwertyuio"
}
参数 | 类型 | 必须 | 说明 |
---|---|---|---|
title | 字符串 | 否 | 标题查询 例 女王节 |
date | 字符串 | 否 | 天数 例 3 (查询三天内) |
number | 字符串 | 否 | 编号查询 例 000006 |
查询优先级: 编号 > 时间 > 关键字
没有搜索条件则查询所有
{
"total": 3,
"data": [
{
"id": 2,
"number": "00000002",
"title": "ttt",
"content": "cccc",
"thumbnail": "",
"status": 0,
"created_at": "2018-04-10T13:13:52.330000"
},
{
"id": 3,
"number": "00000003",
"title": "ttt222",
"content": "cccc2222",
"thumbnail": "",
"status": 0,
"created_at": "2018-04-10T13:59:30.147000"
},
{
"id": 4,
"number": "00000004",
"title": "tttddd",
"content": "ddddd",
"thumbnail": "",
"status": 0,
"created_at": "2018-04-10T14:16:15.091000"
}
],
"pages": 1,
"page_size": 20,
"current_page": 1
}
POST /web/notice
{
"Authorization" :"1234567890qwertyuio"
}
参数 | 类型 | 必须 | 说明 |
---|---|---|---|
title | 字符串 | 是 | 标题 |
content | 字符串 | 是 | 内容 |
thumbnail | 字符串 | 可选 | 缩略图 |
{
"message": {
"id": 5,
"number": "00000005",
"title": "ttt222",
"content": "cccc2222",
"thumbnail": "https://sds.fmart.com.cn/storage/img/20180408155636.jpg",
"status": 0,
"created_at": "2018-04-10T16:08:15.380000"
},
"code": 0
}
PUT /web/notice/{pk}
{
"Authorization" :"1234567890qwertyuio"
}
参数 | 类型 | 必须 | 说明 |
---|---|---|---|
title | 字符串 | 是 | 标题 |
content | 字符串 | 是 | 内容 |
thumbnail | 字符串 | 可选 | 缩略图 |
{
"message": {
"id": 5,
"number": "00000005",
"title": "ttt222",
"content": "cccc2222",
"thumbnail": "https://sds.fmart.com.cn/storage/img/20180408155636.jpg",
"status": 0,
"created_at": "2018-04-10T16:08:15.380000"
},
"code": 0
}
DELETE /web/notice/{pk}
{
"Authorization" :"1234567890qwertyuio"
}
参数 | 类型 | 必须 | 说明 |
---|---|---|---|
pk | 整形 | 是 | 活动信息主键 |
{
"code": 0,
"message": "success"
}
POST /web/notice/push/{pk}
{
"Authorization" :"1234567890qwertyuio"
}
参数 | 类型 | 必须 | 说明 |
---|---|---|---|
pk | 整形 | 是 | 活动信息主键 |
备注:0:已保存 1:已推送
{
"code": 0,
"message": "success"
}
GET /web/operator
{
"Authorization" :"1234567890qwertyuio"
}
{
"message": {
"total": 7,
"data": [
{
"user_id": 18,
"user_permission": 2,
"created_at": "2018-04-11T11:50:49.464000",
"updated_at": "2018-04-11T11:50:49.465000",
"user_email": "",
"user_name": "小明小",
"user_password": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXNzd29yZCI6IjEyMzQ1NiJ9.tj8r8ucscDj-q9IxWzMKSE8-HbJI2qOhqk8Nzh8RR_s",
"user_telephone": "17777777729"
},
...
{
"user_id": 16,
"user_permission": 2,
"created_at": "2018-04-10T11:25:56.420000",
"updated_at": "2018-04-10T11:25:56.421000",
"user_email": "",
"user_name": "小明",
"user_password": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXNzd29yZCI6IjEyMzQ1NiJ9.tj8r8ucscDj-q9IxWzMKSE8-HbJI2qOhqk8Nzh8RR_s",
"user_telephone": "17777777779"
}
],
"pages": 1,
"page_size": 20,
"current_page": 1
},
"code": 0
}
POST /web/operator
{
"Authorization" :"1234567890qwertyuio"
}
参数 | 类型 | 必须 | 说明 |
---|---|---|---|
user_name | 字符串 | 是 | 姓名 |
user_password | 字符串 | 是 | 密码 |
user_telephone | 字符串 | 是 | 账号 手机号 |
{
"message": {
"user_id": 23,
"user_email": "",
"user_telephone": "17777777323",
"user_password": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXNzd29yZCI6IjEyMzQ1NiJ9.tj8r8ucscDj-q9IxWzMKSE8-HbJI2qOhqk8Nzh8RR_s",
"user_permission": 2,
"created_at": "2018-04-11T13:55:52.568000",
"updated_at": "2018-04-11T13:55:52.568000"
},
"code": 0
}
PUT /web/operator/{pk}
{
"Authorization" :"1234567890qwertyuio"
}
参数 | 类型 | 必须 | 说明 |
---|---|---|---|
user_name | 字符串 | 否 | 标题 |
user_password | 字符串 | 是 | 内容 |
user_telephone | 字符串 | 是 | 手机 |
{
"code": 0,
"message": "success"
}
DELETE /web/operator/{pk}
{
"Authorization" :"1234567890qwertyuio"
}
参数 | 类型 | 必须 | 说明 |
---|---|---|---|
pk | 整形 | 是 | 运营人员主键 user_id |
{
"code": 0,
"message": "success"
}