POST api/message/save

保存一条消息

Request Information

URI Parameters

None.

Body Parameters

MessageDto
NameDescriptionTypeAdditional information
Id

编号

integer

None.

Content

消息内容

string

None.

Type

消息类型

MessageType

None.

Draft

是否草稿

boolean

None.

CreatedTime

创建时间

date

None.

IsRead

是否已阅

boolean

None.

ReCreatedTime

创建时间

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Content": "sample string 2",
  "Type": 0,
  "Draft": true,
  "CreatedTime": "2024-09-25T00:10:04.7651734+08:00",
  "IsRead": true,
  "ReCreatedTime": "2024-09-25 00:10"
}

text/html

Sample:
{"Id":1,"Content":"sample string 2","Type":0,"Draft":true,"CreatedTime":"2024-09-25T00:10:04.7651734+08:00","IsRead":true,"ReCreatedTime":"2024-09-25 00:10"}

application/xml, text/xml

Sample:
<MessageDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services">
  <Content>sample string 2</Content>
  <CreatedTime>2024-09-25T00:10:04.7651734+08:00</CreatedTime>
  <Draft>true</Draft>
  <Id>1</Id>
  <IsRead>true</IsRead>
  <Type>All</Type>
</MessageDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

保存一条消息

JsonRtnDtoOfMessage
NameDescriptionTypeAdditional information
Msg

string

None.

State

RtnState

None.

Data

Message

None.

Response Formats

application/json, text/json

Sample:
{
  "Msg": "sample string 1",
  "State": 100,
  "Data": {
    "Id": 1,
    "Content": "sample string 2",
    "Type": 0,
    "Draft": true,
    "CreatedTime": "2024-09-25T00:10:04.7651734+08:00",
    "Target": 1,
    "Mtg": [
      {
        "MessageId": 1,
        "MemberId": "sample string 2",
        "MemberType": 3,
        "IsRead": true,
        "CreatedTime": "2024-09-25T00:10:04.7651734+08:00"
      },
      {
        "MessageId": 1,
        "MemberId": "sample string 2",
        "MemberType": 3,
        "IsRead": true,
        "CreatedTime": "2024-09-25T00:10:04.7651734+08:00"
      }
    ]
  }
}

text/html

Sample:
{"Msg":"sample string 1","State":100,"Data":{"Id":1,"Content":"sample string 2","Type":0,"Draft":true,"CreatedTime":"2024-09-25T00:10:04.7651734+08:00","Target":1,"Mtg":[{"MessageId":1,"MemberId":"sample string 2","MemberType":3,"IsRead":true,"CreatedTime":"2024-09-25T00:10:04.7651734+08:00"},{"MessageId":1,"MemberId":"sample string 2","MemberType":3,"IsRead":true,"CreatedTime":"2024-09-25T00:10:04.7651734+08:00"}]}}

application/xml

Sample:

Sample not available.

text/xml

Sample:

Sample not available.

text/javascript, application/javascript, application/json-p

Sample:
/**/ typeof  === 'function' && ({"Msg":"sample string 1","State":100,"Data":{"Id":1,"Content":"sample string 2","Type":0,"Draft":true,"CreatedTime":"2024-09-25T00:10:04.7651734+08:00","Target":1,"Mtg":[{"MessageId":1,"MemberId":"sample string 2","MemberType":3,"IsRead":true,"CreatedTime":"2024-09-25T00:10:04.7651734+08:00"},{"MessageId":1,"MemberId":"sample string 2","MemberType":3,"IsRead":true,"CreatedTime":"2024-09-25T00:10:04.7651734+08:00"}]}});