using Nirvana.Common;
using Nirvana.Common.ApiBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Waste.Domain;

namespace Waste.Application
{
    public interface IWasteService
    {
        /// <summary>
        /// 垃圾分类列表
        /// </summary>
        /// <param name="param"></param>
        /// <returns></returns>
        Task<PageParms<W_WasteType>> GetTypeListAsync(QueryParams param);
        /// <summary>
        /// 垃圾分类信息提交
        /// </summary>
        /// <param name="w_WasteType"></param>
        /// <returns></returns>
        Task<ResultInfo> SubmitTypeFormAsync(W_WasteType w_WasteType);
        /// <summary>
        /// 删除分类
        /// </summary>
        /// <param name="keyValue"></param>
        /// <returns></returns>
        Task<ResultInfo> DeleteTypeFormAsync(Guid keyValue);
        /// <summary>
        /// 分类详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<W_WasteType> DetailTypeAsync(Guid id);
        /// <summary>
        /// 获取所有分类
        /// </summary>
        /// <returns></returns>
        Task<List<W_WasteType>> GetAllTypeList();
    }
}
