|
|
@ -608,6 +608,8 @@ type argsUserData struct {
|
|
|
|
|
|
|
|
|
|
|
|
type replyUserData struct {
|
|
|
|
type replyUserData struct {
|
|
|
|
Identifier string `json:"identifier"`
|
|
|
|
Identifier string `json:"identifier"`
|
|
|
|
|
|
|
|
UserId uint `json:"userId"`
|
|
|
|
|
|
|
|
Follow uint `json:"follow"`
|
|
|
|
Fans uint `json:"fans"`
|
|
|
|
Fans uint `json:"fans"`
|
|
|
|
IsFollow int `json:"isFollow"`
|
|
|
|
IsFollow int `json:"isFollow"`
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -655,6 +657,8 @@ func (l *Live) UserData(c *gin.Context) {
|
|
|
|
Identifier: identifier,
|
|
|
|
Identifier: identifier,
|
|
|
|
Fans: userDataMap[uint(spectatorId)].Fans,
|
|
|
|
Fans: userDataMap[uint(spectatorId)].Fans,
|
|
|
|
IsFollow: isFollow,
|
|
|
|
IsFollow: isFollow,
|
|
|
|
|
|
|
|
Follow: userDataMap[uint(spectatorId)].Follows,
|
|
|
|
|
|
|
|
UserId: userDataMap[uint(spectatorId)].UserId,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
reply = append(reply, replyUserData{
|
|
|
|
reply = append(reply, replyUserData{
|
|
|
|