feat(reset): 以构造器模式重构
- 加了大文件传输自定义分片协议 BREAKING CHANGES: 0.1.0(latest)
This commit is contained in:
@@ -1,32 +1,17 @@
|
||||
import type { BaseEntity, BaseUser } from '../post/base';
|
||||
|
||||
// AI模型评论统计信息接口
|
||||
export interface ModelCommentStats {
|
||||
stars: number; // 收藏数
|
||||
likes: number; // 点赞数
|
||||
comments: number; // 评论数
|
||||
replies: number; // 回复数
|
||||
}
|
||||
import type { BaseEntity, BaseStats } from '../common';
|
||||
|
||||
// AI模型评论接口
|
||||
export interface ModelComment extends BaseEntity {
|
||||
modelId: string; // 模型ID
|
||||
authorId: string; // 作者ID
|
||||
author: BaseUser; // 作者信息
|
||||
content: string; // 评论内容
|
||||
parentId?: string; // 父评论ID,用于嵌套评论
|
||||
// 其实没必要
|
||||
stats: ModelCommentStats; // 统计信息
|
||||
}
|
||||
|
||||
// AI模型接口
|
||||
export interface AIModel {
|
||||
id: string;
|
||||
export interface AIModel extends BaseEntity, BaseStats {
|
||||
name: string;
|
||||
description: string;
|
||||
avatar?: string; // 模型头像
|
||||
tags?: string[]; // 模型标签
|
||||
website?: string; // 官方网站
|
||||
clickCount?: number; // 点击次数
|
||||
likeCount?: number; // 点赞次数
|
||||
tags: string[]; // 模型标签(这个反正是静态的,必须有)
|
||||
website: string; // 官方网站(必须有)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user