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);
    }
}