实现GetPlanByID
This commit is contained in:
@@ -14,6 +14,8 @@ type PlanRepository interface {
|
|||||||
ListBasicPlans() ([]models.Plan, error)
|
ListBasicPlans() ([]models.Plan, error)
|
||||||
// GetBasicPlanByID 根据ID获取计划的基本信息,不包含子计划和任务详情
|
// GetBasicPlanByID 根据ID获取计划的基本信息,不包含子计划和任务详情
|
||||||
GetBasicPlanByID(id uint) (*models.Plan, error)
|
GetBasicPlanByID(id uint) (*models.Plan, error)
|
||||||
|
// GetPlanByID 根据ID获取计划,包含子计划和任务详情
|
||||||
|
GetPlanByID(id uint) (*models.Plan, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// gormPlanRepository 是 PlanRepository 的 GORM 实现
|
// gormPlanRepository 是 PlanRepository 的 GORM 实现
|
||||||
|
|||||||
Reference in New Issue
Block a user