소스 검색

change ShowIf to interface{}

Ivan Galakhov 5 년 전
부모
커밋
4dbbe3a95a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      internal/models/templates.go

+ 1 - 1
internal/models/templates.go

@@ -36,7 +36,7 @@ type FormTab struct {
 type FormSection struct {
 type FormSection struct {
 	Context  *FormContext   `yaml:"context" json:"context"`
 	Context  *FormContext   `yaml:"context" json:"context"`
 	Name     string         `yaml:"name" json:"name"`
 	Name     string         `yaml:"name" json:"name"`
-	ShowIf   string         `yaml:"show_if" json:"show_if"`
+	ShowIf   interface{}    `yaml:"show_if" json:"show_if"`
 	Contents []*FormContent `yaml:"contents" json:"contents,omitempty"`
 	Contents []*FormContent `yaml:"contents" json:"contents,omitempty"`
 }
 }