using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XF.Domain.Repository;

namespace Hotline.Snapshot.IRepository;
public interface IVolunteerRepository : IRepository<Volunteer>
{
    /// <summary>
    /// 根据电话获取志愿者信息
    /// </summary>
    /// <param name="phone"></param>
    /// <returns></returns>
    Task<Volunteer> GetByPhoneAsync(string? phone);

    /// <summary>
    /// 是否志愿者
    /// </summary>
    /// <param name="phoneNumber"></param>
    /// <returns></returns>
    Task<bool> IsVolunteerAsync(string? phoneNumber);
}
