Commit d2f9275cbbbc7a5af67ea85f6fa08b83e35eb6c8

Authored by zhangxing
1 parent 88309b95

order

src/main/java/com/diligrp/xtrade/order/controllor/OrderApiController.java
@@ -30,7 +30,7 @@ public class OrderApiController { @@ -30,7 +30,7 @@ public class OrderApiController {
30 /** 30 /**
31 * 订单创建接口 31 * 订单创建接口
32 */ 32 */
33 - @RequestMapping(value = "/createOrder",method = {RequestMethod.POST}) 33 + @RequestMapping(value = "/createOrder", method = {RequestMethod.POST})
34 public Message<Boolean> createOrder(@RequestBody @Validated OrderCreateRequestDto orderCreateRequestDto) { 34 public Message<Boolean> createOrder(@RequestBody @Validated OrderCreateRequestDto orderCreateRequestDto) {
35 orderservice.createOrder(orderCreateRequestDto); 35 orderservice.createOrder(orderCreateRequestDto);
36 return Message.success(Boolean.TRUE); 36 return Message.success(Boolean.TRUE);
@@ -39,7 +39,7 @@ public class OrderApiController { @@ -39,7 +39,7 @@ public class OrderApiController {
39 /** 39 /**
40 * 订单列表接口 40 * 订单列表接口
41 */ 41 */
42 - @RequestMapping(value = "/listOrders") 42 + @RequestMapping(value = "/listOrders", method = {RequestMethod.POST})
43 public Message<Page<OrderResponseDto>> listOrders(@RequestBody OrderRequestDto orderQueryRequestDto) { 43 public Message<Page<OrderResponseDto>> listOrders(@RequestBody OrderRequestDto orderQueryRequestDto) {
44 return Message.success(orderservice.orderLists(orderQueryRequestDto)); 44 return Message.success(orderservice.orderLists(orderQueryRequestDto));
45 } 45 }
@@ -47,7 +47,7 @@ public class OrderApiController { @@ -47,7 +47,7 @@ public class OrderApiController {
47 /** 47 /**
48 * 订单详情 48 * 订单详情
49 */ 49 */
50 - @RequestMapping(value = "/orderDetail") 50 + @RequestMapping(value = "/orderDetail", method = {RequestMethod.POST})
51 public Message<OrderResponseDto> orderDetail(@RequestBody @Validated OrderRequestDto orderQueryRequestDto) { 51 public Message<OrderResponseDto> orderDetail(@RequestBody @Validated OrderRequestDto orderQueryRequestDto) {
52 return Message.success(orderservice.orderDetail(orderQueryRequestDto.getOrderId())); 52 return Message.success(orderservice.orderDetail(orderQueryRequestDto.getOrderId()));
53 } 53 }
@@ -55,7 +55,7 @@ public class OrderApiController { @@ -55,7 +55,7 @@ public class OrderApiController {
55 /** 55 /**
56 * 订单详情 56 * 订单详情
57 */ 57 */
58 - @RequestMapping(value = "/updateBuyer") 58 + @RequestMapping(value = "/updateBuyer", method = {RequestMethod.POST})
59 public Message<Boolean> updateBuyer(@RequestBody @Validated OrderRequestDto orderQueryRequestDto) { 59 public Message<Boolean> updateBuyer(@RequestBody @Validated OrderRequestDto orderQueryRequestDto) {
60 orderservice.updateBuyer(orderQueryRequestDto); 60 orderservice.updateBuyer(orderQueryRequestDto);
61 return Message.success(Boolean.TRUE); 61 return Message.success(Boolean.TRUE);