Compare commits
No commits in common. "e7548c08a6843256a543c89a64870194b8c9711f" and "2f2f49c6c7306311c4ebab79488e04c34b4e6bab" have entirely different histories.
e7548c08a6
...
2f2f49c6c7
|
|
@ -32,18 +32,6 @@ 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
|
||||||
{
|
{
|
||||||
|
|
@ -98,11 +86,6 @@ 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]
|
||||||
|
|
|
||||||
|
|
@ -53,21 +53,6 @@ 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)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue