初始
This commit is contained in:
30
test/todo_group_test.go
Normal file
30
test/todo_group_test.go
Normal file
@ -0,0 +1,30 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/tiger1103/gfast/v3/third/todo"
|
||||
)
|
||||
|
||||
// CreateCardReminderTasks 测试
|
||||
func Test_CreateCardReminderTasks(t *testing.T) {
|
||||
todoList := []todo.TaskGroup{
|
||||
{
|
||||
Role: 0,
|
||||
TsakType: 0,
|
||||
ProjectID: 1,
|
||||
UserID: "1",
|
||||
MissingCardTime: "2021-03-14 08:30 上班卡;18:00 下班卡",
|
||||
},
|
||||
{
|
||||
Role: 1,
|
||||
TsakType: 0,
|
||||
ProjectID: 2,
|
||||
UserID: "1",
|
||||
MissingCardTime: "2021-03-14 08:30 上班卡;18:00 下班卡",
|
||||
},
|
||||
}
|
||||
if err := todo.CreateCardReminderTasks(todoList); err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user