using System.Threading.Tasks;
using Dpz.Core.Public.ViewModel;
using Dpz.Core.Public.ViewModel.V4;
using Dpz.Core.Web.Pager;
namespace Dpz.Core.Service.V4.Services;
public interface IAudioService
{
/// <summary>
/// 上传音频
/// </summary>
/// <param name="audio"></param>
/// <returns></returns>
Task<VmAudio> AddAsync(VmAudio audio);
/// <summary>
/// 获取音频
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
Task<VmAudio?> FindAsync(string id);
/// <summary>
/// 获取音频分页信息
/// </summary>
/// <param name="pageIndex"></param>
/// <param name="pageSize"></param>
/// <param name="uploader"></param>
/// <returns></returns>
Task<IPagedList<VmAudio>> GetPagesAsync(int pageIndex, int pageSize, VmUserInfo? uploader = null);
/// <summary>
/// 删除音频
/// </summary>
/// <param name="id"></param>
/// <returns></returns>
Task DeleteAsync(string id);
}