POST api/UnitArticle/Add

添加编辑单位文章

Request Information

URI Parameters

None.

Body Parameters

UnitArticleInput
NameDescriptionTypeAdditional 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.

Request Formats

application/json, text/json

Sample:
{
  "ID": "1cd5edc3-c665-4477-b8d4-b4d628ffa49b",
  "Title": "sample string 1",
  "TitlePic": "sample string 2",
  "Content": "sample string 3",
  "CategoryID": "5ee36723-14f2-4e15-97a4-e60c5d16c201",
  "OwnerName": "sample string 5",
  "ViewConfig": 6,
  "SetConfig": 7,
  "Status": 8,
  "Token": "sample string 9",
  "SessionID": "b834f1c1-8d5e-4bdd-8e1d-b27843ddb2fc",
  "TimeStamp": 10
}

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.