feat:获取用户主页功能 (#122)

增加读取用户的个人主页的信息
This commit is contained in:
CooperGuo
2025-09-20 22:20:58 +08:00
committed by GitHub
parent eafd973d75
commit 5f412a6bc5
8 changed files with 243 additions and 0 deletions

View File

@@ -135,3 +135,36 @@ type Comment struct {
SubComments []Comment `json:"subComments"`
ShowTags []string `json:"showTags"`
}
// UserProfileResponse 用户详情页完整响应
type UserProfileResponse struct {
UserBasicInfo UserBasicInfo `json:"userBasicInfo"`
Interactions []UserInteractions `json:"interactions"`
Feeds []Feed `json:"feeds"`
}
// UserPageData 用户的详细信息
type UserPageData struct {
RawValue struct {
Interactions []UserInteractions `json:"interactions"`
BasicInfo UserBasicInfo `json:"basicInfo"`
} `json:"_rawValue"`
}
// UserBasicInfo 用户的基本信息
type UserBasicInfo struct {
Gender int `json:"gender"`
IpLocation string `json:"ipLocation"`
Desc string `json:"desc"`
Imageb string `json:"imageb"`
Nickname string `json:"nickname"`
Images string `json:"images"`
RedId string `json:"redId"`
}
// UserInteractions 用户的 关注 粉丝 收藏量
type UserInteractions struct {
Type string `json:"type"` // follows fans interaction
Name string `json:"name"` // 关注 粉丝 获赞与收藏
Count string `json:"count"` // 数量
}