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

IRegisterRepository.cs 1015B

1234567891011121314151617181920212223242526
  1. using System.Collections.Generic;
  2. using UnivateProperties_API.Containers.Users;
  3. using UnivateProperties_API.Containers.Users.Simple;
  4. using UnivateProperties_API.Model.Users;
  5. namespace UnivateProperties_API.Repository.Users
  6. {
  7. public interface IRegisterRepository
  8. {
  9. User Authenticate(string username, string password);
  10. User Create(User user, string password, bool save);
  11. Agency CreateAgency(AgencyDto agency);
  12. void CreatePerson(UserDto individual, PersonType personType, bool save, Agency agency);
  13. void Update(User userParam, string password = null);
  14. IEnumerable<User> GetAllUsers();
  15. IEnumerable<Agency> GetAllAgencies();
  16. IEnumerable<Individual> GetAllIndividuals();
  17. User GetById(int id);
  18. Agency GetByAgencyId(int id);
  19. Individual GetByIndividualId(int id);
  20. void Delete(int id);
  21. void DeleteAgency(int id);
  22. void DeleteIndividual(int id);
  23. SimplePersonDto UserDetails(int userId);
  24. }
  25. }