using SlnMesnac.Model.domain;
using SlnMesnac.Repository.service.@base;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SlnMesnac.Repository.service
{
    public interface IAirportTaskService : IBaseService<AirportTask>
    {
        /// <summary>
        /// 锟斤拷取站台锟斤拷锟斤拷锟叫憋拷
        /// </summary>
        /// <returns></returns>
        List<AirportTask> GetTaskInfos();
        /// <summary>
        /// 锟斤拷取锟斤拷执锟斤拷锟斤拷锟斤拷锟叫憋拷
        /// </summary>
        /// <returns></returns>
        List<AirportTask> GetAGVTaskInfos();


        /// <summary>
        /// 根据站台号查询任务列表
        /// </summary>
        /// <returns></returns>
        Task<List<AirportTask>> GetTaskInfoListAsync(string ConveyorNo);

        /// <summary>
        /// 锟斤拷锟斤拷锟斤拷锟斤拷锟叫憋拷
        /// </summary>
        /// <param name="record"></param>
        /// <returns></returns>
        Task<bool> UpdateTaskAsync(AirportTask record);


        /// <summary>
        /// 新增任务
        /// </summary>
        /// <param name="record"></param>
        /// <returns></returns>
        Task<bool> AddTaskAsync(AirportTask record);

        /// <summary>
        /// 删除任务
        /// </summary>
        /// <param name="record"></param>
        /// <returns></returns>
        Task<bool> DeleteTaskAsync(AirportTask record);
    }
}
