From 8c986e1342a2efde9d05dee5df0f9299ba10c139 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期六, 26 八月 2023 17:14:08 +0800 Subject: [PATCH] add --- api/v1/test/product.go | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/api/v1/test/product.go b/api/v1/test/product.go index da50427..46bf465 100644 --- a/api/v1/test/product.go +++ b/api/v1/test/product.go @@ -229,14 +229,13 @@ if err != nil || getProductListResponse.Code != 0 { global.GVA_LOG.Error("鑾峰彇澶辫触!", zap.Error(err)) response.FailWithMessage("鑾峰彇澶辫触", c) - return + } else { + response.OkWithDetailed(response.PageResult{ + List: productList, + Total: int64(len(productList)), + Page: pageInfo.Page, + PageSize: pageInfo.PageSize, + }, "鑾峰彇鎴愬姛", c) } - - response.OkWithDetailed(response.PageResult{ - List: productList, - Total: int64(len(productList)), - Page: pageInfo.Page, - PageSize: pageInfo.PageSize, - }, "鑾峰彇鎴愬姛", c) } -- Gitblit v1.8.0