Versions in this module Expand all Collapse all v1 v1.0.2 Jun 15, 2023 Changes in this version + const AccessToken + const Default + const DeleteMapping + const FailCode + const FailResult + const GetMapping + const MappingHandler + const Path + const Permission + const PostMapping + const PutMapping + const RequestParam + const RequireLogin + const SucCode + const SucResult + func CacheUserJson2Session(token string, userJson string) + func DeleteSession(token string) + func GetAccessToken(ctx *gin.Context) string + func GetCurrentUserJson() string + func GetUserJsonByToken(token string) string + func NewBizErr(msg string) error + func NewBizErr2(code int, msg string) error + func SameAsStruct(rtResult reflect.Type) bool + func StartHttpServer(register IGinConfiguration) + func StartHttpServerDefault() + type DefaultGinConfiguration struct + func (dgc *DefaultGinConfiguration) ContextPath() string + func (dgc *DefaultGinConfiguration) RegisControllers() []IController + func (dgc *DefaultGinConfiguration) ServerPort() string + type IController interface + RequestMapping func() string + type IGinConfiguration interface + ContextPath func() string + RegisControllers func() []IController + ServerPort func() string + type MvcPostProcessor interface + type MvcPreProcessor interface + type RestController struct + Path string + func (rc RestController) RequestMapping() string + type Result struct + Code int + Data any + Msg string + Success bool + func Fail(msg string) Result[any] + func Fail2(code int, msg string) Result[any] + func Ok() Result[any] + func Ok2(data T) Result[T]