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 | 144 ++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 116 insertions(+), 28 deletions(-) diff --git a/types/index.ts b/types/index.ts index 09c8301..4984d83 100644 --- a/types/index.ts +++ b/types/index.ts @@ -1,9 +1,3 @@ -export interface ProtocolData { - id: number; - title: string; - content: string; -} - export interface WxUser { openId: String; sessionKey: String; @@ -13,73 +7,88 @@ purePhoneNumber: String; } -export interface FilmWorks{ +export interface WechatLoginData { + code: string + imgurl?: string + nickname?: string + inviter?: string + phoneNumber?: string + purePhoneNumber?: string +} + +export interface ProtocolData { + id: number; + title: string; + content: string; +} + +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; @@ -89,4 +98,83 @@ /** 封面图片描述主题 */ coverTitle?: string; -} \ No newline at end of file + avatar?: String; + + nickname?: String; + + createTime?: String; + +} + +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