Files
2026-10-26 16:28:14 +08:00

27 lines
517 B
Go

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{}