POST api/Setting/PostaddNotice
修改公告
Request Information
URI Parameters
None.
Body Parameters
"cid":"id","title":"标题","type":"类型 0 常看书柜 1 新上架书柜 2 风向标","about":"公告","abouttype":"公告类型 0 文本 1 图片 2 视频","hot":"热门","showtype":"0 图片或视频轮播 1 视频循环播放"
PutBookcaseNoticePostModel| Name | Description | Type | Additional information |
|---|---|---|---|
| cid |
自增id |
string |
None. |
| title |
标题 |
string |
None. |
| type |
类型 |
string |
None. |
| about |
正文 |
string |
None. |
| abouttype |
正文类型 |
string |
None. |
| hot |
热门 |
string |
None. |
| showtype |
0 图片或视频轮播 1 视频循环播放 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"cid": "sample string 1",
"title": "sample string 2",
"type": "sample string 3",
"about": "sample string 4",
"abouttype": "sample string 5",
"hot": "sample string 6",
"showtype": "sample string 7"
}
text/html
Sample:
{"cid":"sample string 1","title":"sample string 2","type":"sample string 3","about":"sample string 4","abouttype":"sample string 5","hot":"sample string 6","showtype":"sample string 7"}
application/xml, text/xml
Sample:
<PutBookcaseNoticePostModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DERLAI.Models"> <about>sample string 4</about> <abouttype>sample string 5</abouttype> <cid>sample string 1</cid> <hot>sample string 6</hot> <showtype>sample string 7</showtype> <title>sample string 2</title> <type>sample string 3</type> </PutBookcaseNoticePostModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
true/false/error
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |