Documentation ¶
Index ¶
- func GetAccessHost(c *gin.Context) string
- func GetPage(c *gin.Context) int
- func GetPageOffset(page, pageSize int) int
- func GetPageSize(c *gin.Context) int
- func GetRequestIP(c *gin.Context) string
- func RequestParamStrParse(c *gin.Context, param any)
- type Datetime
- type ErrResult
- type ListRes
- type Pager
- type ResListResult
- type ResResult
- type Response
- type ValidError
- type ValidErrors
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccessHost ¶
func GetPageOffset ¶
func GetPageSize ¶
func RequestParamStrParse ¶
RequestParamStrParse 解析
Types ¶
type ListRes ¶
type ListRes struct { // 数据清单 List interface{} `json:"list"` // 翻页信息 Pager Pager `json:"pager"` }
type ResListResult ¶
type ValidError ¶
func (*ValidError) Error ¶
func (v *ValidError) Error() string
type ValidErrors ¶
type ValidErrors []*ValidError
func BindAndValid ¶
func BindAndValid(c *gin.Context, v interface{}) (bool, ValidErrors)
func (ValidErrors) Error ¶
func (v ValidErrors) Error() string
func (ValidErrors) Errors ¶
func (v ValidErrors) Errors() []string
Click to show internal directories.
Click to hide internal directories.