Documentation ¶
Index ¶
Constants ¶
View Source
const MaxMultipartMemory = 2 << 20
Variables ¶
View Source
var AllowHeaders = []string{ commons.TraceId, commons.Platform, commons.Token, commons.ShareToken, "device-id", "hardware", "os", "os-version", "resolution", "app-key", "app-version", "app_vsn", "X-Forwarded-For", "X-Forwarded-Proto", "Authorization", }
View Source
var AllowOrigins = []string{
"*",
}
View Source
var ApiUserInfoCheckFunc = func(ctx *commons.BaseContext, token string, urlPath string, info *commons.QuickInfo) error { panic("请设置ApiUserInfoCheckFunc") }
View Source
var (
NotLoginError = errors.New("not login")
)
View Source
var PrivateUserInfoCheckFunc = func(ctx *commons.BaseContext, uid int64, info *commons.QuickInfo) error { return nil }
View Source
panic("请设置ShareCheckFunc") }
Functions ¶
func Get ¶
func Get[T, V any](gg *gin.RouterGroup, rd *RequestDesc[T, V])
func Post ¶
func Post[T, V any](gg *gin.RouterGroup, rd *RequestDesc[T, V])
Types ¶
Click to show internal directories.
Click to hide internal directories.