Commit 1afd4ff4 authored by hujiebin's avatar hujiebin

userTiney

parent c39d806b
......@@ -25,6 +25,6 @@ type CvGroupPowerRankData struct {
// 家族之星
type CvGroupPowerStarData struct {
user_cv.CvUserBase `json:",inline"`
user_cv.CvUserTiny `json:",inline"`
Score mysql.Num `json:"score"` // 对应分值
}
......@@ -136,12 +136,12 @@ func GroupPowerStar(c *gin.Context) (*mycontext.MyContext, error) {
for _, row := range rank {
user := users[row.UserId]
response = append(response, group_power_cv.CvGroupPowerStarData{
CvUserBase: user_cv.CvUserBase{
Id: &user.ID,
ExternalId: &user.ExternalId,
Code: &user.Code,
Nick: &user.Nick,
Avatar: &user.Avatar,
CvUserTiny: user_cv.CvUserTiny{
Id: user.ID,
ExternalId: user.ExternalId,
Code: user.Code,
Nick: user.Nick,
Avatar: user.Avatar,
},
Score: row.Score,
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment