作者 yangfu

模板修改

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