package com.aiotagro.cattletrade.business.service;

import com.aiotagro.cattletrade.business.dto.SlaughterRecordCreateDto;
import com.aiotagro.cattletrade.business.dto.SlaughterRecordDto;
import com.aiotagro.cattletrade.business.dto.SlaughterRecordEditDto;
import com.aiotagro.cattletrade.business.entity.SlaughterRecord;
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-10
 */
public interface ISlaughterRecordService extends IService<SlaughterRecord> {

    /**
     * 分页查询屠宰记录
     */
    PageResultResponse<SlaughterRecord> pageQuery(SlaughterRecordDto dto);

    /**
     * 新增屠宰记录
     */
    AjaxResult addRecord(SlaughterRecordCreateDto dto);

    /**
     * 更新屠宰记录
     */
    AjaxResult updateRecord(SlaughterRecordEditDto dto);

    /**
     * 删除屠宰记录
     */
    AjaxResult deleteRecord(Integer id);

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


