IVolunteerRepository.cs 637 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using XF.Domain.Repository;
  7. namespace Hotline.Snapshot.Interfaces;
  8. public interface IVolunteerRepository : IRepository<Volunteer>
  9. {
  10. /// <summary>
  11. /// 根据电话获取志愿者信息
  12. /// </summary>
  13. /// <param name="phone"></param>
  14. /// <returns></returns>
  15. Task<Volunteer> GetByPhoneAsync(string? phone);
  16. /// <summary>
  17. /// 是否志愿者
  18. /// </summary>
  19. /// <param name="phoneNumber"></param>
  20. /// <returns></returns>
  21. Task<bool> IsVolunteerAsync(string? phoneNumber);
  22. }