POST HYAPI/AssistantService/Notice
发布公告
服务请求信息
URI 参数
None.
Body 参数
公告内容
NoticeBaseModel| Name | Description | Type | Additional information |
|---|---|---|---|
| title |
公告标题 |
string |
None. |
| notice_content |
公告内容 |
string |
None. |
| notice_type |
公告类型 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"title": "sample string 1",
"notice_content": "sample string 2",
"notice_type": "sample string 3"
}
application/xml, text/xml
Sample:
<NoticeBaseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Service.API.Model"> <notice_content>sample string 2</notice_content> <notice_type>sample string 3</notice_type> <title>sample string 1</title> </NoticeBaseModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
服务返回信息
返回数据说明
如果复制成功则Data中返回新加数据ID,否则在Message中返回错误信息
ResponseDataModelOfString| Name | Description | Type | Additional information |
|---|---|---|---|
| State |
返回消息状态 |
integer |
None. |
| Message |
操作信息 |
string |
None. |
| Data |
返回数据 |
string |
None. |
返回数据范例
application/json, text/json
Sample:
{
"State": 1,
"Message": "sample string 2",
"Data": "sample string 3"
}
application/xml, text/xml
Sample:
<ResponseDataModelOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Service.API.Model"> <Data>sample string 3</Data> <Message>sample string 2</Message> <State>1</State> </ResponseDataModelOfstring>