您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ILuUsersBusiness.cs 846B

123456789101112131415161718192021222324252627
  1. using Luticate2.Auth.Dbo.Users;
  2. using Luticate2.Utils.Dbo.Result;
  3. using Luticate2.Utils.Interfaces;
  4. namespace Luticate2.Auth.Interfaces.Users
  5. {
  6. public interface ILuUsersBusiness : ILuCrudInterface<LuUsersAddFullDbo, LuUsersFullDbo, LuUsersEditFullDbo, string>
  7. {
  8. string GenerateSalt();
  9. string HashPassword(string password, string salt);
  10. bool VerifyPasswordHash(string password, string hash, string salt);
  11. LuResult<LuUsersLoginResultDbo> Login(string username, string password);
  12. LuResult<bool> Logout(string token);
  13. LuResult<LuUsersFullDbo> FindByUsername(string username);
  14. LuResult<LuUsersFullDbo> Register(LuUsersAddDbo user);
  15. LuResult<LuUsersFullDbo> Edit(string id, LuUsersEditDbo user);
  16. LuResult<LuUsersFullDbo> Me();
  17. }
  18. }