| 1 | /* |
| 2 | * @Author: nevin |
| 3 | * @Date: 2025-02-07 09:48:29 |
| 4 | * @LastEditTime: 2025-02-08 20:13:55 |
| 5 | * @LastEditors: nevin |
| 6 | * @Description: |
| 7 | */ |
| 8 | import { PlatType } from '../../../commont/AccountEnum'; |
| 9 | |
| 10 | import { PubStatus } from '../../../commont/publish/PublishEnum'; |
| 11 | |
| 12 | interface IProperty { |
| 13 | code: number; |
| 14 | msg: string; |
| 15 | dataId: string; |
| 16 | previewVideoLink: string; |
| 17 | } |
| 18 | |
| 19 | export interface IVideoPubOtherData { |
| 20 | [PlatType.Xhs]?: { |
| 21 | // 预览需要 |
| 22 | xsec_token: string; |
| 23 | xsec_source: string; |
| 24 | }; |
| 25 | } |
| 26 | |
| 27 | export class PublishVideoResult { |
| 28 | // 0=失败 1=成功 |
| 29 | code: number; |
| 30 | // 提示信息 |
| 31 | msg: string; |
| 32 | // 数据ID |
| 33 | dataId?: string; |
| 34 | // 预览视频地址 |
| 35 | previewVideoLink?: string; |
| 36 | // 发布状态,可选值 |
| 37 | pubStatus?: PubStatus; |
| 38 | |
| 39 | constructor( |
| 40 | { code, msg, dataId, previewVideoLink }: IProperty = { |
| 41 | code: 1, |
| 42 | msg: '发布成功!', |
| 43 | dataId: '', |
| 44 | previewVideoLink: '', |
| 45 | }, |
| 46 | ) { |
| 47 | this.code = code; |
| 48 | this.msg = msg; |
| 49 | this.dataId = dataId; |
| 50 | this.previewVideoLink = previewVideoLink; |
| 51 | } |
| 52 | } |
| 53 |