post 数据返回
This commit is contained in:
parent
214d04890e
commit
c1b6a6ad15
@ -24,7 +24,9 @@ func (this *Api_Comp) ActivityNotify(c *engine.Context) {
|
|||||||
data interface{}
|
data interface{}
|
||||||
)
|
)
|
||||||
|
|
||||||
defer c.JSON(http.StatusOK, &Respond{Code: errdata.Code, Message: errdata.Message, Data: data})
|
defer func() {
|
||||||
|
c.JSON(http.StatusOK, &Respond{Code: errdata.Code, Message: errdata.Message, Data: data})
|
||||||
|
}()
|
||||||
|
|
||||||
if _, err = this.module.service.RpcGo(
|
if _, err = this.module.service.RpcGo(
|
||||||
context.Background(),
|
context.Background(),
|
||||||
|
@ -40,7 +40,9 @@ func (this *Api_Comp) CreateMail(c *engine.Context) {
|
|||||||
}
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
defer c.JSON(http.StatusOK, &Respond{Code: errdata.Code, Message: errdata.Message, Data: data})
|
defer func() {
|
||||||
|
c.JSON(http.StatusOK, &Respond{Code: errdata.Code, Message: errdata.Message, Data: data})
|
||||||
|
}()
|
||||||
if sign := gin.ParamSign(this.options.Key, map[string]interface{}{
|
if sign := gin.ParamSign(this.options.Key, map[string]interface{}{
|
||||||
"uid": req.Uid,
|
"uid": req.Uid,
|
||||||
"title": req.Title,
|
"title": req.Title,
|
||||||
|
Loading…
Reference in New Issue
Block a user