修改用户参与项目接口
continuous-integration/drone/push Build is passing Details

Test_IRC_Net8
hang 2025-02-25 09:57:45 +08:00
parent 1f8caa4616
commit 812035686e
3 changed files with 7 additions and 1 deletions

View File

@ -95,6 +95,7 @@ namespace IRaCIS.Core.Application.Contracts
public class UserTypeSelectDto
{
public bool IsDeleted { get; set; }
public Guid UserTypeId { get; set; }
public string UserTypeShortName { get; set; } = string.Empty;
}

View File

@ -139,6 +139,11 @@ namespace IRaCIS.Application.Contracts
public DateTime? JoinTime { get; set; }
public string Roles => string.Join(',', TrialUserRoleList.Select(t => t.UserTypeShortName));
public string JoinTimeStr => JoinTime?.ToString("yyyy-MM-dd") ?? string.Empty;
public string RemoveTimeStr => RemoveTime?.ToString("yyyy-MM-dd") ?? string.Empty;
}
public class TrialMaintenanceDTO : UserTrialCommand

View File

@ -50,7 +50,7 @@ namespace IRaCIS.Core.Application.Service
IsDeleted = t.IsDeleted,
JoinTime = t.JoinTime,
RemoveTime = t.RemoveTime,
TrialUserRoleList = t.TrialUserRoleList.Select(t => new UserTypeSelectDto() { UserTypeId = t.UserRole.UserTypeRole.Id, UserTypeShortName = t.UserRole.UserTypeRole.UserTypeShortName }).ToList(),
TrialUserRoleList = t.TrialUserRoleList.Select(t => new UserTypeSelectDto() { IsDeleted = t.IsDeleted, UserTypeId = t.UserRole.UserTypeRole.Id, UserTypeShortName = t.UserRole.UserTypeRole.UserTypeShortName }).ToList(),
}).ToPagedListAsync(inQuery);