feat(app): update
This commit is contained in:
45
pkg/dto/response/GetUserDetailResponse.go
Normal file
45
pkg/dto/response/GetUserDetailResponse.go
Normal file
@ -0,0 +1,45 @@
|
||||
package response
|
||||
|
||||
import (
|
||||
"gitea.ddegame.cn/open/servicebase/pkg/dto"
|
||||
)
|
||||
|
||||
type GetUserDetailResponse struct {
|
||||
dto.UserInfoDTO
|
||||
|
||||
IsMySelf string `json:"IsMySelf,omitempty"` // 是否获取的自己 1=自己 0=不是自己
|
||||
MeFollowTa string // 我是否关注他 0=未关注 1=已关注
|
||||
TaFollowMe string `json:"TaFollowMe,omitempty"` // 他是否关注我 0=未关注 1=已关注
|
||||
UserLastActiveTime string `json:"UserLastActiveTime,omitempty"` // 最后登录时间
|
||||
LbsViewString string `json:"LbsViewString,omitempty"` // 当前lbs显示的字符串 同城显示距离 不同城显示城市
|
||||
// PhotoList []model_app_user.UserPhotoModel `json:"PhotoList,omitempty"` // 照片墙
|
||||
MeLaHeiTa string // 是否拉黑了对方
|
||||
GiftWallList []dto.GiftWallDTO `json:"GiftWallList",omitempty` // 礼物墙
|
||||
|
||||
// 用户的动态
|
||||
TimelineList []dto.TimelineDTO
|
||||
TimeLineCount string
|
||||
// 被评论数量
|
||||
SkillRatedCount string
|
||||
|
||||
// 用户卡片技能名称
|
||||
UserCardSkillNames string `json:"UserCardSkillNames",omitempty`
|
||||
|
||||
// 用户公会信息
|
||||
GuildInfo UserGuild
|
||||
}
|
||||
|
||||
// 兼容app端
|
||||
type UserGuild struct {
|
||||
dto.GuildBase
|
||||
GuildLogo string
|
||||
GuildName string
|
||||
GuildScheme string
|
||||
}
|
||||
|
||||
func (d *GetUserDetailResponse) CompleteGuildInfo(guildId string) {
|
||||
// d.GuildInfo.CompleteGuildInfo(guildId)
|
||||
d.GuildInfo.GuildLogo = d.GuildInfo.GuildInfo.Logo
|
||||
d.GuildInfo.GuildName = d.GuildInfo.GuildInfo.Name
|
||||
// d.GuildInfo.GuildScheme = cache_guild.SchemeOrUrl("guild-notice", "enen://webpage?url=https://h5-test-app.ddegame.cn/Normal/ClubManagement/#/?viewNavigation=0")
|
||||
}
|
||||
Reference in New Issue
Block a user