Commit 929ac6dd authored by chenweijian's avatar chenweijian

cp

parent f485a21a
package cp_cv package cp_cv
type CheckCpRelationRes struct { type CheckCpRelationRes struct {
NoBind bool `json:"isBind"` Diamond uint32 `json:"diamond"`
Msg string `json:"msg"`
} }
...@@ -55,7 +55,7 @@ func CheckUserCpRelation(c *gin.Context) (*mycontext.MyContext, error) { ...@@ -55,7 +55,7 @@ func CheckUserCpRelation(c *gin.Context) (*mycontext.MyContext, error) {
return myCtx, msg.GetErrByLanguage(model, 0, lang, comerr.InvalidParameter) // cwj---- return myCtx, msg.GetErrByLanguage(model, 0, lang, comerr.InvalidParameter) // cwj----
} }
resp.ResponseOk(c, cp_cv.CheckCpRelationRes{}) resp.ResponseOk(c, cp_cv.CheckCpRelationRes{Diamond: cp_e.CpRelationInviteDiamond, Msg: "Do you want to be CP with me?"})
return myCtx, nil return myCtx, nil
} }
......
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