This commit is contained in:
2025-07-07 20:11:59 +08:00
parent ab0fdbc447
commit 06e3aa2eb3
2009 changed files with 193082 additions and 0 deletions

30
test/todo_group_test.go Normal file
View 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)
}
}