POST api/LiveBroadcostVideo/CreateVideo

后台 - 创建短视频

Request Information

URI Parameters

None.

Body Parameters

短视频内容

VideoCreateDto
NameDescriptionTypeAdditional information
Id

integer

None.

UserId

用户id

integer

None.

CoverFilePath

视频封面

string

None.

VideoFilePath

视频地址

string

None.

VideoDesc

视频描述

string

None.

CategoryId

视频分类

integer

None.

EntityId

关联id

integer

None.

EntityTitle

关联标题

string

None.

EntityFilePath

关联信息的封面 或者自定义封面

string

None.

EntityType

关联数据类型 自定义需要传自定义 0 不关联传-1

LiveBroadcostScene

None.

CustomTitle

自定义标题

string

None.

CustomUrl

自定义链接

string

None.

VideoDuration

视频时长

decimal number

None.

VirtualPlayNum

虚拟播放数

integer

None.

X

decimal number

None.

Y

decimal number

None.

IsShow

是否显示

boolean

None.

IsRevert

是否能评论

boolean

None.

IsReward

是否可以打赏

boolean

None.

IntOrder

排序值

integer

None.

Area

地区

string

None.

MallCommodityId

带货商品id

integer

None.

Width

视频宽

integer

None.

High

视频高

integer

None.

CreateTime

创建时间

date

None.

IsShowCreateTime

是否显示发布时间

boolean

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:
<VideoCreateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.LiveBroadcost.Service.Dto.Video">
  <Area>sample string 20</Area>
  <CategoryId>6</CategoryId>
  <CoverFilePath>sample string 3</CoverFilePath>
  <CreateTime>2024-05-09T19:38:46.8661613+08:00</CreateTime>
  <CustomTitle>sample string 10</CustomTitle>
  <CustomUrl>sample string 11</CustomUrl>
  <EntityFilePath>sample string 9</EntityFilePath>
  <EntityId>7</EntityId>
  <EntityTitle>sample string 8</EntityTitle>
  <EntityType>Custom</EntityType>
  <High>23</High>
  <Id>1</Id>
  <IntOrder>19</IntOrder>
  <IsRevert>true</IsRevert>
  <IsReward>true</IsReward>
  <IsShow>true</IsShow>
  <IsShowCreateTime>true</IsShowCreateTime>
  <MallCommodityId>21</MallCommodityId>
  <UserId>2</UserId>
  <VideoDesc>sample string 5</VideoDesc>
  <VideoDuration>12</VideoDuration>
  <VideoFilePath>sample string 4</VideoFilePath>
  <VirtualPlayNum>13</VirtualPlayNum>
  <Width>22</Width>
  <X>14.1</X>
  <Y>15.1</Y>
</VideoCreateDto>

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

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/" />