Files
zmkgC/test/todo_group_test.go

31 lines
626 B
Go
Raw Permalink Normal View History

2025-07-07 20:11:59 +08:00
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)
}
}