From fcea68c7c751e5d19098236e374dddbcbdd53f79 Mon Sep 17 00:00:00 2001 From: huang <1724659546@qq.com> Date: Sat, 13 Sep 2025 15:00:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0GetPlanByID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/infra/repository/plan_repository.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/infra/repository/plan_repository.go b/internal/infra/repository/plan_repository.go index 802ac44..83f7107 100644 --- a/internal/infra/repository/plan_repository.go +++ b/internal/infra/repository/plan_repository.go @@ -14,6 +14,8 @@ type PlanRepository interface { ListBasicPlans() ([]models.Plan, error) // GetBasicPlanByID 根据ID获取计划的基本信息,不包含子计划和任务详情 GetBasicPlanByID(id uint) (*models.Plan, error) + // GetPlanByID 根据ID获取计划,包含子计划和任务详情 + GetPlanByID(id uint) (*models.Plan, error) } // gormPlanRepository 是 PlanRepository 的 GORM 实现