Commit e3969a5b919d6ae955a42a73b8a6e259be3723fa

Authored by zhangxing
1 parent 9876ec1f

order api message modify

src/main/java/com/diligrp/xtrade/order/controllor/OrderApiController.java
... ... @@ -32,7 +32,7 @@ public class OrderApiController {
32 32 * 订单创建接口
33 33 */
34 34 @RequestMapping(value = "/createOrder",method = {RequestMethod.POST})
35   - public Message<?> createOrder(@RequestBody @Validated OrderCreateRequestDto orderCreateRequestDto) {
  35 + public Message<Boolean> createOrder(@RequestBody @Validated OrderCreateRequestDto orderCreateRequestDto) {
36 36 orderservice.createOrder(orderCreateRequestDto);
37 37 return Message.builder().success(Boolean.TRUE);
38 38 }
... ... @@ -42,7 +42,7 @@ public class OrderApiController {
42 42 */
43 43 @RequestMapping(value = "/listOrders")
44 44 public Message<List<OrderQueryResponseDto>> listOrders(@RequestBody OrderQueryRequestDto orderQueryRequestDto) {
45   - return Message.<List<OrderQueryResponseDto>>builder().success(orderservice.orderLists(orderQueryRequestDto));
  45 + return Message.builder().success(orderservice.orderLists(orderQueryRequestDto));
46 46 }
47 47  
48 48 /**
... ... @@ -50,6 +50,6 @@ public class OrderApiController {
50 50 */
51 51 @RequestMapping(value = "/orderDetail")
52 52 public Message<OrderQueryResponseDto> orderDetail(@RequestBody @Validated OrderQueryRequestDto orderQueryRequestDto) {
53   - return Message.<OrderQueryResponseDto>builder().success(orderservice.orderDetail(orderQueryRequestDto));
  53 + return Message.builder().success(orderservice.orderDetail(orderQueryRequestDto));
54 54 }
55 55 }
... ...