修改用户参与项目接口
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
1f8caa4616
commit
812035686e
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue