package com.yonge.cooleshow.task.feign;

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

@FeignClient(name = "student-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/pollingOrder")
    Object pollingOrder();
}
