-
Notifications
You must be signed in to change notification settings - Fork 601
Closed
Description
Describe the Question
A clear and concise description of what the question is.
Reproducible Code
type SearchSchoolsReq struct {
Keyword string `json:"keyword" label:"关键词"`
request.PageInfo
}
type PageInfo struct {
Page int `json:"page" form:"page" query:"page" default:"1" vd:"min=1"` // 页码
Limit int `json:"limit" form:"limit" query:"limit" default:"15" vd:"min=1"` // 每页大小
}{
"keyword":"",
"page":1,
"limit":2
}使用BindAndValidate绑定参数,即使移除了 form,query tag依然无法绑定到
Hertz version:
v0.10.3
Metadata
Metadata
Assignees
Labels
No labels