From 811fe4cc838d79d8c1f0f2e0dd740b71be48c95a Mon Sep 17 00:00:00 2001 From: zpc Date: Sat, 13 Sep 2025 01:16:26 +0800 Subject: [PATCH] 321 --- .../Controllers/SQController.cs | 27 +++++++++++++++++++ CoreCms.Net.Web.WebApi/Doc.xml | 20 ++++++++++++-- 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/CoreCms.Net.Web.WebApi/Controllers/SQController.cs b/CoreCms.Net.Web.WebApi/Controllers/SQController.cs index 4872c99..2bb24c5 100644 --- a/CoreCms.Net.Web.WebApi/Controllers/SQController.cs +++ b/CoreCms.Net.Web.WebApi/Controllers/SQController.cs @@ -349,6 +349,33 @@ ISQReservationReputationServices sQReservationReputationServices Msg = "ok", }; } + + /// + /// 获取评价我的记录 + /// + /// 页码 + /// 每页数量 + /// + [HttpGet] + [Authorize] + public async Task GetEvaluateToMe([FromQuery] int pageIndex = 1, [FromQuery] int pageSize = 20) + { + var userId = _user.ID; + var list = await _sQReservationEvaluateServices.QueryPageAsync( + it => it.to_user_id == userId, + it => it.created_at, + OrderByType.Desc, + pageIndex, + pageSize, + true + ); + return new WebApiDto() + { + Code = 0, + Data = list, + Msg = "ok" + }; + } diff --git a/CoreCms.Net.Web.WebApi/Doc.xml b/CoreCms.Net.Web.WebApi/Doc.xml index e06bf75..546cd26 100644 --- a/CoreCms.Net.Web.WebApi/Doc.xml +++ b/CoreCms.Net.Web.WebApi/Doc.xml @@ -762,7 +762,7 @@ 预约接口 - + 构造函数 @@ -799,11 +799,27 @@ - + 评价用户 + + + 获取我的声誉记录 + + + + + + + + 获取评价我的记录 + + 页码 + 每页数量 + + 门店调用接口数据