diff --git a/rpc/user.go b/rpc/user.go index e447fb292ca592474f8b726dd6a0104e1c129018..befaa446f3d39ef812d1ef57abbe0847344ba0ec 100644 --- a/rpc/user.go +++ b/rpc/user.go @@ -293,9 +293,9 @@ type CvCpRelation struct { // 批量获取用户cpRelation func MGetUserCpRelations(model *domain.Model, userIds []mysql.ID) (map[mysql.ID]CvCpRelation, error) { type Response struct { - Code int `json:"code"` - Message string `json:"message"` - Data map[mysql.ID]CvCpRelation + Code int `json:"code"` + Message string `json:"message"` + Data map[mysql.ID]CvCpRelation `json:"data"` } var res = make(map[mysql.ID]CvCpRelation) if len(userIds) <= 0 {