package com.yonge.cooleshow.auth.api.client;

import com.yonge.cooleshow.auth.api.client.fallback.AuthTaskFeignServiceFallback;
import com.yonge.toolset.feign.config.FeignConfiguration;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(contextId = "authTaskFeignService", name = "${app-config.open-feign.auth-server.name:auth-server}", url = "${app-config.open-feign.auth-server.url:}",
		configuration = { FeignConfiguration.class }, fallback = AuthTaskFeignServiceFallback.class)
public interface AuthTaskFeignService {

	/**
	 * 用户自动解锁
	 * @return
	 */
	@GetMapping(value = "task/autoUnlock")
	public boolean autoUnlock();
}
