作者 yangfu

模板修改

... ... @@ -150,6 +150,10 @@ func (this *TemplateController) TemplateUpdate() {
return
}
//func checkApproveConfig()(err error){
//
//}
//TemplateList 模板列表
//@router /templateList [post]
func (this *TemplateController) TemplateList() {
... ...
... ... @@ -181,7 +181,7 @@ type TemplateGetRequest struct {
type TemplateGetResponse struct {
Template Template `json:"template"`
Example string `json:"example"` //示例`
AuditFlowConfig AuditFlowConfig `json:"audit_flow_config"`
AuditFlowConfig AuditFlowConfig `json:"auditFlowConfig"`
}
/*TemplateEditSort */
... ...
... ... @@ -441,6 +441,7 @@ func TemplateGet(uid, companyId int64, request *protocol.TemplateGetRequest) (rs
rsp.Example = template.Example
if auditForm, err = models.GetAuditFormByTemplateId(int(template.Id)); err != nil {
log.Error("id:%v msg:%v", template.Id, err.Error())
if err == sql.ErrNoRows {
err = nil
}
... ...