feat(app): update
This commit is contained in:
49
pkg/dto/ListUserDTO.go
Normal file
49
pkg/dto/ListUserDTO.go
Normal file
@ -0,0 +1,49 @@
|
||||
package dto
|
||||
|
||||
// 列表用户对象
|
||||
type ListUserDTO struct {
|
||||
UserId string
|
||||
NickName string
|
||||
Avatar string
|
||||
Gender string
|
||||
Birthday string
|
||||
Sign string
|
||||
ViewFlag string
|
||||
UserNo string
|
||||
VipLevel string
|
||||
IsFollowTa string `json:"IsFollowTa,omitempty"` // 是否关注他
|
||||
ActiveTimeHint string `json:"ActiveTimeHint,omitempty"` // 活跃时间
|
||||
TaFollowMe string `json:"TaFollowMe,omitempty"`
|
||||
WellNoIcon string `json:"WellNoIcon,omitempty"` // 靓号ICON
|
||||
VipConfig UserVipConfigDTO `json:"VipConfig,omitempty"` //vip配置
|
||||
IsHidden string `json:"IsHidden,omitempty"` // 隐身
|
||||
InRoomSchema string `json:"InRoomSchema,omitempty"` // 在房间的schema
|
||||
|
||||
}
|
||||
|
||||
// 列表主播对象
|
||||
type ListAnchorDTO struct {
|
||||
UserId string
|
||||
NickName string
|
||||
Avatar string
|
||||
Birthday string
|
||||
Gender string
|
||||
ChatroomId string
|
||||
ChatroomName string
|
||||
RoomNo string
|
||||
RoomHot string
|
||||
IconList []VipIconDTO
|
||||
SchemaUrl string
|
||||
RoomStatus string
|
||||
}
|
||||
|
||||
func (userDTo ListUserDTO) ToListAnchorDTO() (result ListAnchorDTO) {
|
||||
|
||||
result.UserId = userDTo.UserId
|
||||
result.NickName = userDTo.NickName
|
||||
result.Avatar = userDTo.Avatar
|
||||
result.Birthday = userDTo.Birthday
|
||||
result.Gender = userDTo.Gender
|
||||
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user