diff --git a/cv/group_cv/group.go b/cv/group_cv/group.go index 3dbb01e5cdb303f3ebaf675a29aaca309563ac5a..5606a9e3a291c84ec0168d490c3ef895867958a0 100644 --- a/cv/group_cv/group.go +++ b/cv/group_cv/group.go @@ -494,7 +494,7 @@ func BuildPopularGroupInfo(model *domain.Model, myUserId uint64, groupInfo []*gr for _, v := range groupInfo { owners = append(owners, v.Owner) } - powerIds, powerNames, _, err := group_power_cv.BatchGetGroupPower(model.Db, owners) + powerIds, powerNames, powerNameplates, powerGrades, err := group_power_cv.BatchGetGroupPower(model.Db, owners) if err != nil { return nil, err } @@ -570,9 +570,16 @@ func BuildPopularGroupInfo(model *domain.Model, myUserId uint64, groupInfo []*gr MicNumType: int(g.MicNumType), GroupMedals: medals, }, - HasOnMic: len(micUsers) > 0, - GroupPowerId: powerIds[g.Owner], - GroupPowerName: powerNames[g.Owner], + HasOnMic: len(micUsers) > 0, + GroupPowerId: powerIds[g.Owner], + GroupPowerName: powerNames[g.Owner], + GroupPowerNameplate: powerNameplates[g.Owner], + GroupPower: GroupPower{ + Id: powerIds[g.Owner], + Name: powerNames[g.Owner], + Nameplate: powerNameplates[g.Owner], + Grade: powerGrades[g.Owner], + }, }, MicUsers: micUsers, RoomUserCount: uint(roomCount[i]),