package com.zhongzheng.modules.recruit.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhongzheng.modules.recruit.bo.RecruitAttachResumeAddBo;
import com.zhongzheng.modules.recruit.bo.RecruitAttachResumeEditBo;
import com.zhongzheng.modules.recruit.bo.RecruitAttachResumeQueryBo;
import com.zhongzheng.modules.recruit.domain.RecruitAttachResume;
import com.zhongzheng.modules.recruit.vo.RecruitAttachResumeVo;

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

/**
 * 附件简历Service接口
 *
 * @author hjl
 * @date 2021-08-20
 */
public interface IRecruitAttachResumeService extends IService<RecruitAttachResume> {
	/**
	 * 查询单个
	 * @return
	 */
	RecruitAttachResumeVo queryById(Long attachResumeId);

	/**
	 * 查询列表
	 */
	List<RecruitAttachResumeVo> queryList(RecruitAttachResumeQueryBo bo);

	/**
	 * 根据新增业务对象插入附件简历
	 * @param bo 附件简历新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(RecruitAttachResumeAddBo bo);

	/**
	 * 根据编辑业务对象修改附件简历
	 * @param bo 附件简历编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(RecruitAttachResumeEditBo bo);

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