package com.ruoyi.bgt.service;

import com.ruoyi.bgt.bo.BgtProjectRecruitQueryBo;
import com.ruoyi.bgt.domain.BgtProjectRecruit;
import com.ruoyi.bgt.domain.dto.BgtProjectRecruitQueryDTO;
import com.ruoyi.bgt.domain.vo.BgtProjectRecruitDetailVO;
import com.ruoyi.bgt.domain.vo.BgtProjectRecruitVO;
import com.ruoyi.common.core.mybatisplus.core.IServicePlus;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.wgz.bo.req.WgzAppRegisteredProjectReq;
import com.ruoyi.wgz.bo.res.WgzAppCancelRegistrationProjectDetailsRes;
import com.ruoyi.wgz.bo.res.WgzAppProjectDetailsRes;
import com.ruoyi.wgz.bo.res.WgzAppRegisteredProjectRes;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PathVariable;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Collection;
import java.util.List;

/**
 * 包工头招工Service接口
 *
 * @author ruoyi
 * @date 2025-02-17
 */
public interface IBgtProjectRecruitService extends IServicePlus<BgtProjectRecruit> {
    /**
     * 查询单个
     * @return
     */
    BgtProjectRecruit queryById(Long id);

    /**
     * 查询列表
     */
    TableDataInfo<BgtProjectRecruit> queryPageList(BgtProjectRecruitQueryBo bo);

    /**
     * 查询列表
     */
    List<BgtProjectRecruit> queryList(BgtProjectRecruitQueryBo bo);

    /**
     * 根据新增业务对象插入包工头招工
     * @param bo 包工头招工新增业务对象
     * @return
     */
    Boolean insert(BgtProjectRecruit bo);

    /**
     * 根据编辑业务对象修改包工头招工
     * @param bo 包工头招工编辑业务对象
     * @return
     */
    Boolean update(BgtProjectRecruit bo);

    /**
     * 校验并删除数据
     * @param ids 主键集合
     * @param isValid 是否校验,true-删除前校验,false-不校验
     * @return
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

	/**
	 * 查询列表
	 */
	TableDataInfo<BgtProjectRecruitVO> appQueryPageList(BgtProjectRecruitQueryDTO dto);

	/**
	 * 查询单个
	 * @return
	 */
	BgtProjectRecruitDetailVO appQueryById(Long id);

	/**
	 * LC-APP相关
	 * =================================================================================================================
	 * =================================================================================================================
	 * =================================================================================================================
	 */

	/**
	 * 根据招工id获取到具体招工信息
	 */
	BgtProjectRecruit getAppById(Long id);

	/**
	 * 1、首页-项目详情
	 * 2、项目进行中-项目详情
	 */
	WgzAppProjectDetailsRes userProjectDetails(Long id);

	/**
	 * 首页-已报名项目（分页）
	 */
	TableDataInfo<WgzAppRegisteredProjectRes> userRegisteredProject(@Validated WgzAppRegisteredProjectReq req);

	/**
	 * 已报名项目·项目详情
	 */
	WgzAppCancelRegistrationProjectDetailsRes userCancelRegistrationProjectDetails(Long recruitId);

}
