POST api/UnitArticle/Get
获取文章详情[为传递单位编号读取当前用户所在单位]
Request Information
URI Parameters
None.
Body Parameters
ArticleInputName | Description | Type | Additional information |
---|---|---|---|
UnitID |
单位编号 |
string |
None. |
ID |
文章编号 |
globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "UnitID": "sample string 1", "ID": "1cdd7062-4056-4534-94d3-34c2368adfa5" }
Response Information
Resource Description
UnitArticleInputName | Description | Type | Additional information |
---|---|---|---|
ID |
新文章为空,编辑的时候为文章ID |
globally unique identifier |
None. |
Title |
标题 |
string |
None. |
TitlePic |
标题图片 |
string |
None. |
Content |
正文 |
string |
None. |
CategoryID |
文章栏目 |
globally unique identifier |
None. |
OwnerName |
作者 |
string |
None. |
ViewConfig |
访问权限 管理员0 全部255 其它按位或运算【教师 = 4,学生 = 8,家长 = 16,职工 = 32】 |
integer |
None. |
SetConfig |
附加选项 按位或运算【公告 = 1,置顶 = 2,幻灯 = 4,侧边栏 = 8】 |
integer |
None. |
Status |
发布状态 0草稿箱 1正常 |
integer |
None. |
Token |
签名 |
string |
None. |
SessionID |
会话ID |
globally unique identifier |
None. |
TimeStamp |
时间戳 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "ID": "5de22f7c-3383-4716-a57d-e5fc47b9d959", "Title": "sample string 1", "TitlePic": "sample string 2", "Content": "sample string 3", "CategoryID": "cbe98467-66a8-461f-8112-9177f937a3e8", "OwnerName": "sample string 5", "ViewConfig": 6, "SetConfig": 7, "Status": 8, "Token": "sample string 9", "SessionID": "8a3e1380-b84c-4acd-a0af-9781b45a87f6", "TimeStamp": 10 }