package com.keao.edu.user.api.client;

import com.keao.edu.common.config.FeignConfiguration;
import com.keao.edu.user.api.client.fallback.TaskRemoteServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name = "user-server", contextId = "TaskRemoteService", configuration = { FeignConfiguration.class }, fallback = TaskRemoteServiceFallback.class)
public interface TaskRemoteService {

	// 订单支付状态查询
	@GetMapping("task/queryPaymentStatus")
	void queryPaymentStatus();

	/**
	 * @describe 更新考级项目状态
	 * @author Joburgess
	 * @date 2020.07.10
	 * @return void
	 */
	@GetMapping("task/updateExamStatus")
	void updateExamStatus();

	/**
	 * @describe 明日考试安排提醒
	 * @author Joburgess
	 * @date 2020.07.23
	 * @return void
	 */
	@GetMapping("task/tomorrowExamPlanRemind")
	void tomorrowExamPlanRemind();

	/**
	 * @describe 考级项目结束提醒，提醒确认结果
	 * @author Joburgess
	 * @date 2020.07.27
	 * @return void
	 */
	@GetMapping("task/examEndRemind")
	void examEndRemind();

	/**
	 * @describe 清理历史未关闭考场
	 * @author Joburgess
	 * @date 2020.07.30
	 * @return void
	 */
	@GetMapping("task/cleanExamRoom")
	void cleanExamRoom();

}
