From cfadc07b52e107b1cf4fb0bc17212f0a43dee57a Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Fri, 24 Apr 2026 13:49:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Management/DTO/UserFeedBackViewModel.cs | 17 +++++++++++++++++ .../Service/Management/UserFeedBackService.cs | 15 +++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/IRaCIS.Core.Application/Service/Management/DTO/UserFeedBackViewModel.cs b/IRaCIS.Core.Application/Service/Management/DTO/UserFeedBackViewModel.cs index 5c4cba71b..e5f61c6cf 100644 --- a/IRaCIS.Core.Application/Service/Management/DTO/UserFeedBackViewModel.cs +++ b/IRaCIS.Core.Application/Service/Management/DTO/UserFeedBackViewModel.cs @@ -32,6 +32,18 @@ namespace IRaCIS.Core.Application.ViewModel public UserTypeEnum UserTypeEnum { get; set; } } + public class SetUserFeedBackStateInDto + { + public Guid Id { get; set; } + public int State { get; set; } + + + /// + /// 原因 + /// + public string Reason { get; set; } = string.Empty; + } + public class GetUserFeedBackQuery { @@ -86,6 +98,11 @@ namespace IRaCIS.Core.Application.ViewModel public Guid? VisitTaskId { get; set; } + /// + /// 原因 + /// + public string Reason { get; set; } = string.Empty; + public List ScreenshotList { get; set; } [JsonIgnore] diff --git a/IRaCIS.Core.Application/Service/Management/UserFeedBackService.cs b/IRaCIS.Core.Application/Service/Management/UserFeedBackService.cs index fabd20b00..f51b01300 100644 --- a/IRaCIS.Core.Application/Service/Management/UserFeedBackService.cs +++ b/IRaCIS.Core.Application/Service/Management/UserFeedBackService.cs @@ -53,6 +53,21 @@ namespace IRaCIS.Core.Application.Service return pageList; } + + /// + /// 设置用户反馈状态 并且可以提供理由 + /// + /// + /// + [HttpPost] + public async Task SetUserFeedBackState(SetUserFeedBackStateInDto inDto) + { + + await _userFeedBackRepository.UpdatePartialFromQueryAsync(inDto.Id, u => new UserFeedBack() { State = inDto.State, Reason = inDto.Reason }); + await _userFeedBackRepository.SaveChangesAsync(); + return ResponseOutput.Ok(); + } + [HttpPost] public async Task GetUserFeedBackInfo(GetUserFeedBackQuery inQuery) {