fix: when field list is empty table split error
正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -19,7 +19,7 @@ type AddTableStructCommand struct { | @@ -19,7 +19,7 @@ type AddTableStructCommand struct { | ||
| 19 | 19 | ||
| 20 | func (updateTableCommand *AddTableStructCommand) Valid(validation *validation.Validation) { | 20 | func (updateTableCommand *AddTableStructCommand) Valid(validation *validation.Validation) { |
| 21 | if len(updateTableCommand.Fields) == 0 { | 21 | if len(updateTableCommand.Fields) == 0 { |
| 22 | - validation.Error("数据列不能为空") | 22 | + validation.Error("请选择字段") |
| 23 | return | 23 | return |
| 24 | } | 24 | } |
| 25 | } | 25 | } |
| @@ -19,7 +19,7 @@ type UpdateTableStructCommand struct { | @@ -19,7 +19,7 @@ type UpdateTableStructCommand struct { | ||
| 19 | 19 | ||
| 20 | func (updateTableCommand *UpdateTableStructCommand) Valid(validation *validation.Validation) { | 20 | func (updateTableCommand *UpdateTableStructCommand) Valid(validation *validation.Validation) { |
| 21 | if len(updateTableCommand.Fields) == 0 { | 21 | if len(updateTableCommand.Fields) == 0 { |
| 22 | - validation.Error("数据列不能为空") | 22 | + validation.Error("请选择字段") |
| 23 | return | 23 | return |
| 24 | } | 24 | } |
| 25 | } | 25 | } |
-
请 注册 或 登录 后发表评论