...
|
...
|
@@ -2,14 +2,14 @@ package notify |
|
|
|
|
|
import "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain"
|
|
|
|
|
|
var TaskSmsNotify *notifySms
|
|
|
var taskSmsNotify *notifySms
|
|
|
|
|
|
func RunTaskSmsNotify() {
|
|
|
newSmsNotify := notifySms{}
|
|
|
newSmsNotify.regist(notifyStaffAssess{})
|
|
|
newSmsNotify.regist(notifySummaryEvaluation{})
|
|
|
|
|
|
newSmsNotify.runTask()
|
|
|
taskSmsNotify = ¬ifySms{}
|
|
|
taskSmsNotify.init()
|
|
|
taskSmsNotify.regist(notifyStaffAssess{})
|
|
|
taskSmsNotify.regist(notifySummaryEvaluation{})
|
|
|
taskSmsNotify.runTask()
|
|
|
|
|
|
}
|
|
|
|
...
|
...
|
@@ -17,12 +17,12 @@ func RunTaskSmsNotify() { |
|
|
func AddNotifyStaffAssess(param *domain.StaffAssess) {
|
|
|
newNotify := notifyStaffAssess{}
|
|
|
newSms := newNotify.makeNotify(param)
|
|
|
TaskSmsNotify.addTask(newSms)
|
|
|
taskSmsNotify.addTask(newSms)
|
|
|
}
|
|
|
|
|
|
// 周期自评短信通知 ,预创建待发送的短信消息
|
|
|
func AddNotifySummaryEvaluation(param *domain.SummaryEvaluation) {
|
|
|
newNotify := notifySummaryEvaluation{}
|
|
|
newSms := newNotify.makeNotify(param)
|
|
|
TaskSmsNotify.addTask(newSms)
|
|
|
taskSmsNotify.addTask(newSms)
|
|
|
} |
...
|
...
|
|