package com.miaxis.app.coach.service;

import java.util.List;
import com.miaxis.app.coach.domain.CoachInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.miaxis.app.coach.dto.CoachInfoDTO;
import com.miaxis.app.coach.dto.CoachInfoVO;

/**
 * 教练Service接口
 * 
 * @author miaxis
 * @date 2021-01-07
 */
public interface ICoachInfoService extends IService<CoachInfo>{
    /**
     * 查询教练
     * 
     * @param coachnum 教练ID
     * @return 教练
     */
    public CoachInfo selectCoachInfoById(String coachnum);

    /**
     * 查询教练列表
     * 
     * @param coachInfo 教练
     * @return 教练集合
     */
    public List<CoachInfo> selectCoachInfoList(CoachInfo coachInfo);

    /**
     * 新增教练
     * 
     * @param coachInfo 教练
     * @return 结果
     */
    public int insertCoachInfo(CoachInfo coachInfo);

    /**
     * 修改教练
     * 
     * @param coachInfo 教练
     * @return 结果
     */
    public int updateCoachInfo(CoachInfo coachInfo);

    /**
     * 批量删除教练
     * 
     * @param coachnums 需要删除的教练ID
     * @return 结果
     */
    public int deleteCoachInfoByIds(String[] coachnums);

    /**
     * 删除教练信息
     * 
     * @param coachnum 教练ID
     * @return 结果
     */
    public int deleteCoachInfoById(String coachnum);

    /**
     * 查询教练信息列表 带头像距离
     * @param coachInfoDTO
     * @return
     */
    public List<CoachInfoVO> selectCoachInfoUrlList(CoachInfoDTO coachInfoDTO);
}
