log_sms.go 647 字节
package domain

import "time"

//记录 发送的短信消息

type LogSms struct {
	Id         int
	Phone      string
	TemplateId string
	Template   string
	Value      map[string]string
	CreatedAt  time.Time
}

// 周期综合自评 短信消息提醒
func (sms *LogSms) SummaryEvaluationMessage(phone string, name string) {
	*sms = LogSms{
		Id:         0,
		Phone:      phone,
		TemplateId: "5475050",
		Template:   "您好,#name#,百忙之中不要忘记填写今天的绩效自评反馈哦",
		Value: map[string]string{
			"name": name,
		},
		CreatedAt: time.Now(),
	}
}

type LogSmsRepository interface {
	Insert(param *LogSms) error
}