From 115bd9b51f5d8eade4658f844de37516486c60e7 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期六, 18 十一月 2023 17:25:25 +0800
Subject: [PATCH] crm获取aps项目模块信息

---
 api/v1/plan.go |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/api/v1/plan.go b/api/v1/plan.go
index 8c49160..2b59b8a 100644
--- a/api/v1/plan.go
+++ b/api/v1/plan.go
@@ -98,7 +98,6 @@
 	ctx.Ok()
 }
 
-
 func checkPlanParams(plan request.Plan) (errCode int, p model.Plan) {
 	//if plan.Number == "" {
 	//	return ecode.InvalidParams, p
@@ -148,14 +147,14 @@
 		return
 	}
 
-	plans, errCode := planService.GetPlanList(params.Page, params.PageSize, params.Keyword)
+	plans, total, errCode := planService.GetPlanList(params.Page, params.PageSize, params.Keyword)
 	if errCode != ecode.OK {
 		ctx.Fail(errCode)
 		return
 	}
 
 	ctx.OkWithDetailed(response.PlanResponse{
-		List: plans,
-		Count: len(plans),
+		List:  plans,
+		Count: int(total),
 	})
 }

--
Gitblit v1.8.0