feat(image): 新建 knowai-core:1.0.0 镜像并完成推送
Some checks reported errors
continuous-integration/drone/push Build was killed
Some checks reported errors
continuous-integration/drone/push Build was killed
- 搭建 api、auth、utils 等逻辑模块 - 通过 tsc、eslint、vitest 测试验证 BREAKING CHANGE: 新镜像分支
This commit is contained in:
31
types/model/base.d.ts
vendored
Normal file
31
types/model/base.d.ts
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
import type { BaseEntity, BaseUser } from '../post/base';
|
||||
|
||||
// AI模型评论统计信息接口
|
||||
export interface ModelCommentStats {
|
||||
stars: number; // 收藏数
|
||||
likes: number; // 点赞数
|
||||
comments: number; // 评论数
|
||||
replies: number; // 回复数
|
||||
}
|
||||
|
||||
// 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;
|
||||
name: string;
|
||||
description: string;
|
||||
avatar?: string; // 模型头像
|
||||
tags?: string[]; // 模型标签
|
||||
website?: string; // 官方网站
|
||||
clickCount?: number; // 点击次数
|
||||
likeCount?: number; // 点赞次数
|
||||
}
|
||||
Reference in New Issue
Block a user