作者 yangfu

fix: when field list is empty table split error

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