sync from project

This commit is contained in:
2025-06-18 10:12:19 +08:00
parent 61ffeeb3b8
commit fb579e8689
20 changed files with 1332 additions and 103 deletions

View File

@ -159,7 +159,7 @@ func (query *Query[T]) FromRequest(r *http.Request) error {
if structField.Kind() == reflect.Slice && structField.Len() < len(values) {
if structField.Cap() < len(values) {
structField.SetCap(len(values))
structField.Grow(len(values) - structField.Cap())
}
structField.SetLen(len(values))
}