puzhibing
2026-03-13 b1df51257f91e3e3c9a48ee138d167b90816e285
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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);
}