添加接口

Test_IRC_Net10
he 2026-04-24 13:49:22 +08:00
parent 27bdc95f6e
commit cfadc07b52
2 changed files with 32 additions and 0 deletions

View File

@ -32,6 +32,18 @@ namespace IRaCIS.Core.Application.ViewModel
public UserTypeEnum UserTypeEnum { get; set; } public UserTypeEnum UserTypeEnum { get; set; }
} }
public class SetUserFeedBackStateInDto
{
public Guid Id { get; set; }
public int State { get; set; }
/// <summary>
/// 原因
/// </summary>
public string Reason { get; set; } = string.Empty;
}
public class GetUserFeedBackQuery public class GetUserFeedBackQuery
{ {
@ -86,6 +98,11 @@ namespace IRaCIS.Core.Application.ViewModel
public Guid? VisitTaskId { get; set; } public Guid? VisitTaskId { get; set; }
/// <summary>
/// 原因
/// </summary>
public string Reason { get; set; } = string.Empty;
public List<string> ScreenshotList { get; set; } public List<string> ScreenshotList { get; set; }
[JsonIgnore] [JsonIgnore]

View File

@ -53,6 +53,21 @@ namespace IRaCIS.Core.Application.Service
return pageList; return pageList;
} }
/// <summary>
/// 设置用户反馈状态 并且可以提供理由
/// </summary>
/// <param name="inDto"></param>
/// <returns></returns>
[HttpPost]
public async Task<IResponseOutput> SetUserFeedBackState(SetUserFeedBackStateInDto inDto)
{
await _userFeedBackRepository.UpdatePartialFromQueryAsync(inDto.Id, u => new UserFeedBack() { State = inDto.State, Reason = inDto.Reason });
await _userFeedBackRepository.SaveChangesAsync();
return ResponseOutput.Ok();
}
[HttpPost] [HttpPost]
public async Task<IResponseOutput> GetUserFeedBackInfo(GetUserFeedBackQuery inQuery) public async Task<IResponseOutput> GetUserFeedBackInfo(GetUserFeedBackQuery inQuery)
{ {