From 6e19671d06d1bb72bbffb8a8c5999cab88d14e5f Mon Sep 17 00:00:00 2001 From: ayflying Date: Tue, 25 Mar 2025 15:58:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8E=A7=E5=88=B6=E5=99=A8?= =?UTF-8?q?=E7=9A=84=E5=8F=8D=E5=90=91=E6=B3=A8=E5=86=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/load.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 cmd/load.go diff --git a/cmd/load.go b/cmd/load.go new file mode 100644 index 0000000..28ee8de --- /dev/null +++ b/cmd/load.go @@ -0,0 +1,23 @@ +package cmd + +import ( + "github.com/ayflying/utility_go/controller/callback" + "github.com/gogf/gf/v2/net/ghttp" +) + +// 注册游客方法 +func RegistrationAnonymous(group *ghttp.RouterGroup) (res []interface{}) { + group.Bind( + callback.NewV1(), + ) + return + +} + +// 注册用户方法 +func RegistrationUser(group *ghttp.RouterGroup) (res []interface{}) { + group.Bind( + callback.NewV1(), + ) + return +}