package com.ruoyi.hezhi.mapper;

import com.ruoyi.hezhi.domain.TbTeacherAuthentication;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 名师认证Mapper接口
 *
 * @author ruoyi
 * @date 2024-12-13
 */
public interface TbTeacherAuthenticationMapper
{
    /**
     * 查询名师认证
     *
     * @param teacherAuthenticationId 名师认证主键
     * @return 名师认证
     */
    public TbTeacherAuthentication selectTbTeacherAuthenticationByTeacherAuthenticationId(Long teacherAuthenticationId);
    /**
     * 查询名师认证
     *
     * @param phone 名师认证主键
     * @return 名师认证
     */
    public TbTeacherAuthentication selectTbTeacherAuthenticationByPhone(String phone);

    /**
     * 查询名师认证列表
     *
     * @param tbTeacherAuthentication 名师认证
     * @return 名师认证集合
     */
    public List<TbTeacherAuthentication> selectTbTeacherAuthenticationList(TbTeacherAuthentication tbTeacherAuthentication);

    /**
     * 新增名师认证
     *
     * @param tbTeacherAuthentication 名师认证
     * @return 结果
     */
    public int insertTbTeacherAuthentication(TbTeacherAuthentication tbTeacherAuthentication);

    /**
     * 修改名师认证
     *
     * @param tbTeacherAuthentication 名师认证
     * @return 结果
     */
    public int updateTbTeacherAuthentication(TbTeacherAuthentication tbTeacherAuthentication);

    /**
     * 删除名师认证
     *
     * @param teacherAuthenticationId 名师认证主键
     * @return 结果
     */
    public int deleteTbTeacherAuthenticationByTeacherAuthenticationId(Long teacherAuthenticationId);

    /**
     * 批量删除名师认证
     *
     * @param teacherAuthenticationIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTbTeacherAuthenticationByTeacherAuthenticationIds(Long[] teacherAuthenticationIds);

    /**
     * 获取名师认证
     * @param memberUserId 用户ID
     * @return 结果
     */
    public TbTeacherAuthentication getByMemberUserId(@Param("memberUserId") Long memberUserId);
}
