diff --git a/src/main/java/com/chint/application/in/CarBackController.java b/src/main/java/com/chint/application/in/CarBackController.java index 8c06d424..dd8df074 100644 --- a/src/main/java/com/chint/application/in/CarBackController.java +++ b/src/main/java/com/chint/application/in/CarBackController.java @@ -1,5 +1,10 @@ package com.chint.application.in; +import com.chint.infrastructure.util.Result; +import com.chint.interfaces.rest.ly.dto.carorderdatapushback.Notification; +import com.chint.interfaces.rest.ly.dto.carorderdatapushback.NotifyData; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -7,6 +12,12 @@ import org.springframework.web.bind.annotation.RestController; * 用车数据回推控制层 */ @RestController -@RequestMapping("/public/CarBack") +@RequestMapping("/public/car") public class CarBackController { + + @PostMapping("/back") + public Result carBack(@RequestBody Notification notification) { + + return Result.Success("Success",null); + } } diff --git a/src/main/java/com/chint/application/in/FlyBackController.java b/src/main/java/com/chint/application/in/FlyBackController.java new file mode 100644 index 00000000..0d2a842a --- /dev/null +++ b/src/main/java/com/chint/application/in/FlyBackController.java @@ -0,0 +1,21 @@ +package com.chint.application.in; + +import com.chint.infrastructure.util.Result; +import com.chint.interfaces.rest.ly.dto.flydatapushback.Notification; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +/** + * 机票订单数据回推控制层 + */ +@RestController +@RequestMapping("/public/ticket") +public class FlyBackController { + @PostMapping("/back") + public Result ticketBack(@RequestBody Notification notification) { + + return Result.Success("Success-FlyBackController",null); + } +} diff --git a/src/main/java/com/chint/application/in/HotelBackController.java b/src/main/java/com/chint/application/in/HotelBackController.java index 552bb4a3..94304451 100644 --- a/src/main/java/com/chint/application/in/HotelBackController.java +++ b/src/main/java/com/chint/application/in/HotelBackController.java @@ -1,5 +1,10 @@ package com.chint.application.in; +import com.chint.infrastructure.util.Result; +import com.chint.interfaces.rest.ly.dto.hotelorderdatapushbach.Notification; +import com.chint.interfaces.rest.ly.dto.hotelorderdatapushbach.OrderInfo; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -7,6 +12,12 @@ import org.springframework.web.bind.annotation.RestController; * 酒店订单数据回推控制层 */ @RestController -@RequestMapping("/public/hotelBack") +@RequestMapping("/public/hotel") public class HotelBackController { + + @PostMapping("/back") + public Result hotelBack(@RequestBody Notification notification) { + + return Result.Success("Success-HotelBackController",null); + } } diff --git a/src/main/java/com/chint/application/in/TicketBackController.java b/src/main/java/com/chint/application/in/TicketBackController.java deleted file mode 100644 index 441b3021..00000000 --- a/src/main/java/com/chint/application/in/TicketBackController.java +++ /dev/null @@ -1,12 +0,0 @@ -package com.chint.application.in; - -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; - -/** - * 机票订单数据回推控制层 - */ -@RestController -@RequestMapping("/public/ticketBack") -public class TicketBackController { -} diff --git a/src/main/java/com/chint/application/in/TicketPushController.java b/src/main/java/com/chint/application/in/TicketPushController.java index 586e52af..2fa27c5f 100644 --- a/src/main/java/com/chint/application/in/TicketPushController.java +++ b/src/main/java/com/chint/application/in/TicketPushController.java @@ -1,12 +1,29 @@ package com.chint.application.in; +import com.chint.domain.aggregates.order.RouteOrder; +import com.chint.domain.value_object.OrderSaveData; +import com.chint.infrastructure.util.Result; +import com.chint.interfaces.rest.ly.dto.flydatapushback.DetailedData; +import com.chint.interfaces.rest.ly.dto.ticketpush.Notification; +import com.chint.interfaces.rest.ly.dto.ticketpush.NotifyData; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; +import static com.chint.infrastructure.constant.Constant.SUCCESS; + /** * 机票票状推送控制层 */ @RestController -@RequestMapping("/public/ticketPush") +@RequestMapping("/public/ticker") public class TicketPushController { + @PostMapping("/push") + public Result ticketPush(@RequestBody Notification notification) { + + return Result.Success("Success-TicketPushController",null); + } + + } diff --git a/src/main/java/com/chint/application/in/TrainBackController.java b/src/main/java/com/chint/application/in/TrainBackController.java index 0f9f669a..fdd043af 100644 --- a/src/main/java/com/chint/application/in/TrainBackController.java +++ b/src/main/java/com/chint/application/in/TrainBackController.java @@ -1,5 +1,10 @@ package com.chint.application.in; +import com.chint.infrastructure.util.Result; +import com.chint.interfaces.rest.ly.dto.hotelorderdatapushbach.OrderInfo; +import com.chint.interfaces.rest.ly.dto.trainorderdatapushback.Notification; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -7,6 +12,11 @@ import org.springframework.web.bind.annotation.RestController; * 火车票订单数据回推控制层 */ @RestController -@RequestMapping("/public/trainBack") +@RequestMapping("/public/train") public class TrainBackController { + @PostMapping("/back") + public Result trainBack(@RequestBody Notification notification) { + + return Result.Success("Success-TrainBackController",null); + } }