chore: 初始化TikTok短剧后端项目基础架构
创建了完整的NestJS项目结构,包含配置文件、核心模块、工具类、拦截器、过滤器等基础代码,实现了健康检查、用户认证、管理员RBAC、剧集管理、订单支付、媒体管理等核心功能的基础框架,配置了ESLint、TypeScript、Jest等开发工具链。
This commit is contained in:
51
src/modules/dramas/interfaces/drama-records.interface.ts
Normal file
51
src/modules/dramas/interfaces/drama-records.interface.ts
Normal file
@@ -0,0 +1,51 @@
|
||||
import { PublishStatus } from '../drama-status.enum';
|
||||
|
||||
export interface DramaRecord {
|
||||
id: number;
|
||||
tiktokAlbumId?: string;
|
||||
title: string;
|
||||
description?: string;
|
||||
coverId?: number;
|
||||
coverUrl: string;
|
||||
portraitCoverUrl?: string;
|
||||
landscapeCoverUrl?: string;
|
||||
type: string;
|
||||
tags: string[];
|
||||
region?: string;
|
||||
language?: string;
|
||||
year?: number;
|
||||
status: PublishStatus;
|
||||
sortOrder: number;
|
||||
isRecommended: boolean;
|
||||
onlineVersion: number;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface EpisodeRecord {
|
||||
id: number;
|
||||
dramaId: number;
|
||||
albumId: number;
|
||||
tiktokEpisodeId?: string;
|
||||
episodeNo: number;
|
||||
seq: number;
|
||||
title: string;
|
||||
description?: string;
|
||||
byteplusVid?: string;
|
||||
coverId?: number;
|
||||
coverUrl: string;
|
||||
videoUrl?: string;
|
||||
trialDurationSeconds?: number;
|
||||
durationSeconds: number;
|
||||
isPaid: boolean;
|
||||
freeType: 'free' | 'paid';
|
||||
unlockPrice?: number;
|
||||
price: number;
|
||||
publishAt?: string;
|
||||
nextReleaseAt?: string;
|
||||
status: PublishStatus;
|
||||
reviewStatus: 'pending' | 'approved' | 'rejected';
|
||||
publishStatus: PublishStatus;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
Reference in New Issue
Block a user