POST api/notice/save
公告信息保存接口
Request Information
URI Parameters
None.
Body Parameters
公告信息
NoticeName | Description | Type | Additional information |
---|---|---|---|
PubId |
课程发布号 |
globally unique identifier |
None. |
Title |
公告标题 |
string |
None. |
Content |
公告内容 |
string |
None. |
State |
状态 |
NoticeState |
None. |
Region |
所属区域 1.讨论区公告,2.普通公告 |
integer |
None. |
Id |
主键 |
globally unique identifier |
None. |
CreatedTime |
创建时间 |
date |
None. |
IsDeleted |
是否删除 |
boolean |
None. |
LastUpdatedTime |
最后更新时间 |
date |
None. |
Request Formats
application/json, text/json
Sample:
{ "PubId": "e19171ba-a03d-4c4f-852c-56266bbe4170", "Title": "sample string 2", "Content": "sample string 3", "State": 1, "Region": 4, "Id": "c2690b99-5ece-4330-b781-651839948a52", "CreatedTime": "2024-09-25T00:11:47.7649293+08:00", "IsDeleted": true, "LastUpdatedTime": "2024-09-25T00:11:47.7649293+08:00" }
text/html
Sample:
{"PubId":"e19171ba-a03d-4c4f-852c-56266bbe4170","Title":"sample string 2","Content":"sample string 3","State":1,"Region":4,"Id":"c2690b99-5ece-4330-b781-651839948a52","CreatedTime":"2024-09-25T00:11:47.7649293+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:11:47.7649293+08:00"}
application/xml, text/xml
Sample:
<Notice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Data"> <CreatedTime>2024-09-25T00:11:47.7649293+08:00</CreatedTime> <Id>c2690b99-5ece-4330-b781-651839948a52</Id> <IsDeleted>true</IsDeleted> <LastUpdatedTime>2024-09-25T00:11:47.7649293+08:00</LastUpdatedTime> <Content>sample string 3</Content> <PubId>e19171ba-a03d-4c4f-852c-56266bbe4170</PubId> <Region>4</Region> <State>草稿</State> <Title>sample string 2</Title> </Notice>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
公告信息保存接口
JsonRtnDtoOfNoticeName | Description | Type | Additional information |
---|---|---|---|
Msg | string |
None. |
|
State | RtnState |
None. |
|
Data | Notice |
None. |
Response Formats
application/json, text/json
Sample:
{ "Msg": "sample string 1", "State": 100, "Data": { "PubId": "2f7e74ba-2fef-4376-8450-b762884487f1", "Title": "sample string 2", "Content": "sample string 3", "State": 1, "Region": 4, "Id": "8eed167b-bc46-4e68-b312-4872d825a9b5", "CreatedTime": "2024-09-25T00:11:47.7649293+08:00", "IsDeleted": true, "LastUpdatedTime": "2024-09-25T00:11:47.7649293+08:00" } }
text/html
Sample:
{"Msg":"sample string 1","State":100,"Data":{"PubId":"2f7e74ba-2fef-4376-8450-b762884487f1","Title":"sample string 2","Content":"sample string 3","State":1,"Region":4,"Id":"8eed167b-bc46-4e68-b312-4872d825a9b5","CreatedTime":"2024-09-25T00:11:47.7649293+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:11:47.7649293+08:00"}}
application/xml, text/xml
Sample:
<JsonRtnDtoOfNoticemEDjlcEG xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/BJ.Data"> <d2p1:CreatedTime>2024-09-25T00:11:47.7649293+08:00</d2p1:CreatedTime> <d2p1:Id>8eed167b-bc46-4e68-b312-4872d825a9b5</d2p1:Id> <d2p1:IsDeleted>true</d2p1:IsDeleted> <d2p1:LastUpdatedTime>2024-09-25T00:11:47.7649293+08:00</d2p1:LastUpdatedTime> <d2p1:Content>sample string 3</d2p1:Content> <d2p1:PubId>2f7e74ba-2fef-4376-8450-b762884487f1</d2p1:PubId> <d2p1:Region>4</d2p1:Region> <d2p1:State>草稿</d2p1:State> <d2p1:Title>sample string 2</d2p1:Title> </Data> <Msg>sample string 1</Msg> <State>Display</State> </JsonRtnDtoOfNoticemEDjlcEG>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"PubId":"2f7e74ba-2fef-4376-8450-b762884487f1","Title":"sample string 2","Content":"sample string 3","State":1,"Region":4,"Id":"8eed167b-bc46-4e68-b312-4872d825a9b5","CreatedTime":"2024-09-25T00:11:47.7649293+08:00","IsDeleted":true,"LastUpdatedTime":"2024-09-25T00:11:47.7649293+08:00"}});