Commit c37db2f8 authored by hujiebin's avatar hujiebin

feat:User

parent c09b7ca3
...@@ -49,7 +49,7 @@ type CvGroupPowerRankData struct { ...@@ -49,7 +49,7 @@ type CvGroupPowerRankData struct {
// 家族之星 // 家族之星
type CvGroupPowerStarData struct { type CvGroupPowerStarData struct {
user_cv.CvUserTiny `json:",inline"` User user_cv.CvUserTiny `json:"user"`
Score mysql.Num `json:"score"` // 对应分值 Score mysql.Num `json:"score"` // 对应分值
} }
......
...@@ -151,7 +151,7 @@ func GroupPowerStar(c *gin.Context) (*mycontext.MyContext, error) { ...@@ -151,7 +151,7 @@ func GroupPowerStar(c *gin.Context) (*mycontext.MyContext, error) {
for _, row := range rank { for _, row := range rank {
user := users[row.UserId] user := users[row.UserId]
response = append(response, group_power_cv.CvGroupPowerStarData{ response = append(response, group_power_cv.CvGroupPowerStarData{
CvUserTiny: user_cv.CvUserTiny{ User: user_cv.CvUserTiny{
Id: user.ID, Id: user.ID,
ExternalId: user.ExternalId, ExternalId: user.ExternalId,
Code: user.Code, Code: user.Code,
......
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