From 0df30ce492d4549e016c403f6028ffeb13f54fa2 Mon Sep 17 00:00:00 2001 From: zpc Date: Tue, 16 Jul 2024 06:42:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A8=E8=8D=90=E9=A1=B5?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/CategoryController.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/2-api/HuanMeng.MiaoYu.WebApi/Controllers/CategoryController.cs b/src/2-api/HuanMeng.MiaoYu.WebApi/Controllers/CategoryController.cs index ddc5729..b0a0995 100644 --- a/src/2-api/HuanMeng.MiaoYu.WebApi/Controllers/CategoryController.cs +++ b/src/2-api/HuanMeng.MiaoYu.WebApi/Controllers/CategoryController.cs @@ -49,11 +49,15 @@ namespace HuanMeng.MiaoYu.WebApi.Controllers } /// - /// 获取推荐页数据 + /// 获取推荐页数据 + /// 返回的data是一个数组,当数组中的对象type为banner,data类型看201,当数组中的对象type为tuijian、xiaoshuo时,data类型看202 /// /// [HttpGet] [AllowAnonymous] + [ProducesResponseType(typeof(BaseResponse>>), StatusCodes.Status200OK)] + [ProducesResponseType(typeof(CommonRecommendData), StatusCodes.Status201Created)] + [ProducesResponseType(typeof(DataListDto), StatusCodes.Status202Accepted)] public BaseResponse>> GetCategoryFindList() { CategoryBLL categoryBLL = new CategoryBLL(ServiceProvider);