72 lines
1.8 KiB
C#
72 lines
1.8 KiB
C#
namespace AssetManager.Models.DTOs;
|
|
|
|
public class LoginRequest
|
|
{
|
|
public string Email { get; set; }
|
|
public string Password { get; set; }
|
|
public string OpenId { get; set; }
|
|
public string Nickname { get; set; }
|
|
public string AvatarUrl { get; set; }
|
|
public int Gender { get; set; }
|
|
public string Country { get; set; }
|
|
public string Province { get; set; }
|
|
public string City { get; set; }
|
|
public string Language { get; set; }
|
|
}
|
|
|
|
public class LoginResponse
|
|
{
|
|
public string Token { get; set; }
|
|
public string ExpireAt { get; set; }
|
|
public UserBasicInfo User { get; set; }
|
|
public UserInfo UserInfo { get; set; }
|
|
}
|
|
|
|
public class UserBasicInfo
|
|
{
|
|
public string UserName { get; set; }
|
|
public string Email { get; set; }
|
|
}
|
|
|
|
public class UserInfo
|
|
{
|
|
public string Id { get; set; }
|
|
public string UserName { get; set; }
|
|
public string Email { get; set; }
|
|
public string Avatar { get; set; }
|
|
public string MemberLevel { get; set; }
|
|
public int RunningDays { get; set; }
|
|
public int SignalsCaptured { get; set; }
|
|
public double WinRate { get; set; }
|
|
public int TotalTrades { get; set; }
|
|
public double TotalReturn { get; set; }
|
|
public string CreatedAt { get; set; }
|
|
}
|
|
|
|
public class WechatLoginResponse
|
|
{
|
|
public string Token { get; set; }
|
|
public string ExpireAt { get; set; }
|
|
public UserBasicInfo User { get; set; }
|
|
public string OpenId { get; set; }
|
|
}
|
|
|
|
public class RegisterRequest
|
|
{
|
|
public string Email { get; set; }
|
|
public string Password { get; set; }
|
|
public string UserName { get; set; }
|
|
}
|
|
|
|
public class RegisterResponse
|
|
{
|
|
public string Id { get; set; }
|
|
public string Status { get; set; }
|
|
}
|
|
|
|
public class WechatLoginRequest
|
|
{
|
|
public string Code { get; set; }
|
|
public string NickName { get; set; }
|
|
}
|