POST api/Setting/PostNotice
添加公告
Request Information
URI Parameters
None.
Body Parameters
"title":"标题","type":"类型 0 常看书柜 1 新上架书柜 2 风向标","about":"公告","abouttype":"公告类型 0 文本 1 图片 2 视频","hot":"热门","mid":"","showtype":"0 图片或视频轮播 1 视频循环播放"
BookcaseNoticePostModelName | Description | Type | Additional information |
---|---|---|---|
title |
标题 |
string |
None. |
type |
类型 |
string |
None. |
about |
正文 |
string |
None. |
abouttype |
正文类型 |
string |
None. |
hot |
是否热门 |
string |
None. |
mid |
机器码 |
string |
None. |
showtype |
0 图片或视频轮播 1 视频循环播放 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "title": "sample string 1", "type": "sample string 2", "about": "sample string 3", "abouttype": "sample string 4", "hot": "sample string 5", "mid": "sample string 6", "showtype": "sample string 7" }
text/html
Sample:
{"title":"sample string 1","type":"sample string 2","about":"sample string 3","abouttype":"sample string 4","hot":"sample string 5","mid":"sample string 6","showtype":"sample string 7"}
application/xml, text/xml
Sample:
<BookcaseNoticePostModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DERLAI.Models"> <about>sample string 3</about> <abouttype>sample string 4</abouttype> <hot>sample string 5</hot> <mid>sample string 6</mid> <showtype>sample string 7</showtype> <title>sample string 1</title> <type>sample string 2</type> </BookcaseNoticePostModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
true/false/error
HttpResponseMessageName | 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. |