Version: 0.2.2.dev.260210

feat: 🗑️ 新增删除任务块接口

- 实现 schedules、schedule_events 与 task_items 三表的联动删除
- 保证数据一致性,避免遗留脏数据 
This commit is contained in:
LoveLosita
2026-02-10 22:05:59 +08:00
parent d5f0b8da63
commit 0bc06963ee
7 changed files with 142 additions and 6 deletions

View File

@@ -37,8 +37,8 @@ func (ss *ScheduleService) GetUserTodaySchedule(ctx context.Context, userID int)
return nil, err
}*/
//2.获取当前日期
curTime := time.Now().Format("2006-01-02")
/*curTime := "2026-03-02" //测试数据*/
/*curTime := time.Now().Format("2006-01-02")*/
curTime := "2026-03-02" //测试数据
week, dayOfWeek, err := conv.RealDateToRelativeDate(curTime)
if err != nil {
return nil, err