package com.yonge.cooleshow.biz.dal.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yonge.cooleshow.biz.dal.entity.StudentStar;
import com.yonge.cooleshow.common.entity.HttpResponseResult;
import com.yonge.cooleshow.common.enums.YesOrNoEnum;

/**
 * 学生关注教师表 服务类
 * @author liweifan
 * @date 2022-03-23
 */
public interface StudentStarService extends IService<StudentStar>  {
    /***
     *
     * @author liweifan
     * @param: studentId
     * @param: teacherId
     * @updateTime 2022/4/26 17:05
     * @return: com.yonge.cooleshow.biz.dal.entity.StudentStar
     */
    StudentStar getByStudentIdAndTeacherId(Long studentId, Long teacherId);
    /***
     * 关注/取消关注
     * @author liweifan
     * @param: studentId
     * @param: teacherId
     * @param: starStatus
     * @updateTime 2022/4/26 17:50
     * @return: com.yonge.cooleshow.common.entity.HttpResponseResult<java.lang.Boolean>
     */
    HttpResponseResult<Boolean> starOrUnStar(Long studentId, Long teacherId, YesOrNoEnum starStatus);
}