feature:增加数据源一对多关系。

This commit is contained in:
pixelmaxQM
2024-05-15 21:15:41 +08:00
parent 2a0b92713b
commit 0d17340445
6 changed files with 75 additions and 18 deletions

View File

@@ -980,6 +980,9 @@ func fmtField(autoCode *system.AutoCodeStruct) {
if autoCode.Fields[i].FieldType == "json" {
autoCode.NeedJSON = true
}
if autoCode.Fields[i].FieldType == "array" {
autoCode.NeedJSON = true
}
if autoCode.Fields[i].FieldType == "file" {
autoCode.HasFile = true
autoCode.NeedJSON = true