Versions in this module Expand all Collapse all v2 v2.0.1 Apr 6, 2023 Changes in this version + var DefaultLanguage = "zh-CN" + func GetRequestLogger(c *gin.Context) *logger.Helper + func SetRequestLogger(c *gin.Context) + type Api struct + Context *gin.Context + Errors error + Logger *logger.Helper + Orm *gorm.DB + func (e *Api) AddError(err error) + func (e *Api) Bind(d interface{}, bindings ...binding.Binding) *Api + func (e *Api) MakeContext(c *gin.Context) *Api + func (e *Api) MakeOrm() *Api + func (e *Api) MakeService(c *service.Service) *Api + func (e Api) Custom(data gin.H) + func (e Api) Error(code int, err error, msg string) + func (e Api) GetLogger() *logger.Helper + func (e Api) GetOrm() (*gorm.DB, error) + func (e Api) OK(data interface{}, msg string) + func (e Api) PageOK(result interface{}, count int, pageIndex int, pageSize int, msg string) + func (e Api) Translate(form, to interface{}) Other modules containing this package pub.ystar.site/go/go-admin-core/sdk