ceshi
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
namespace LMS.Repository.DTO.UserDto;
|
||||
|
||||
public class UserAgentInfoDto
|
||||
{
|
||||
/// <summary>
|
||||
/// 用户ID
|
||||
/// </summary>
|
||||
public long UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户名称
|
||||
/// </summary>
|
||||
public string UserName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户昵称
|
||||
/// </summary>
|
||||
public string NickName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户的邀请码
|
||||
/// </summary>
|
||||
public string AffiliateCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 用户的代理分成比例
|
||||
/// </summary>
|
||||
public double AgentPercent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 邀请人数
|
||||
/// </summary>
|
||||
public int AffiliateNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 邀请的VIP人数
|
||||
/// </summary>
|
||||
public int AffiliateVIPNumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 邀请获取的金额
|
||||
/// </summary>
|
||||
public double AffiliateMoney { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using LMS.Repository.User;
|
||||
|
||||
namespace LMS.Repository.DTO.UserDto;
|
||||
|
||||
public class UserBaseDto
|
||||
{
|
||||
public long Id { get; set; }
|
||||
|
||||
public string NickName { get; set; } = string.Empty;
|
||||
|
||||
public string UserName { get; set; } = string.Empty;
|
||||
|
||||
public string Email { get; set; } = string.Empty;
|
||||
|
||||
public string PhoneNumber { get; set; } = string.Empty;
|
||||
|
||||
public string Avatar { get; set; } = string.Empty;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
namespace LMS.Repository.DTO.UserDto
|
||||
{
|
||||
public class UserCollectionDto : UserBaseDto
|
||||
{
|
||||
public List<string> RoleNames { get; set; } = [];
|
||||
|
||||
public DateTime CreatedDate { get; set; }
|
||||
|
||||
public DateTime LastLoginDate { get; set; }
|
||||
|
||||
public long ParentId { get; set; }
|
||||
|
||||
public string LastLoginIp { get; set; } = string.Empty;
|
||||
|
||||
public string LastLoginDevice { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
using LMS.Repository.User;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace LMS.Repository.DTO.UserDto
|
||||
{
|
||||
public class UserDto : UserBaseDto
|
||||
{
|
||||
public List<string> RoleNames { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// 允许使用的机器码数量
|
||||
/// </summary>
|
||||
public long AllDeviceCount { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// 代理分成比例
|
||||
/// </summary>
|
||||
public double AgentPercent { get; set; } = 0.00;
|
||||
|
||||
/// <summary>
|
||||
/// 免费修改机器码次数
|
||||
/// </summary>
|
||||
public long FreeCount { get; set; } = 0;
|
||||
|
||||
public DateTime CreatedDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 邀请码
|
||||
/// </summary>
|
||||
public string AffiliateCode { get; set; } = string.Empty;
|
||||
|
||||
public long ParentId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 放一些操作信息 不能频繁的修改数据库,使用的json格式存放
|
||||
/// </summary>
|
||||
public UserPrivateOptions Options { get; set; } = new UserPrivateOptions();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user