package org.dromara.facility.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.facility.domain.FacPhotovoltaicPanelSupport;
import org.dromara.facility.domain.dto.photovoltaicpanelsupport.FacPhotovoltaicPanelSupportCreateReq;
import org.dromara.facility.domain.dto.photovoltaicpanelsupport.FacPhotovoltaicPanelSupportQueryReq;
import org.dromara.facility.domain.dto.photovoltaicpanelsupport.FacPhotovoltaicPanelSupportUpdateReq;
import org.dromara.facility.domain.vo.photovoltaicpanelsupport.FacPhotovoltaicPanelSupportVo;

import java.util.Collection;
import java.util.List;

/**
 * 设施-光伏板支架Service接口
 *
 * @author lcj
 * @date 2025-04-21
 */
public interface IFacPhotovoltaicPanelSupportService extends IService<FacPhotovoltaicPanelSupport> {

    /**
     * 查询设施-光伏板支架
     *
     * @param id 主键
     * @return 设施-光伏板支架
     */
    FacPhotovoltaicPanelSupportVo queryById(Long id);

    /**
     * 分页查询设施-光伏板支架列表
     *
     * @param req       查询条件
     * @param pageQuery 分页参数
     * @return 设施-光伏板支架分页列表
     */
    TableDataInfo<FacPhotovoltaicPanelSupportVo> queryPageList(FacPhotovoltaicPanelSupportQueryReq req, PageQuery pageQuery);

    /**
     * 查询符合条件的设施-光伏板支架列表
     *
     * @param req 查询条件
     * @return 设施-光伏板支架列表
     */
    List<FacPhotovoltaicPanelSupportVo> queryList(FacPhotovoltaicPanelSupportQueryReq req);

    /**
     * 新增设施-光伏板支架
     *
     * @param req 设施-光伏板支架
     * @return 新增光伏板支架id
     */
    Long insertByBo(FacPhotovoltaicPanelSupportCreateReq req);

    /**
     * 修改设施-光伏板支架
     *
     * @param req 设施-光伏板支架
     * @return 是否修改成功
     */
    Boolean updateByBo(FacPhotovoltaicPanelSupportUpdateReq req);

    /**
     * 校验并批量删除设施-光伏板支架信息
     *
     * @param ids     待删除的主键集合
     * @param isValid 是否进行有效性校验
     * @return 是否删除成功
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 获取设施-光伏板支架视图对象
     *
     * @param photovoltaicPanelSupport 设施-光伏板支架对象
     * @return 设施-光伏板支架视图对象
     */
    FacPhotovoltaicPanelSupportVo getVo(FacPhotovoltaicPanelSupport photovoltaicPanelSupport);

    /**
     * 获取设施-光伏板支架查询条件封装
     *
     * @param req 查询条件
     * @return 查询条件封装
     */
    LambdaQueryWrapper<FacPhotovoltaicPanelSupport> buildQueryWrapper(FacPhotovoltaicPanelSupportQueryReq req);

    /**
     * 获取设施-光伏板支架分页对象视图
     *
     * @param photovoltaicPanelSupportPage 设施-光伏板支架分页对象
     * @return 设施-光伏板支架分页对象视图
     */
    Page<FacPhotovoltaicPanelSupportVo> getVoPage(Page<FacPhotovoltaicPanelSupport> photovoltaicPanelSupportPage);

}
