using DS.Module.Core;
using DS.WMS.Core.Code.Entity;

namespace DS.WMS.Core.Code.Interface
{
    public interface ICodeInvoiceService
    {
        /// <summary>
        /// 列表
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<DataResult<List<CodeInvoice>>> GetListAsync(PageRequest request);

        /// <summary>
        /// 获取详情
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<DataResult<CodeInvoice>> GetAsync(long id);

        /// <summary>
        /// 新增/修改
        /// </summary>
        /// <param name="ci"></param>
        /// <returns></returns>
        Task<DataResult<CodeInvoice>> EditAsync(CodeInvoice ci);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<DataResult> DeleteAsync(params long[] ids);
    }
}