字幕文件
/api/v1/subtitles¶
POST¶
Summary:¶
创建字幕
Description:¶
创建字幕
Parameters¶
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
data | body | data | Yes | dto.SubtitleInsertReq |
Responses¶
Code | Description | Schema |
---|---|---|
200 | {"code": 200, "message": "success"} | response.Response |
Security¶
Security Schema | Scopes |
---|---|
Bearer |
GET¶
Summary:¶
分页字幕列表数据
Description:¶
字幕列表
Parameters¶
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
displayName | query | 字幕名称 | No | string |
type | query | 字幕类型 | No | string |
page | query | 页条数 | No | integer |
limit | query | 页码 | No | integer |
Responses¶
Code | Description | Schema |
---|---|---|
200 | {"code": 200, "data": [...]} | response.Response & object |
Security¶
Security Schema | Scopes |
---|---|
Bearer |
/api/v1/subtitles/{uid}¶
GET¶
Summary:¶
查询字幕
Description:¶
查询字幕
Parameters¶
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
uid | path | uid | No | string |
Responses¶
Code | Description | Schema |
---|---|---|
200 | {"code": 200, "data": [...]} | response.Response & object |
Security¶
Security Schema | Scopes |
---|---|
Bearer |
PUT¶
Summary:¶
更新字幕
Description:¶
更新字幕
Parameters¶
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
data | body | body | Yes | dto.SubtitleUpdateReq |
Responses¶
Code | Description | Schema |
---|---|---|
200 | {"code": 200, "message": "success"} | response.Response |
Security¶
Security Schema | Scopes |
---|---|
Bearer |
DELETE¶
Summary:¶
删除字幕
Description:¶
删除字幕
Parameters¶
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
data | body | uids | No | dto.SubtitleDeleteReq |
Responses¶
Code | Description | Schema |
---|---|---|
200 | {"code": 200, "message": "success"} | response.Response |
Security¶
Security Schema | Scopes |
---|---|
Bearer |
dto.SubtitleDeleteReq¶
Name | Type | Description | Required |
---|---|---|---|
uids | [ string ] | No |
dto.SubtitleInsertReq¶
Name | Type | Description | Required |
---|---|---|---|
basicId | string | 关联视频id | No |
creator | string | 上传者的uid | No |
displayName | string | 字幕展示名称 | No |
fileUri | string | 字幕存储地址 | No |
filename | string | 字幕文件名 | No |
format | string | 字幕格式 webvtt | srt |
isPublish | integer | 上线状态 | No |
language | string | 字幕语种 | No |
mosBucket | string | 字幕存储桶 | No |
origin | string | 字幕来源 | No |
path | string | 字幕存储桶Path | No |
size | integer | 字幕大小 | No |
sort | integer | 排序 | No |
dto.SubtitleUpdateReq¶
Name | Type | Description | Required |
---|---|---|---|
basicId | string | 关联视频id | No |
creator | string | 上传者的uid | No |
displayName | string | 字幕展示名称 | No |
fileUri | string | 字幕存储地址 | No |
format | string | 字幕格式 webvtt | srt |
isPublish | integer | 上线状态 | No |
language | string | 字幕语种 | No |
mosBucket | string | 字幕存储桶 | No |
origin | string | 字幕来源 | No |
size | integer | 字幕大小 | No |
uid | string | UID | No |