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(errCode int, errMsg string, showType string)
- func (e Api) GetLogger() *logger.Helper
- func (e *Api) GetOrm(c *gin.Context) (*zorm.DBDao, error)
- func (e *Api) ListOK(result interface{}, total int, current int, pageSize int)
- 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{})
- func (e *Api) PageOK(result interface{}, total int, current int, pageSize int)
- func (e Api) Translate(form, to interface{})
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.