refactor(backend): split project write responsibilities

This commit is contained in:
2026-07-21 15:27:11 +08:00
parent 9e862f2a7f
commit 1fcbb31301
18 changed files with 1025 additions and 649 deletions

View File

@@ -77,6 +77,7 @@ func (s *Service) Confirm(itemID uint, selected []Suggestion) error {
return err
}
sourceInboxItemID := item.ID
// Inbox 建议只有在用户确认后才创建正式对象,并把来源 ID 写入每个对象以保留可追溯性。
for _, suggestion := range selected {
switch suggestion.Kind {
case "task":