package com.yonge.cooleshow.api.feign;

import com.yonge.cooleshow.api.feign.fallback.StudentFeignServiceFallback;
import com.yonge.cooleshow.common.constant.AppConstant;
import com.yonge.cooleshow.common.entity.HttpResponseResult;
import com.yonge.toolset.feign.config.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name = AppConstant.APPLICATION_STUDENT + AppConstant.SERVER, configuration = FeignConfiguration.class, fallback = StudentFeignServiceFallback.class)
public interface StudentFeignService {

    /***
     * 统计学生首页数据
     * @author liweifan
     * @updateTime 2022/3/28 15:34
     * @return: java.lang.Object
     */
    @GetMapping(value = "/task/queryStudentTotal")
    Object queryStudentTotal();

    /***
     * 半小时一次
     * @author liweifan
     * @updateTime 2022/3/28 15:34
     * @return: java.lang.Object
     */
    @GetMapping(value = "/task/halfHourTask")
    Object halfHourTask();


    /**
     * @Description: 当日陪练课未对老师评价（每晚9点，已评价不发）
     * @Author: cy
     * @Date: 2022/5/6
     */
    @GetMapping("/task/noRepliedTeacher")
    HttpResponseResult noRepliedTeacher();
}
