Documentation
¶
Index ¶
- func AssertStruct(s any, setErrOpts ...errors.SetErrorOptions)
- func ParseAndAssertRequestBody(ctx *gin.Context, val any)
- func ParseRequestBody(ctx *gin.Context, val any) *errors.AppError
- func StrInSlice(str string, slice []string) bool
- func StructToMap(s any) map[string]any
- func ValidteStruct(s any, setErrOpts ...errors.SetErrorOptions) *errors.AppError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidteStruct ¶
func ValidteStruct(s any, setErrOpts ...errors.SetErrorOptions) *errors.AppError
校验结构。根据结构的定义执行校验
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.