2024-10-13 17:04:47 +08:00

41 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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();
}
}