package com.xiaopeng.api.feignClient.vehicleConvoy;
|
|
|
import com.xiaopeng.api.dto.vehicleConvoy.BaseVehicleUserDto;
|
import com.xiaopeng.api.factory.vehicleConvoy.UserVehicleClientFallbackFactory;
|
import com.xiaopeng.api.vo.vehicleConvoy.BluetoothDeliverVo;
|
import com.xiaopeng.common.core.dto.ServiceNameConstantsEnum;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
/**
|
* 蓝牙解锁车门
|
*/
|
// todo 需要修改蓝牙微服务调用名
|
@FeignClient(contextId = "BluetoothUnlockClient",
|
value = ServiceNameConstantsEnum.XP_VEHICLE_USER_SERVICE,
|
fallbackFactory = UserVehicleClientFallbackFactory.class)
|
public interface BluetoothUnlockClient {
|
|
|
/**
|
* 下发凭证
|
* @param vo
|
*/
|
@PostMapping("/logan/rt/credential/deliver")
|
BaseVehicleUserDto deliver(@RequestBody BluetoothDeliverVo vo);
|
|
|
/**
|
* 删除凭证
|
* @param vo
|
*/
|
@PostMapping("/logan/rt/credential/delete")
|
BaseVehicleUserDto delete(@RequestBody BluetoothDeliverVo vo);
|
}
|