package cn.iocoder.yudao.module.pms.service.iotmainworkorderdetails;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.pms.controller.admin.iotmainworkorderdetails.vo.IotMainWorkOrderDetailsPageReqVO;
import cn.iocoder.yudao.module.pms.controller.admin.iotmainworkorderdetails.vo.IotMainWorkOrderDetailsSaveReqVO;
import cn.iocoder.yudao.module.pms.dal.dataobject.iotmainworkorderdetails.IotMainWorkOrderDetailsDO;

import javax.validation.Valid;

/**
 * 保养工单明细 Service 接口
 *
 * @author ruiqi
 */
public interface IotMainWorkOrderDetailsService {

    /**
     * 创建保养工单明细
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Long createIotMainWorkOrderDetails(@Valid IotMainWorkOrderDetailsSaveReqVO createReqVO);

    /**
     * 更新保养工单明细
     *
     * @param updateReqVO 更新信息
     */
    void updateIotMainWorkOrderDetails(@Valid IotMainWorkOrderDetailsSaveReqVO updateReqVO);

    /**
     * 删除保养工单明细
     *
     * @param id 编号
     */
    void deleteIotMainWorkOrderDetails(Long id);

    /**
     * 获得保养工单明细
     *
     * @param id 编号
     * @return 保养工单明细
     */
    IotMainWorkOrderDetailsDO getIotMainWorkOrderDetails(Long id);

    /**
     * 获得保养工单明细分页
     *
     * @param pageReqVO 分页查询
     * @return 保养工单明细分页
     */
    PageResult<IotMainWorkOrderDetailsDO> getIotMainWorkOrderDetailsPage(IotMainWorkOrderDetailsPageReqVO pageReqVO);

}