Files
knowai/types/model/api.ts
tobegold574 382e3aff21 feat(reset): 以构造器模式重构
- 加了大文件传输自定义分片协议

BREAKING CHANGES: 0.1.0(latest)
2025-11-30 20:27:53 +08:00

51 lines
1.1 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import type { PaginationRequest, PaginationResponse } from 'types/common';
import type { ModelComment, AIModel } from './base';
// 获取模型详情请求接口
export interface GetModelsRequest extends PaginationRequest {
// 够了
}
// 获取模型详情响应接口
export interface GetModelsResponse extends PaginationResponse<AIModel> {
// 够了
}
// 批量获取模型评论请求接口
export interface GetModelCommentsRequest extends PaginationRequest {
modelId: string;
parentId?: string; // 父评论ID
}
// 批量获取模型评论响应接口
export interface GetModelCommentsResponse extends PaginationResponse<ModelComment> {
// 够了
}
// 发表模型评论请求接口
export interface CreateModelCommentRequest {
modelId: string;
content: string;
parentId?: string; // 父评论ID用于回复评论
}
// 发表模型评论响应接口
export interface CreateModelCommentResponse {
success: boolean;
}
// 点赞模型请求接口
export interface LikeModelRequest {
modelId: string;
}
// 点赞模型响应接口
export interface LikeModelResponse {
success: boolean;
}