From 05d1310a6ec27656712c0c5e5e57b3365d3faf56 Mon Sep 17 00:00:00 2001 From: tj <1378534974@qq.com> Date: 星期四, 29 五月 2025 16:54:34 +0800 Subject: [PATCH] api --- types/index.ts | 131 ++++++++++++++++++++++++++++++++++--------- 1 files changed, 102 insertions(+), 29 deletions(-) diff --git a/types/index.ts b/types/index.ts index 0aa5aff..4984d83 100644 --- a/types/index.ts +++ b/types/index.ts @@ -8,12 +8,12 @@ } export interface WechatLoginData { - code: string - imgurl?: string - nickname?: string - inviter?: string - phoneNumber?: string - purePhoneNumber?: string + code: string + imgurl?: string + nickname?: string + inviter?: string + phoneNumber?: string + purePhoneNumber?: string } export interface ProtocolData { @@ -22,73 +22,73 @@ content: string; } -export interface FilmWorks{ +export interface FilmWorks { id?: number; /** 中文名称 */ nameCn?: string; - + /** 英文名称 */ nameEn?: string; - + /** 作品类型 */ type?: string; typeStr?: string; - + /** 上映年份 */ releaseYear?: string; - + /** 导演(多个用逗号分隔) */ director?: string; - + /** 制片方 */ producer?: string; - + /** 主要演员(多个用逗号分隔) */ actors?: string; - + /** 剧情关键词(用逗号分隔) */ keywords?: string; - + /** 剧情简介 */ synopsis?: string; - + /** 封面图片URL */ coverUrl?: string; - + /** 封面图片描述文本 */ coverAlt?: string; - + /** 创建者用户类型 */ userType?: string; userTypeStr?: string; - + /** 置顶权重(越大越靠前) */ stickyWeight?: number; - + /** 状态 */ status?: string; statusStr?: string; - + /** 创建者ID */ createBy?: string; - + /** 最后修改者ID */ updateBy?: string; - + /** 收藏量 */ collectCount?: number; - + /** 点赞量 */ likeCount?: number; - + /** 评论量 */ commentCount?: number; - + /** 分享量 */ shareCount?: number; - + /** 分类 */ classify?: number; @@ -101,7 +101,80 @@ avatar?: String; nickname?: String; - + createTime?: String; -} \ No newline at end of file +} + +interface Node { + id: any; + parentId: any; + children: Node[]; +} + +export interface FilmCategoryTree extends Node { + /** 名称 */ + name: string; + + /** 父分类名称 */ + parentName: string; + + /** 图标 */ + imageUrl: string; + + /** 颜色 */ + color: string; + + /** 排序 */ + sortBy: number; + + /** 是否展示 */ + shown: boolean; + + /** 级别限制 */ + levelLimit: string; + + /** 子分类数量 */ + childrenCount: number; +} + +export interface FilmPicture { + name: string; + size: number; + url: string; +} + +export interface FilmInfo { + id: number; + nameCn: string; + nameEn: string; + nickname: string | null; + actors: string; + director: string; + producer: string; + filmContent: string | null; + filmPictures: FilmPicture[]; + coverUrl: string; + coverAlt: string; + coverTitle: string; + classify: string | null; + keywords: string; + tag: string; + type: string; + typeStr: string; + status: string; + statusStr: string; + stickyWeight: number; + synopsis: string; + avatar: string | null; + releaseYear: number | null; + collectCount: number; + commentCount: number; + likeCount: number; + shareCount: number; + userType: string; + userTypeStr: string; + createBy: string; + createTime: string; + updateBy: string | null; +} -- Gitblit v1.9.3