package com.aiotagro.cattletrade.business.service;

import com.aiotagro.cattletrade.business.dto.SlaughterEntryCreateDto;
import com.aiotagro.cattletrade.business.dto.SlaughterEntryDto;
import com.aiotagro.cattletrade.business.dto.SlaughterEntryEditDto;
import com.aiotagro.cattletrade.business.entity.SlaughterEntry;
import com.aiotagro.common.core.web.domain.AjaxResult;
import com.aiotagro.common.core.web.domain.PageResultResponse;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 进场管理服务接口
 *
 * @author System
 * @date 2025-12-09
 */
public interface ISlaughterEntryService extends IService<SlaughterEntry> {

    /**
     * 分页查询
     */
    PageResultResponse<SlaughterEntry> pageQuery(SlaughterEntryDto dto);

    /**
     * 新增进场记录
     */
    AjaxResult addEntry(SlaughterEntryCreateDto dto);

    /**
     * 编辑进场记录
     */
    AjaxResult updateEntry(SlaughterEntryEditDto dto);

    /**
     * 删除进场记录（逻辑删除）
     */
    AjaxResult deleteEntry(Integer id);

    /**
     * 获取详情
     */
    AjaxResult detail(Integer id);
}

