Documentation ¶
Index ¶
- type Api
- func (e *Api) AddError(err error)
- func (e *Api) Bind(d interface{}, bindings ...binding.Binding) *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) MakeContext(c *gin.Context) *Api
- func (e *Api) MakeOrm() *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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.