新增资源内容

POST https://tcc-dev.interlib.com.cn/api/tcc-open-platform/open-api/resource/content
消耗
  • application/json
生成
  • */*
参数
类型 名称 说明 类型
Body dto
必填
dto [开放平台新增资源内容Dto]

开放平台新增资源内容Dto

名称 说明 类型
classifyName
必填
关联的资源分类
样例 : "关联的资源分类"
string
comment
可选
简评 string
contentType
可选
资源内容类型:1/图片,2/音频,3/视频,4,文档 integer (int32)
coverImg
可选
封面图片 string
createBy
可选
创建人
样例 : "张三"
string
createTime
可选
创建时间
样例 : "2020-12-14 00:00:00"
string (date-time)
describe
可选
详情 string
labelNames
可选
标签数组 < string > array
orgId
必填
租户id
样例 : 464909140298096640
integer (int64)
releaseTime
可选
发布时间(yyyy-MM-dd HH:mm:ss)
样例:"2020-11-02 03:00:59"
string (date-time)
resourceLibraryId
必填
关联的资源专题id integer (int64)
resourceType
可选
资源类型:0汇演、1比赛 integer (int32)
session
可选
场次总数
样例:"10"
string
sourceList
可选
来源
样例:["张三"]
< string > array
title
必填
资源内容标题
样例:"资源内容标题"
string
year
可选
年度
样例:"2020"
string
resourceIdList
可选
资源id,类型与资源内容类型保持同类型,不同类型的资源会被忽略 < integer (int64) > array
调用示例
{
  "classifyName": "关联的资源分类",
  "comment": "string",
  "contentType": 0,
  "coverImg": "string",
  "createBy": "张三",
  "createTime": "2020-12-14 03:35:06",
  "describe": "string",
  "labelNames": [
    "标签名称"
  ],
  "orgId": 464909140298096640,
  "releaseTime": "2020-11-02 03:00:59",
  "resourceIdList": [
    519549698760810496
  ],
  "resourceLibraryId": 0,
  "resourceType": 1,
  "session": "10",
  "sourceList": [
    "张三"
  ],
  "title": "资源内容标题",
  "year": "2020"
}
响应
HTTP代码 说明 类型
200 OK RestData
201 Created 无内容
401 Unauthorized 无内容
403 Forbidden 无内容
404 Not Found 无内容

响应示例

{
	"code": 200,
	"data": id(资源内容id),
	"desc": ""
}