49 lines
1.3 KiB
C#
49 lines
1.3 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;
|
||
|
||
/// <summary>
|
||
/// 所属用户ID
|
||
/// </summary>
|
||
public long ParentId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 备注
|
||
/// </summary>
|
||
public string? Remark { get; set; } = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 放一些操作信息 不能频繁的修改数据库,使用的json格式存放
|
||
/// </summary>
|
||
public UserPrivateOptions Options { get; set; } = new UserPrivateOptions();
|
||
}
|
||
}
|