Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPageOffset ¶
func GetPageSize ¶
Types ¶
type Response ¶
type Response struct { Code int `json:"code"` Data any `json:"data,omitempty"` Msg string `json:"msg"` Details []string `json:"details,omitempty"` // contains filtered or unexported fields }
func NewResponse ¶
func (*Response) ToErrRespWithStatus ¶
func (*Response) ToErrorResponse ¶
func (*Response) ToResponse ¶
func (*Response) ToResponseList ¶
type ValidError ¶
func (*ValidError) Error ¶
func (v *ValidError) Error() string
type ValidErrorList ¶
type ValidErrorList []*ValidError
func BindAndValid ¶
func BindAndValid(c *gin.Context, v interface{}) (bool, ValidErrorList)
func (ValidErrorList) Error ¶
func (v ValidErrorList) Error() string
func (ValidErrorList) ToErrorList ¶
func (v ValidErrorList) ToErrorList() []string
Click to show internal directories.
Click to hide internal directories.