请求URL
http://xx.com/systemAnnouncement/add
Headers
请求方式
参数
参数名 |
必选 |
类型 |
说明 |
type |
是 |
int |
类型 1文本 2图片 |
title |
是 |
string |
标题 |
content |
是 |
string |
内容,type为1时必填 |
main_img |
是 |
string |
封面图,type为2时必填 |
detail_img |
是 |
array |
图片明细,type为2时必填 |
请求示例
{
"type": 2,
"title": "文本",
"content": "文本内容",
"main_img": "http://publicceshi.oss-cn-hangzhou.aliyuncs.com/tangfen/20211213/2021121314174661b6e58a1e039.png",
"detail_img": [
"http://publicceshi.oss-cn-hangzhou.aliyuncs.com/tangfen/20211213/2021121314174661b6e58a1e039.png",
"http://publicceshi.oss-cn-hangzhou.aliyuncs.com/tangfen/20211213/2021121314174661b6e58a1e039.png"
]
}
返回示例
{
"error_code": 0,
"msg": "success",
"data": []
}
返回参数说明
参数名 |
类型 |
说明 |
error_code |
int |
0成功 |
msg |
string |
success |
备注