基本成型
This commit is contained in:
19
typings/index.d.ts
vendored
19
typings/index.d.ts
vendored
@@ -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[]
|
||||
}
|
||||
Reference in New Issue
Block a user