正在显示
3 个修改的文件
包含
6 行增加
和
1 行删除
| @@ -150,6 +150,10 @@ func (this *TemplateController) TemplateUpdate() { | @@ -150,6 +150,10 @@ func (this *TemplateController) TemplateUpdate() { | ||
| 150 | return | 150 | return |
| 151 | } | 151 | } |
| 152 | 152 | ||
| 153 | +//func checkApproveConfig()(err error){ | ||
| 154 | +// | ||
| 155 | +//} | ||
| 156 | + | ||
| 153 | //TemplateList 模板列表 | 157 | //TemplateList 模板列表 |
| 154 | //@router /templateList [post] | 158 | //@router /templateList [post] |
| 155 | func (this *TemplateController) TemplateList() { | 159 | func (this *TemplateController) TemplateList() { |
| @@ -181,7 +181,7 @@ type TemplateGetRequest struct { | @@ -181,7 +181,7 @@ type TemplateGetRequest struct { | ||
| 181 | type TemplateGetResponse struct { | 181 | type TemplateGetResponse struct { |
| 182 | Template Template `json:"template"` | 182 | Template Template `json:"template"` |
| 183 | Example string `json:"example"` //示例` | 183 | Example string `json:"example"` //示例` |
| 184 | - AuditFlowConfig AuditFlowConfig `json:"audit_flow_config"` | 184 | + AuditFlowConfig AuditFlowConfig `json:"auditFlowConfig"` |
| 185 | } | 185 | } |
| 186 | 186 | ||
| 187 | /*TemplateEditSort */ | 187 | /*TemplateEditSort */ |
| @@ -441,6 +441,7 @@ func TemplateGet(uid, companyId int64, request *protocol.TemplateGetRequest) (rs | @@ -441,6 +441,7 @@ func TemplateGet(uid, companyId int64, request *protocol.TemplateGetRequest) (rs | ||
| 441 | rsp.Example = template.Example | 441 | rsp.Example = template.Example |
| 442 | 442 | ||
| 443 | if auditForm, err = models.GetAuditFormByTemplateId(int(template.Id)); err != nil { | 443 | if auditForm, err = models.GetAuditFormByTemplateId(int(template.Id)); err != nil { |
| 444 | + log.Error("id:%v msg:%v", template.Id, err.Error()) | ||
| 444 | if err == sql.ErrNoRows { | 445 | if err == sql.ErrNoRows { |
| 445 | err = nil | 446 | err = nil |
| 446 | } | 447 | } |
-
请 注册 或 登录 后发表评论