This commit is contained in:
qaq
2025-07-02 23:11:07 +08:00
parent 94e01ae63b
commit f1cab0563a
16 changed files with 388 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
package middleware
import (
"github.com/beego/beego/v2/server/web/context"
)
var BaseAuth = func(ctx *context.Context) {
//secret := ctx.Input.Query("secret")
//if secret == "" {
// resp := common.ResponseResult{
// Code: -1,
// Success: false,
// Message: "数据库链接失败",
// Data: nil,
// }
// ctx.Output.JSON(resp, false, false)
// ctx.Abort(403, "")
//}
}