- WeimobController
This commit is contained in:
18
controllers/weimob_callback.go
Normal file
18
controllers/weimob_callback.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego"
|
||||
)
|
||||
|
||||
type WeimobController struct {
|
||||
beego.Controller
|
||||
}
|
||||
|
||||
func (c *WeimobController) onCallbackMsg(msgType string) {
|
||||
c.Data["json"] = "ok"
|
||||
c.ServeJSON()
|
||||
}
|
||||
|
||||
func (c *WeimobController) Code() {
|
||||
c.onCallbackMsg("code")
|
||||
}
|
||||
Reference in New Issue
Block a user