```
type ParamsRequire struct {
Require bool
Default string
ToInt bool
StringMaxLen int
StringMinLen int
IntMax int
IntMin int
}
```
```
func DefaultParamsRequire() *ParamsRequire {
return &ParamsRequire{
Require: false,
Default: "",
ToInt: false,
StringMaxLen: -1,
StringMinLen: -1,
IntMax: -1,
IntMin: -1,
}
}
```
```
func DefaultParamsRequire() ParamsRequire {
return ParamsRequire{
Require: false,
Default: "",
ToInt: false,
StringMaxLen: -1,
StringMinLen: -1,
IntMax: -1,
IntMin: -1,
}
}
```
有疑问加站长微信联系(非本文作者)