POST api/Other/News/new

新增最新消息

Request Information

URI Parameters

None.

Body Parameters

NewNews
NameDescriptionTypeAdditional information
NewsType

消息類別

string

None.

NewsTitle

最新消息標題

string

None.

UpdateTime

最新消息更新時間

date

None.

BeginTime

活動開始時間

date

None.

EndTime

活動結束時間

date

None.

SetTop

是否置頂

integer

None.

NewsContent

最新消息內容

string

None.

Auditor

編輯者

string

None.

Request Formats

application/json, text/json

Sample:
{
  "NewsType": "sample string 1",
  "NewsTitle": "sample string 2",
  "UpdateTime": "2025-05-03T01:18:45.927554+00:00",
  "BeginTime": "2025-05-03T01:18:45.927554+00:00",
  "EndTime": "2025-05-03T01:18:45.927554+00:00",
  "SetTop": 6,
  "NewsContent": "sample string 7",
  "Auditor": "sample string 8"
}

application/xml, text/xml

Sample:
<NewNews xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iMOE_Back_End.Controllers">
  <Auditor>sample string 8</Auditor>
  <BeginTime>2025-05-03T01:18:45.927554+00:00</BeginTime>
  <EndTime>2025-05-03T01:18:45.927554+00:00</EndTime>
  <NewsContent>sample string 7</NewsContent>
  <NewsTitle>sample string 2</NewsTitle>
  <NewsType>sample string 1</NewsType>
  <SetTop>6</SetTop>
  <UpdateTime>2025-05-03T01:18:45.927554+00:00</UpdateTime>
</NewNews>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ActionResponse
NameDescriptionTypeAdditional information
Account

執行帳號

string

None.

Action

執行功能

string

None.

result

執行結果

boolean

None.

remark

執行失敗時所使用欄位,備註錯誤原因

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Account": "sample string 1",
  "Action": "sample string 2",
  "result": true,
  "remark": "sample string 4"
}

application/xml, text/xml

Sample:
<ActionResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iMOE_Back_End.Controllers">
  <Account>sample string 1</Account>
  <Action>sample string 2</Action>
  <remark>sample string 4</remark>
  <result>true</result>
</ActionResponse>