作者 tangxuhui

修正消息返回格式

... ... @@ -51,10 +51,12 @@ func (noticePersonalService *NoticePersonalService) AgreeJoinCreationProject(agr
}
if len(settings) == 0 {
//未设置消息模板
return "未设置对应的消息模板", nil
txt := map[string]string{"content": "未设置对应的消息模板"}
return txt, nil
}
if settings[0].IsPush == domain.NoticeSettingIsNotPush {
return "消息是否推送已设为否", nil
txt := map[string]string{"content": "消息是否推送已设为否"}
return txt, nil
}
noticeContent := settings[0].Content
tpl, err := template.New("AgreeJoinCreationProject").Parse(noticeContent)
... ... @@ -196,10 +198,12 @@ func (noticePersonalService *NoticePersonalService) InformExpectedDividends(info
}
if len(settings) == 0 {
//未设置消息模板
return "未设置对应的消息模板", nil
txt := map[string]string{"content": "未设置对应的消息模板"}
return txt, nil
}
if settings[0].IsPush == domain.NoticeSettingIsNotPush {
return "消息是否推送已设为否", nil
txt := map[string]string{"content": "消息是否推送已设为否"}
return txt, nil
}
// Param01_04_01 = "param01_04_01" //分红预算消息-共创项目编号
// Param01_04_02 = "param01_04_02" //分红预算消息-共创项目名称
... ... @@ -302,10 +306,12 @@ func (noticePersonalService *NoticePersonalService) InformJoinCreationContract(i
}
if len(settings) == 0 {
//未设置消息模板
return "未设置对应的消息模板", nil
txt := map[string]string{"content": "未设置对应的消息模板"}
return txt, nil
}
if settings[0].IsPush == domain.NoticeSettingIsNotPush {
return "消息是否推送已设为否", nil
txt := map[string]string{"content": "消息是否推送已设为否"}
return txt, nil
}
noticeContent := settings[0].Content
tpl, err := template.New("InformJoinCreationContract").Parse(noticeContent)
... ... @@ -402,10 +408,12 @@ func (noticePersonalService *NoticePersonalService) RefuseJoinCreationProject(re
}
if len(settings) == 0 {
//未设置消息模板
return "未设置对应的消息模板", nil
txt := map[string]string{"content": "未设置对应的消息模板"}
return txt, nil
}
if settings[0].IsPush == domain.NoticeSettingIsNotPush {
return "消息是否推送已设为否", nil
txt := map[string]string{"content": "消息是否推送已设为否"}
return txt, nil
}
// Param01_02_01 = "param01_02_01" //共创申请拒绝-共创项目编号
// Param01_02_02 = "param01_02_02" //共创申请拒绝-共创项目名称
... ... @@ -495,10 +503,12 @@ func (noticePersonalService *NoticePersonalService) CreditAccountEstimate(credit
}
if len(settings) == 0 {
//未设置消息模板
return "未找到对应的消息模板", nil
txt := map[string]string{"content": "未设置对应的消息模板"}
return txt, nil
}
if settings[0].IsPush == domain.NoticeSettingIsNotPush {
return "消息是否推送已设为否", nil
txt := map[string]string{"content": "消息是否推送已设为否"}
return txt, nil
}
// Param01_05_01 = "param01_05_01" //账期结算消息-账期结算单号
// Param01_05_02 = "param01_05_02" //账期结算消息-结算金额
... ... @@ -591,10 +601,12 @@ func (noticePersonalService *NoticePersonalService) CreditAccountPayment(creditA
}
if len(settings) == 0 {
//未设置消息模板
return "未找到对应的消息模板", nil
txt := map[string]string{"content": "未设置对应的消息模板"}
return txt, nil
}
if settings[0].IsPush == domain.NoticeSettingIsNotPush {
return "消息是否推送已设为否", nil
txt := map[string]string{"content": "消息是否推送已设为否"}
return txt, nil
}
// Param01_06_01 = "param01_06_01" //支付消息-账期结算单号
// Param01_06_02 = "param01_06_02" //支付消息-结算金额
... ...