...
|
...
|
@@ -2,10 +2,10 @@ package com.yohoufo.order.controller; |
|
|
|
|
|
import com.yohoufo.common.ApiResponse;
|
|
|
import com.yohoufo.order.common.TabType;
|
|
|
import com.yohoufo.order.request.OrderListRequest;
|
|
|
import com.yohoufo.order.request.OrderRequest;
|
|
|
import com.yohoufo.order.response.OrderDetailInfo;
|
|
|
import com.yohoufo.order.response.OrderListInfoRsp;
|
|
|
import com.yohoufo.order.model.request.OrderListRequest;
|
|
|
import com.yohoufo.order.model.request.OrderRequest;
|
|
|
import com.yohoufo.order.model.response.OrderDetailInfo;
|
|
|
import com.yohoufo.order.model.response.OrderListInfoRsp;
|
|
|
import com.yohoufo.order.service.IBuyerOrderService;
|
|
|
import com.yohoufo.order.service.impl.SellerOrderService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
...
|
...
|
@@ -35,7 +35,7 @@ public class BuyerOrderController { |
|
|
* 5:交易成功
|
|
|
* 7:交易失败
|
|
|
*/
|
|
|
@RequestMapping(params = "method=app.buyer.list")
|
|
|
@RequestMapping(params = "method=ufo.order.list")
|
|
|
@ResponseBody
|
|
|
public ApiResponse getOrderList(@RequestParam("type") int type,
|
|
|
@RequestParam("uid") int uid,
|
...
|
...
|
@@ -79,12 +79,16 @@ public class BuyerOrderController { |
|
|
* @param uid
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(params = "method=app.buyer.detail")
|
|
|
@RequestMapping(params = "method=ufo.order.detail")
|
|
|
@ResponseBody
|
|
|
public ApiResponse getOrderDetail(@RequestParam("orderCode") long orderCode,
|
|
|
@RequestParam("uid") int uid,
|
|
|
@RequestParam("tabType") String tabType) {
|
|
|
TabType actor = TabType.getTabType(tabType);
|
|
|
|
|
|
if (Objects.isNull(actor)){
|
|
|
return new ApiResponse.ApiResponseBuilder().code(400).message("非法的tab").build();
|
|
|
}
|
|
|
OrderRequest orderRequest = OrderRequest.builder()
|
|
|
.uid(uid)
|
|
|
.orderCode(orderCode)
|
...
|
...
|
@@ -100,7 +104,7 @@ public class BuyerOrderController { |
|
|
* 取消订单
|
|
|
*/
|
|
|
|
|
|
@RequestMapping(params = "method=app.buyer.cancel")
|
|
|
@RequestMapping(params = "method=ufo.buyer.cancel")
|
|
|
@ResponseBody
|
|
|
public ApiResponse cancel(@RequestParam("orderCode") long orderCode,
|
|
|
@RequestParam("uid") int uid) {
|
...
|
...
|
@@ -120,7 +124,7 @@ public class BuyerOrderController { |
|
|
* @param uid
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(params = "method=app.buyer.confirm")
|
|
|
@RequestMapping(params = "method=ufo.buyer.confirm")
|
|
|
@ResponseBody
|
|
|
public ApiResponse confirm(@RequestParam("orderCode") long orderCode,
|
|
|
@RequestParam("uid") int uid) {
|
...
|
...
|
|