Răsfoiți Sursa

代码生成bug修复

yxh 4 ani în urmă
părinte
comite
b448068d01

+ 0 - 0
app/common/adapter/upload_local_apapter.go → app/common/adapter/upload_local.go


+ 0 - 0
app/common/adapter/upload_tencent_cos_adapter.go → app/common/adapter/upload_tencent_cos.go


+ 3 - 1
template/vm/go/service.template

@@ -134,12 +134,14 @@ func (s *{{$structName}}) GetList(req *dao.{{.table.ClassName}}SearchReq) (total
         {{end}}
         list[k] = &dao.{{.table.ClassName}}ListRes{
             {{range $index, $column := .table.Columns}}
-            {{if and (eq $column.IsList "1") (eq $column.HtmlType "images" "file" "files")}}
+            {{if eq $column.IsList "1"}}
+            {{if eq $column.HtmlType "images" "file" "files"}}
             {{$column.GoField}} : {{$column.HtmlField}},
             {{else}}
             {{$column.GoField}} : v.{{$column.GoField}},
             {{end}}
             {{end}}
+            {{end}}
         }
     }
     return