(fd *model.FieldDescriptor, raw string)
| 201 | } |
| 202 | |
| 203 | func mustFillCheck(fd *model.FieldDescriptor, raw string) bool { |
| 204 | // 值重复检查 |
| 205 | if fd.Meta.GetBool("MustFill") { |
| 206 | |
| 207 | if raw == "" { |
| 208 | log.Errorf("%s, %s", i18n.String(i18n.DataSheet_MustFill), fd.String()) |
| 209 | return false |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | return true |
| 214 | } |
| 215 | |
| 216 | func newDataSheet(sheet *Sheet) *DataSheet { |
| 217 |
no test coverage detected