添加项目文件。
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
namespace IdentityService.WebApi.Applications.Dtos.Common
|
||||
{
|
||||
public class UserResponse
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string UserName { get; set; }
|
||||
public string NickName { get; set; }
|
||||
public string? Email { get; set; }
|
||||
public string? Phone { get; set; }
|
||||
public string Region { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string? Avatar { get; set; }
|
||||
public DateTimeOffset CreationTime { get; set; }
|
||||
public DateTimeOffset? Deletion { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
namespace IdentityService.WebApi.Applications.Dtos
|
||||
{
|
||||
public class LoginResponse
|
||||
{
|
||||
public Guid UserId { get; init; }
|
||||
public string Token { get; init; }
|
||||
public string RefreshToken { get; init; }
|
||||
public DateTime? Expired { get; init; }
|
||||
|
||||
public LoginResponse(Guid userId, string token, string refreshToken, DateTime? expired)
|
||||
{
|
||||
UserId = userId;
|
||||
Token = token;
|
||||
RefreshToken = refreshToken;
|
||||
Expired = expired;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user