Documentation ¶
Index ¶
- Variables
- func CaptchaServe(w http.ResponseWriter, r *http.Request, id, ext, lang string, download bool, ...) error
- func GetError(errs error, r interface{}) string
- func GetEventDispatcher(c *gin.Context) *event.DispatcherEvent
- func GormTans(err error) error
- func IsSlice(v interface{}) bool
- func IsSuperAdmin(roles []string, role string) bool
- func Pages(page int, pageSize int, total int, rows interface{}) map[string]interface{}
- func SlicesHasStr(s interface{}, str string) bool
- type Del
- type GsModel
- type List
- type LocalTime
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GsE *gin.Engine GsAppPath string Config *config.Config Db *gorm.DB SuperAdmin string EventDispatcher event.DispatcherEvent Limiter *rate.Limiter Logger *zap.SugaredLogger ValidatorManager *ginValidator.CustomValidatorManager )
Functions ¶
func CaptchaServe ¶
func CaptchaServe(w http.ResponseWriter, r *http.Request, id, ext, lang string, download bool, width, height int) error
CaptchaServe 验证码
func GetEventDispatcher ¶
func GetEventDispatcher(c *gin.Context) *event.DispatcherEvent
func SlicesHasStr ¶
Types ¶
type LocalTime ¶
func (*LocalTime) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.