feat: add user ID to GetSingleUserResponse and update PmUserQueryService for ID retrieval

This commit is contained in:
2025-12-13 18:55:50 +03:30
parent a52e313984
commit 5be44432b1
2 changed files with 3 additions and 1 deletions

View File

@@ -40,6 +40,7 @@ public class GetSingleUserQueryHandler : IBaseQueryHandler<GetSingleUserQuery, G
List<long> roles = user.RoleUser.Select(x => x.RoleId).ToList();
var response = new GetSingleUserResponse
{
Id = user.Id,
FullName = user.FullName,
UserName = user.UserName,
ProfilePhotoPath = user.ProfilePhotoPath,
@@ -71,6 +72,7 @@ public class GetSingleUserQueryHandler : IBaseQueryHandler<GetSingleUserQuery, G
public record GetSingleUserResponse
{
public long Id { get; set; }
/// <summary>
/// نام و نام خانوادگی
/// </summary>

View File

@@ -17,6 +17,6 @@ public class PmUserQueryService : IPmUserQueryService
{
var query = new GetSingleUserQuery(accountId.ToString());
var result = await _mediator.Send(query);
return result.Data?.AccountId ?? null;
return result.Data?.Id ?? null;
}
}