...
|
...
|
@@ -19,7 +19,7 @@ type UpdateTableStructCommand struct { |
|
|
|
|
|
func (updateTableCommand *UpdateTableStructCommand) Valid(validation *validation.Validation) {
|
|
|
if len(updateTableCommand.Fields) == 0 {
|
|
|
validation.Error("数据列不能为空")
|
|
|
validation.Error("请选择字段")
|
|
|
return
|
|
|
}
|
|
|
}
|
...
|
...
|
|