go_dreamfactory/modules/mail_test.go
2022-06-14 13:46:43 +08:00

30 lines
514 B
Go

package modules
import (
"go_dreamfactory/lego/sys/log"
"go_dreamfactory/pb"
"testing"
"time"
)
var (
obj MComp_DBComp
)
func TestCreatemoudles(t *testing.T) {
_mail := &pb.DB_MailData{
UserId: "uid123",
Title: "系统邮件",
Contex: "恭喜获得专属礼包一份",
CreateTime: uint64(time.Now().Unix()),
DueTime: uint64(time.Now().Unix()) + 30*24*3600,
Check: false,
Reward: false,
}
obj.InsertModelLogs("mail", "uid123", _mail)
log.Debugf("insert : %v", _mail)
}