POST api/LiveBroadcostRedPacket/MemberSendRedPacket

会员中心 - 发红包

Request Information

URI Parameters

None.

Body Parameters

RedPacketCreateDto
NameDescriptionTypeAdditional information
VideoId

视频id

integer

None.

Nums

红包份数

integer

None.

AmountOfMoney

红包金额

decimal number

None.

UserId

发红包用户 后台用户传负值(前端无需传递)

integer

None.

IsAvg

是否均分

boolean

None.

State

半持久码 (前端无需传递)

integer

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<RedPacketCreateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.LiveBroadcost.Service.Dto.RedPacket">
  <AmountOfMoney>3</AmountOfMoney>
  <IsAvg>true</IsAvg>
  <Nums>2</Nums>
  <State>6</State>
  <UserId>4</UserId>
  <VideoId>1</VideoId>
</RedPacketCreateDto>

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 'RedPacketCreateDto'.

Response Information

Resource Description

会员中心 - 发红包

Object

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />