package com.yonge.cooleshow.task.feign;

import com.yonge.cooleshow.common.entity.HttpResponseResult;
import com.yonge.cooleshow.task.feign.fallback.TeacherFeignServiceFallback;
import com.yonge.toolset.feign.config.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name = "teacher-server", configuration = FeignConfiguration.class, fallback = TeacherFeignServiceFallback.class)
public interface TeacherFeignService {

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

    /**
     * <p>定时将符合开售日期的未开售的直播课课程组修改为报名中状态-每隔10分钟执行一次
     * <p>定时将符合结束售卖日期的在售卖中的直播课课程组修改为取消或者成课状态状态-每隔10分钟执行一次
     */
    @GetMapping(value = "/task/opsCourseGroup")
    HttpResponseResult<Object> opsCourseGroup();

}
