@@ -0,0 +1,8 @@
+module dashoo.cn/micro_libary
+
+go 1.18
+require github.com/gogf/gf/v2 v2.4.4 // indirect
@@ -0,0 +1,11 @@
+package net
+import "github.com/gogf/gf/v2/net/ghttp"
+type Request struct {
+}
+// GetTenant 获取租户码
+func GetTenant(r *ghttp.Request) string {
+ return r.Header.Get("Tenant")
@@ -0,0 +1,7 @@
+type Response struct {
+ Code int64 `json:"code"`
+ Message string `json:"message"`
+ Data any `json:"data"`