POST api/Chat/sendMsg

发送消息

Request Information

URI Parameters

None.

Body Parameters

data_Chat
NameDescriptionTypeAdditional information
MsgId

integer

None.

UserId

integer

None.

ToUserId

integer

None.

ParentId

integer

None.

RealType

integer

None.

Type

信息类型1:文本,引用2:图片4:视频5:红包

integer

None.

IsAdmin

是否官方信息

boolean

None.

IsMy

是否自己发送还是对方

boolean

None.

RoomId

integer

None.

IsRead

boolean

None.

IsPlay

boolean

None.

Name

string

None.

Avatar

string

None.

Src

string

None.

Message

string

None.

Width

decimal number

None.

Height

decimal number

None.

Duration

语音长

decimal number

None.

Status

integer

None.

Time

date

None.

CreateTime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "MsgId": 1,
  "UserId": 2,
  "ToUserId": 3,
  "ParentId": 4,
  "RealType": 5,
  "Type": 6,
  "IsAdmin": true,
  "IsMy": true,
  "RoomId": 9,
  "IsRead": true,
  "IsPlay": true,
  "Name": "sample string 12",
  "Avatar": "sample string 13",
  "Src": "sample string 14",
  "Message": "sample string 15",
  "Width": 16.0,
  "Height": 17.0,
  "Duration": 18.0,
  "Status": 19,
  "Time": "2024-11-25 15:22:19",
  "CreateTime": "2024-11-25 15:22:19"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'data_Chat'.

Response Information

Resource Description

发送消息

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.