数据回推控制层添加接口
This commit is contained in:
parent
e994606496
commit
c2a7816da7
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
}
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue