package com.ghy.worker.service;

import java.util.List;
import com.ghy.worker.domain.WorkerCertification;
import org.apache.ibatis.annotations.Param;

/**
 * 师傅实名审核Service接口
 *
 * @author clunt
 * @date 2022-07-07
 */
public interface IWorkerCertificationService
{
    /**
     * 查询师傅实名审核
     *
     * @param workerCertificationId 师傅实名审核主键
     * @return 师傅实名审核
     */
    public WorkerCertification selectWorkerCertificationByWorkerCertificationId(String workerCertificationId);

    /**
     * 查询师傅实名审核列表
     *
     * @param workerCertification 师傅实名审核
     * @return 师傅实名审核集合
     */
    public List<WorkerCertification> selectWorkerCertificationList(WorkerCertification workerCertification);

    /**
     * 新增师傅实名审核
     *
     * @param workerCertification 师傅实名审核
     * @return 结果
     */
    public int insertWorkerCertification(WorkerCertification workerCertification);

    /**
     * 修改师傅实名审核
     *
     * @param workerCertification 师傅实名审核
     * @return 结果
     */
    public int updateWorkerCertification(WorkerCertification workerCertification);

    /**
     * 批量删除师傅实名审核
     *
     * @param workerCertificationIds 需要删除的师傅实名审核主键集合
     * @return 结果
     */
    public int deleteWorkerCertificationByWorkerCertificationIds(String workerCertificationIds);

    /**
     * 删除师傅实名审核信息
     *
     * @param workerCertificationId 师傅实名审核主键
     * @return 结果
     */
    public int deleteWorkerCertificationByWorkerCertificationId(String workerCertificationId);

    /**
     * 查询师傅实名审核信息
     *
     * @param workerId 师傅id
     * @return 师傅实名审核信息
     */
    WorkerCertification selectByWorkerId(Long workerId);

    /**
     * 通过师傅id删除师傅实名审核信息
     *
     * @param workerId 师傅id
     * @return 结果
     */
    int deleteCertificationByWorkerId(Long workerId);

    /**
     * @param ids 操作的审核记录
     * @param status 审核后的状态
     * @return 成功条数
     */
    int changeStatus(@Param("ids") String ids, @Param("status") Integer status);

}
