using XFEExtension.NetCore.AutoConfig; using XFEExtension.NetCore.ServerInteractive.Models.UserModels; using XFEExtension.NetCore.ServerInteractive.TServer.Models; namespace XFEExtension.NetCore.ServerInteractive.TServer.Profiles; public partial class UserProfile : XFEProfile { /// /// 用户列表 /// [ProfileProperty] [ProfilePropertyAddGet("Current.userTable.CurrentProfile = Current")] [ProfilePropertyAddGet("return Current.userTable")] private ProfileList userTable = [new() { NickName = "XFEstudio", UserName = "Admin", Password = "123456", PermissionLevel = (int)UserRole.经理 }]; /// /// 加密的用户登录列表 /// [ProfileProperty] [ProfilePropertyAddGet("Current.encryptedUserLoginModelTable.CurrentProfile = Current")] [ProfilePropertyAddGet("return Current.encryptedUserLoginModelTable")] private ProfileList encryptedUserLoginModelTable = []; }