基本成型

This commit is contained in:
JACKYMYPERSON
2025-09-27 17:24:52 +08:00
parent 578d49826b
commit eae49c76bd
502 changed files with 15238 additions and 708 deletions

19
typings/index.d.ts vendored
View File

@@ -24,24 +24,6 @@ export interface CardData {
}
export interface Comment {
id: number;
article_id: number;
parent_id: number;
content: string;
likes_count: number;
created_at: string;
updated_at: string;
username: string;
avatar_url: string;
replies?: Comment[]; // 子评论可选
}
export interface CommentResponse {
data: Comment[];
message: string;
success: boolean;
}
interface IAppOption {
@@ -54,5 +36,4 @@ interface IAppOption {
userInfoReadyCallback?: WechatMiniprogram.GetUserInfoSuccessCallback,
processVoteData(rawData: CardData[]): CardData[],
fetchRawCardData():void,
getComments(articleId: number):Comment[]
}