Documentation ¶
Index ¶
- type BaseApi
- func (r BaseApi) Failure(c *gin.Context, code int, err error)
- func (r BaseApi) FailureOnlyErr(c *gin.Context, err error)
- func (r BaseApi) GetParamInt(c *gin.Context, key string) (int, error)
- func (r BaseApi) GetParamUint(c *gin.Context, key string) (uint, error)
- func (r BaseApi) GetQueryPageInfo(c *gin.Context) (entity.PageInfo, error)
- func (r BaseApi) Success(c *gin.Context, data any)
- func (r BaseApi) ValidateStruct(obj any) error
- func (r BaseApi) ValidateWithBindJson(c *gin.Context, obj any) error
- func (r BaseApi) ValidateWithBindQuery(c *gin.Context, obj any) error
- type CustomValidateMap
- type ResponseJson
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseApi ¶
type BaseApi struct{}
func (BaseApi) GetParamUint ¶
func (BaseApi) GetQueryPageInfo ¶
func (BaseApi) ValidateStruct ¶
func (BaseApi) ValidateWithBindJson ¶
type CustomValidateMap ¶
type CustomValidateMap map[string]validator.Func
Click to show internal directories.
Click to hide internal directories.