using LMS.Repository.User; using System.ComponentModel.DataAnnotations.Schema; using System.Text.Json; namespace LMS.Repository.DTO.UserDto { public class UserDto : UserBaseDto { public List RoleNames { get; set; } = []; /// /// 允许使用的机器码数量 /// public long AllDeviceCount { get; set; } = 1; /// /// 代理分成比例 /// public double AgentPercent { get; set; } = 0.00; /// /// 免费修改机器码次数 /// public long FreeCount { get; set; } = 0; public DateTime CreatedDate { get; set; } /// /// 邀请码 /// public string AffiliateCode { get; set; } = string.Empty; public long ParentId { get; set; } /// /// 放一些操作信息 不能频繁的修改数据库,使用的json格式存放 /// public UserPrivateOptions Options { get; set; } = new UserPrivateOptions(); } }