41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
|
|
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();
|
|||
|
|
}
|
|||
|
|
}
|