-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
201 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"time": 1721299432572, | ||
"version": "2024.7.18" | ||
"time": 1721312066360, | ||
"version": "2024.7.18.22" | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export type CommentData = { | ||
/** 用户头像 */ | ||
userAvatar: string; | ||
/** 主页url */ | ||
userHomeUrl: string; | ||
/** 用户un */ | ||
userName: string; | ||
/** 显示的用户名 */ | ||
userShowName: string; | ||
/** */ | ||
userPortrait: string; | ||
/** 用户发帖id */ | ||
userPostId: number | string; | ||
/** 用户回复内容 */ | ||
userReplyContent: string; | ||
/** 用户回复时间 */ | ||
userReplyTime: string; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
export type PageComment = { | ||
/** 楼中楼评论的数据 */ | ||
commentList: { | ||
[postId: string]: { | ||
/** 评论数据,键是发帖id */ | ||
comment_info: { | ||
show_nickname: string; | ||
username: string; | ||
content: string; | ||
comment_id: number; | ||
post_id: number; | ||
user_id: number; | ||
thread_id: number; | ||
now_time: number; | ||
location?: { | ||
name: string; | ||
}; | ||
// [key: string]: any; | ||
}[]; | ||
comment_list_num: number; | ||
comment_num: number; | ||
}; | ||
}; | ||
/** 楼中楼评论的用户的数据 */ | ||
userList: { | ||
[postId: string]: { | ||
show_nickname: string; | ||
user_name: string; | ||
user_nickname: string; | ||
user_nickname_v2: string; | ||
nickname: string; | ||
display_name: string; | ||
user_sex: 0 | 1 | 2; | ||
user_id: number; | ||
portrait: string; | ||
card: { | ||
/** 点赞数 */ | ||
good_num: number; | ||
is_novice: number; | ||
op_time: number; | ||
/** 发帖数 */ | ||
post_num: number; | ||
/** 关注的吧 */ | ||
like_forum?: { | ||
[forumLevel: string]: { | ||
count: number; | ||
/** 吧名列表 */ | ||
forum_list: string[]; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
/** 某一楼的数据 */ | ||
export type FloorCommentData = { | ||
/** 层主id */ | ||
userId: number; | ||
/** 发帖id */ | ||
userPostId: number; | ||
/** */ | ||
userPortrait: string; | ||
/** 当前楼层 */ | ||
userFloor: number; | ||
/** 层主评论的内容 */ | ||
userComment: string; | ||
/** 层主主页url */ | ||
userHomeUrl: string; | ||
/** 用户在本吧的等级 */ | ||
userForumLevel: number; | ||
/** 用户在本吧的等级的名字 */ | ||
userForumLevelName: string; | ||
/** 层主头像 */ | ||
userAvatar: string; | ||
/** 层主的un */ | ||
userName: string; | ||
/** 层主显示的名字 */ | ||
userShowName: string; | ||
/** 层主评论的时间,例如:xxx小时前 */ | ||
userCommentTime: string; | ||
/** 层主的ip地址 */ | ||
userIpPosition: string; | ||
/** 楼中楼评论的数据 */ | ||
pageCommentList: PageComment; | ||
}; | ||
|
||
export type LzlItemData = { | ||
data: PageComment["commentList"][""]["comment_info"][0]; | ||
userInfo: PageComment["userList"][""]; | ||
portrait: string; | ||
}; |