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.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import java.util.List;
|
|
/**
|
* 打卡地址管理 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);
|
|
/**
|
* 根据ID列表批量查询打卡地址
|
*/
|
@PostMapping("/inner/check-location/listByIds")
|
R<List<XpCheckLocation>> listByIds(@RequestBody List<Long> ids);
|
}
|