| New file |
| | |
| | | package com.xiaopeng.api.feignClient.automatic; |
| | | |
| | | import com.xiaopeng.api.dto.account.XpOperationsUserQueryDTO; |
| | | import com.xiaopeng.api.factory.account.XpAppUserClientFallbackFactory; |
| | | import com.xiaopeng.api.factory.automatic.OrderMissionClientFallbackFactory; |
| | | import com.xiaopeng.api.model.account.XpOperationsUser; |
| | | import com.xiaopeng.api.vo.account.XpOperationsUserWithRoleVO; |
| | | 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客户端 |
| | | * |
| | | * @author mitao |
| | | */ |
| | | @FeignClient(contextId = "OrderMissionClient", |
| | | value = ServiceNameConstantsEnum.XP_AUTOMATIC_PILOT_SERVICE, |
| | | fallbackFactory = OrderMissionClientFallbackFactory.class) |
| | | public interface OrderMissionClient { |
| | | |
| | | /** |
| | | * 下发命令 |
| | | * @param orderId |
| | | * @return |
| | | */ |
| | | @PostMapping("/inner/pushOrder") |
| | | R<Boolean> pushOrder(@RequestParam Long orderId); |
| | | } |