Documentation ¶
Index ¶
- Constants
- func GetFieldType(structField reflect.StructField) string
- func SetValue(paramType reflect.Type, paramElem reflect.Value, request commons.BeeRequest, ...)
- func ToStruct(request commons.BeeRequest, pointParamStruct interface{})
- func ToStructAndValidation(request commons.BeeRequest, pointParamStruct interface{}) string
- func Validation(request commons.BeeRequest, pointParamStruct interface{}) string
- func ValidationReflect(request commons.BeeRequest, paramElem reflect.Value, paramType reflect.Type) string
Constants ¶
View Source
const ( SUCCESS = "SUCCESS" ErrorMsg = "Field:[%s]->Tag:[%s] setting is incorrect,[%s]" ValidKeyNotNull = "notnull" ValidKeyReg = "reg" ValidKeyMax = "max" ValidKeyMin = "min" ValidKeyRoutes = "routes" ValidKeyMsg = "msg" )
View Source
const (
Field = "field"
)
Variables ¶
This section is empty.
Functions ¶
func ToStruct ¶
func ToStruct(request commons.BeeRequest, pointParamStruct interface{})
ToStruct Take out the parameters and wrap them in struct
func ToStructAndValidation ¶
func ToStructAndValidation(request commons.BeeRequest, pointParamStruct interface{}) string
ToStructAndValidation Take the parameters out, wrap them in a struct and check the parameters
func Validation ¶
func Validation(request commons.BeeRequest, pointParamStruct interface{}) string
Validation Checking the parameters of the struct
func ValidationReflect ¶
func ValidationReflect(request commons.BeeRequest, paramElem reflect.Value, paramType reflect.Type) string
ValidationReflect Checking the parameters of the struct
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.