Documentation ¶
Index ¶
- func MustGetLogger(c *gin.Context) *logger.KLogger
- func MustGetOrm(c *gin.Context) *gorm.DB
- type Api
- func (e *Api) Bind(d interface{}, bindings ...binding.Binding) *Api
- func (e Api) Custom(data gin.H)
- func (e Api) Error(err error)
- func (e *Api) GetIdentity() *service.AuthIdentity
- func (e *Api) MakeContext(c *gin.Context) *Api
- func (e *Api) MakeService(c *service.Service) *Api
- 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) SetError(err error)
- func (e Api) Translate(form, to interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Api ¶
func (*Api) GetIdentity ¶
func (e *Api) GetIdentity() *service.AuthIdentity
Click to show internal directories.
Click to hide internal directories.