using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Threading.Tasks;
using YC.ApplicationService.ApplicationService.BookAppService.Dto;
using YC.ApplicationService.Dto;
using YC.Core;
using YC.Core.Autofac;
using YC.Core.Domain;
using YC.Core.DynamicApi;
using YC.Core.DynamicApi.Attributes;
using YC.ElasticSearch.Models;
using YC.Model;

namespace YC.ApplicationService
{
    /// <summary>
    ///  业务接口
    /// </summary>

    public interface IBookAppService : IEntityApplicationService<Book, string>, IDependencyInjectionSupport
    {
        /// <summary>
        /// 获取分页数据
        /// </summary>
        /// <returns>返回数据集合</returns>
        Task<IApiResult> GetPageBookListAsync(BookPageInput<PageInputDto> input);

        /// <summary>
        /// 获取文件
        /// </summary>
        /// <returns></returns>
        Task<FileStreamResult> GetFileAsync();

        /// <summary>
        /// 测试返回数据给大屏
        /// </summary>
        /// <returns></returns>
        Task<List<TestDto>> GetData();
    }
}