using System.Text.Json; using XFEExtension.NetCore.ServerInteractive.Models.UserModels; namespace XFEExtension.NetCore.ServerInteractive.Interfaces; /// /// 用户服务基类 /// public interface IUserServiceBase { /// /// Json序列化设置 /// JsonSerializerOptions JsonSerializerOptions { get; set; } /// /// 添加加密用户模型方法 /// Action AddEncryptedUserLoginModelFunction { get; set; } /// /// 移除加密用户模型方法 /// Action RemoveEncryptedUserLoginModelFunction { get; set; } /// /// 添加用户方法 /// Action AddUserFunction { get; set; } /// /// 保存已更新的用户;用于持久化旧明文密码的首次登录升级。 /// Action UpdateUserFunction { get; set; } /// /// 获取加密用户模型方法 /// Func> GetEncryptedUserLoginModelFunction { get; set; } /// /// 获取登录持续天数 /// Func GetLoginKeepDays { get; set; } /// /// 获取用户方法 /// Func> GetUserFunction { get; set; } }