调整自动化验证为gin自带binding tag
This commit is contained in:
@@ -137,9 +137,6 @@ func (autoCodeService *AutoCodeService) PreviewTemp(autoCode system.AutoCodeStru
|
||||
if autoCode.Fields[i].FieldType == "time.Time" {
|
||||
autoCode.HasTimer = true
|
||||
}
|
||||
if autoCode.Fields[i].Require {
|
||||
autoCode.NeedValid = true
|
||||
}
|
||||
if autoCode.Fields[i].Sort {
|
||||
autoCode.NeedSort = true
|
||||
}
|
||||
@@ -244,9 +241,6 @@ func (autoCodeService *AutoCodeService) CreateTemp(autoCode system.AutoCodeStruc
|
||||
if autoCode.Fields[i].FieldType == "time.Time" {
|
||||
autoCode.HasTimer = true
|
||||
}
|
||||
if autoCode.Fields[i].Require {
|
||||
autoCode.NeedValid = true
|
||||
}
|
||||
if autoCode.Fields[i].Sort {
|
||||
autoCode.NeedSort = true
|
||||
}
|
||||
|
Reference in New Issue
Block a user