using Nirvana.Common;
using Nirvana.Common.ApiBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using YBDevice.Application.AdInfo;
using YBDevice.Entity;

namespace YBDevice.Application
{
    /// <summary>
    /// 轮播图、开屏广告管理
    /// </summary>
    public interface IAdService
    {
        /// <summary>
        /// 获取轮播图、开屏广告列表
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        Task<PageParms<BannerListModel>> GetListAsync(QueryParams param);
        /// <summary>
        /// 信息提交
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<ResultInfo> SubmitAsync(BannerSubmitModel model);
        /// <summary>
        /// 状态修改
        /// </summary>
        /// <param name="id">记录ID</param>
        /// <param name="status">状态</param>
        /// <param name="remark">状态描述</param>
        /// <returns></returns>
        Task<ResultInfo> SetStatusAsync(int id, AdStatus status, string remark);
        /// <summary>
        /// 详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<BannerSubmitModel> DetailAsync(int id);

        /// <summary>
        /// 获取轮播图设备列表
        /// </summary>
        /// <param name="orderid">轮播图ID</param>
        /// <param name="page">页码</param>
        /// <param name="pagesize">每页显示的数量</param>
        /// <param name="code">设备序列号</param>
        /// <param name="type">设备类型</param>
        /// <returns></returns>
        Task<PageParms<BannerEquDto>> GetOrderEquListAsync(int orderid, int page = 1, int pagesize = 50, string code = "", int type = 0);
    }
}
