|
@@ -6,7 +6,6 @@ import com.github.microservice.auth.client.content.ResultContent;
|
|
|
import com.github.microservice.auth.security.annotations.ResourceAuth;
|
|
|
import com.github.microservice.auth.security.helper.AuthHelper;
|
|
|
import com.github.microservice.auth.security.type.AuthType;
|
|
|
-import com.zhongshu.payment.client.model.Pages;
|
|
|
import com.zhongshu.payment.client.model.order.*;
|
|
|
import com.zhongshu.payment.client.model.order.v2.CreateOrder2Model;
|
|
|
import com.zhongshu.payment.client.model.order.v2.OrderResult2Model;
|
|
@@ -19,8 +18,6 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.log4j.Log4j2;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.data.domain.Page;
|
|
|
-import org.springframework.data.domain.PageRequest;
|
|
|
-import org.springframework.data.domain.Pageable;
|
|
|
import org.springframework.http.MediaType;
|
|
|
import org.springframework.util.Assert;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -147,6 +144,7 @@ public class OrderController {
|
|
|
|
|
|
return orderServiceImp.goodsDetail(id);
|
|
|
}
|
|
|
+
|
|
|
@ApiOperation("订单商品详细")
|
|
|
@RequestMapping(value = "user/orderDetail/{orderNo}", method = RequestMethod.GET)
|
|
|
@ResourceAuth(value = AuthConstant.User, type = AuthType.User)
|
|
@@ -168,6 +166,14 @@ public class OrderController {
|
|
|
return orderServiceImp.shopSearch(seachOrderModel);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("商家_订单详情")
|
|
|
+ @RequestMapping(value = "shop/orderDetail/{orderNo}", method = RequestMethod.GET)
|
|
|
+ @ResourceAuth(value = "admin", type = AuthType.Enterprise)
|
|
|
+ @ResourceAuth(value = "admin", type = AuthType.Project)
|
|
|
+ public ResultContent shopOrderDetail(@PathVariable("orderNo") String orderNo) {
|
|
|
+ return orderServiceImp.shopOrderDetail(orderNo);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
// 平台接口
|
|
|
|
|
@@ -179,6 +185,15 @@ public class OrderController {
|
|
|
return orderServiceImp.adminSearch(seachOrderModel);
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("平台_订单详情")
|
|
|
+ @RequestMapping(value = "platform/orderDetail/{orderNo}", method = RequestMethod.GET)
|
|
|
+ @ResourceAuth(value = AuthConstant.SuperAdmin, type = AuthType.Platform)
|
|
|
+ @ResourceAuth(value = "admin", type = AuthType.Enterprise)
|
|
|
+ @ResourceAuth(value = "admin", type = AuthType.Project)
|
|
|
+ public ResultContent adminOrderDetail(@PathVariable("orderNo") String orderNo) {
|
|
|
+
|
|
|
+ return orderServiceImp.adminOrderDetail(orderNo);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
}
|