POST api/LiveBroadcostVideo/AddorCancelVideoCollect

收藏视频 如果是已收藏则取消收藏

Request Information

URI Parameters

None.

Body Parameters

mh163k_LiveBroadcost_CollectVideo
NameDescriptionTypeAdditional information
Id

自增id

integer

None.

UserId

自身用户 (前端无需传)

integer

None.

State

半持久码 (前端无需传)

integer

None.

VideoId

收藏的视频

integer

None.

CreateTime

关注时间

date

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:
<mh163k_LiveBroadcost_CollectVideo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.LiveBroadcost.Service.Model">
  <CreateTime>2024-05-10T03:39:34.6001577+08:00</CreateTime>
  <Id>1</Id>
  <State>3</State>
  <UserId>2</UserId>
  <VideoId>4</VideoId>
</mh163k_LiveBroadcost_CollectVideo>

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

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