POST GDTV/v3/CollectHXYTV/SaveCollect

收藏接口

Request

URI Params

None.

Body Params

CollectTVModel
字段名字段说明字段类型附加信息
CollectID

主键

integer

None.

CDate

创建时间

date

None.

ClassID

班级ID

integer

None.

UMID

用户

integer

None.

Type

收藏来源

CollectType

None.

SType

资源类型

ResSourceType

None.

BType

身份类型

UserBindType

None.

TopCatgID

顶级栏目ID或科目ID

integer

None.

CatgID

栏目ID或科目ID

integer

None.

ResID

收藏的资源ID

integer

None.

CourseAreaType

课后服务类型

CourseInfoPAreaType

None.

Action

协议

string

None.

ResTitle

收藏的资源标题

string

None.

ResPic

收藏的图片

string

None.

ResPicOri

收藏的图片(原图)

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CollectID": 1,
  "CDate": "2025-05-02T04:15:40.371Z",
  "ClassID": 3,
  "UMID": 4,
  "Type": 0,
  "SType": 0,
  "BType": 0,
  "TopCatgID": 5,
  "CatgID": 6,
  "ResID": 7,
  "CourseAreaType": 0,
  "Action": "sample string 8",
  "ResTitle": "sample string 9",
  "ResPic": "sample string 10",
  "ResPicOri": "sample string 11"
}

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

Response

APITResultOfBoolean
字段名字段说明字段类型附加信息
Data

boolean

None.

Ret

返回结果(0-成功;>0-失败) ret=0 成功返回/ret=1 参数错误/ret=2 频率受限 /ret=3 Token无效 /ret=4 服务器内部错误 /ret=5 用户操作错误 / ret=6 停机维护 / ret=7 身份失效

integer

None.

ErrCode

错误代码,因功能而异

integer

None.

Msg

返回信息

string

None.

SeqId

请求序列

integer

None.

InfoMsg

API附加信息

string

None.

application/json, text/json

Sample:
{
  "Data": true,
  "Ret": 2,
  "ErrCode": 3,
  "Msg": "sample string 4",
  "SeqId": 5,
  "InfoMsg": "sample string 6"
}