This commit is contained in:
苏尹岚
2020-12-09 10:24:53 +08:00
parent 4c3d8d6dc7
commit 649d07dd87
8 changed files with 208 additions and 4 deletions

View File

@@ -0,0 +1,21 @@
package controllers
import (
"net/http"
"github.com/astaxie/beego"
)
type FnController struct {
beego.Controller
}
func (c *FnController) Msg() {
if c.Ctx.Input.Method() == http.MethodPost {
c.Data["json"] = ""
c.ServeJSON()
} else {
c.Abort("404")
}
}