Commit a9f91155 authored by hujiebin's avatar hujiebin

Update user.go

parent 6a3aa20c
......@@ -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 {
......
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