- dingding callback

This commit is contained in:
gazebo
2019-03-09 11:04:44 +08:00
parent 517f42efcd
commit 47473bc54e
3 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
package controllers
import (
"git.rosy.net.cn/jx-callback/globals"
"github.com/astaxie/beego"
)
type DingDingController struct {
beego.Controller
}
func init() {
}
func (c *DingDingController) Msg() {
globals.SugarLogger.Debugf("dingding msg:%s", string(c.Ctx.Input.RequestBody))
// if c.Ctx.Input.Method() == http.MethodPost {
// obj, callbackResponse := api.EbaiAPI.GetCallbackMsg(c.Ctx.Request)
// if callbackResponse == nil {
// callbackResponse = ebai.OnCallbackMsg(obj)
// }
// c.Data["json"] = callbackResponse
// c.ServeJSON()
// } else {
// c.Abort("404")
// }
}