package
Version:
v0.0.71
Opens a new window with list of versions in this module.
Published: Jun 1, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func InitRequestParamValidate()
InitRequestParamValidate 初始化翻译器
ShouldBind 解析请求参数并校验
T 返回 请求数据
解析失败或者参数校验失败,返回 false 并组织响应数据结构
参数校验成功,返回 true
req, ok := valid.ShouldBind[model.CreateUserReq](ctx)
if ok {
return
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.