作者 yangfu

模板修改

@@ -38,7 +38,7 @@ func (this *TemplateController) TemplateAdd() { @@ -38,7 +38,7 @@ func (this *TemplateController) TemplateAdd() {
38 msg = m 38 msg = m
39 return 39 return
40 } 40 }
41 - if len([]rune(request.Template.Name)) > 10 { 41 + if len([]rune(request.Template.Name)) > 30 {
42 msg = protocol.BadRequestParam("10070") 42 msg = protocol.BadRequestParam("10070")
43 return 43 return
44 } 44 }
@@ -99,7 +99,7 @@ func (this *TemplateController) TemplateUpdate() { @@ -99,7 +99,7 @@ func (this *TemplateController) TemplateUpdate() {
99 msg = m 99 msg = m
100 return 100 return
101 } 101 }
102 - if len([]rune(request.Template.Name)) > 10 { 102 + if len([]rune(request.Template.Name)) > 30 {
103 msg = protocol.BadRequestParam("10070") 103 msg = protocol.BadRequestParam("10070")
104 return 104 return
105 } 105 }
@@ -11,7 +11,7 @@ type AuditTemplate struct { @@ -11,7 +11,7 @@ type AuditTemplate struct {
11 Id int64 `orm:"column(id);auto" description:"唯一编号"` 11 Id int64 `orm:"column(id);auto" description:"唯一编号"`
12 CompanyId int `orm:"column(company_id)" description:"公司id"` 12 CompanyId int `orm:"column(company_id)" description:"公司id"`
13 ChanceTypeId int `orm:"column(chance_type_id)" description:"机会类型 chance_type.id"` 13 ChanceTypeId int `orm:"column(chance_type_id)" description:"机会类型 chance_type.id"`
14 - Name string `orm:"column(name);size(20)" description:"子分类名称"` 14 + Name string `orm:"column(name);size(100)" description:"子分类名称"`
15 Doc string `orm:"column(doc);size(255)" description:"说明"` 15 Doc string `orm:"column(doc);size(255)" description:"说明"`
16 Icon string `orm:"column(icon);size(255)" description:"图标"` 16 Icon string `orm:"column(icon);size(255)" description:"图标"`
17 Code string `orm:"column(code);size(50)" description:"编码"` 17 Code string `orm:"column(code);size(50)" description:"编码"`
@@ -804,7 +804,7 @@ func ValidFormList(inputs []*protocol.InputElement) (msg *protocol.ResponseMessa @@ -804,7 +804,7 @@ func ValidFormList(inputs []*protocol.InputElement) (msg *protocol.ResponseMessa
804 var countBasicRequire int 804 var countBasicRequire int
805 for i := range inputs { 805 for i := range inputs {
806 input := inputs[i] 806 input := inputs[i]
807 - if len([]rune(input.Label)) > 20 { 807 + if len([]rune(input.Label)) > 50 {
808 msg = protocol.BadRequestParam("10273") 808 msg = protocol.BadRequestParam("10273")
809 return 809 return
810 } 810 }