测试文件
This commit is contained in:
parent
d754581167
commit
43850fdd5d
29
modules/mail_test.go
Normal file
29
modules/mail_test.go
Normal file
@ -0,0 +1,29 @@
|
||||
package modules
|
||||
|
||||
import (
|
||||
"go_dreamfactory/comm"
|
||||
"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", comm.LogHandleType_Insert, _mail)
|
||||
|
||||
log.Debugf("insert : %v", _mail)
|
||||
}
|
Loading…
Reference in New Issue
Block a user