init: 初始化 web_hgdjb_server 项目

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-11-07 10:47:32 +08:00
co-authored by Claude Opus 4.7
commit f13d33af4d
707 changed files with 147705 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
package common
import (
"github.com/gin-gonic/gin"
)
// type FunHandle func(*gin.Context) (proto.Message, string, string, pkt_pub.EType)
type ApiOpType int
const (
ApiGet ApiOpType = 1
ApiPost ApiOpType = 2
ApiPut ApiOpType = 3
)
// API接口设置
type ApiSet struct {
Path string // 路径
OpType ApiOpType // 操作类型
Fun gin.HandlerFunc // 函数句柄
IsWhite bool // 是否白名单
Desc string // 描述
}
var ApiSetMaps = map[string]ApiSet{}