作者 郑周

1. 环节内容,增加必填项属性

@@ -20,8 +20,8 @@ const ( @@ -20,8 +20,8 @@ const (
20 ) 20 )
21 21
22 const ( 22 const (
23 - NodeRequiredNo int = 1 // 是否必填项-非必填  
24 - NodeRequiredYes int = 2 // 是否必填项-必填 23 + NodeRequiredYes int = 1 // 是否必填项-必填(默认)
  24 + NodeRequiredNo int = 2 // 是否必填项-非必填
25 ) 25 )
26 26
27 type EntryItem struct { 27 type EntryItem struct {
@@ -121,7 +121,7 @@ func (controller *ImportController) parseTemplateNodeContent(data []*domain.Perf @@ -121,7 +121,7 @@ func (controller *ImportController) parseTemplateNodeContent(data []*domain.Perf
121 } 121 }
122 122
123 // 必填项 123 // 必填项
124 - nc.Required = domain.NodeRequiredNo 124 + nc.Required = domain.NodeRequiredYes
125 nodeContents = append(nodeContents, nc) 125 nodeContents = append(nodeContents, nc)
126 } 126 }
127 } 127 }