package com.xiaopeng.api.feignClient.maintenance;
|
|
import com.xiaopeng.api.factory.maintenance.XpCheckLocationClientFallbackFactory;
|
import com.xiaopeng.api.model.maintenance.XpCheckLocation;
|
import com.xiaopeng.common.core.domain.R;
|
import com.xiaopeng.common.core.dto.ServiceNameConstantsEnum;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
/**
|
* 打卡地址管理 Feign Client
|
*
|
* @author mitao
|
*/
|
@FeignClient(contextId = "XpCheckLocationClient", value = ServiceNameConstantsEnum.XP_MAINTENANCE_SERVICE, fallbackFactory = XpCheckLocationClientFallbackFactory.class)
|
public interface XpCheckLocationClient {
|
|
/**
|
* 根据ID查询打卡地址
|
*/
|
@GetMapping("/inner/check-location/queryById")
|
R<XpCheckLocation> queryById(@RequestParam Long id);
|
}
|