diff --git a/spzx-service/service-order/src/main/java/com/atguigu/spzx/order/controller/OrderController.java b/spzx-service/service-order/src/main/java/com/atguigu/spzx/order/controller/OrderController.java index cea5f66d1ef9d88ef48b6d08b0203d515a12127b..4ef7f81cc0801dfa70f3111eaca0ddd20278a656 100644 --- a/spzx-service/service-order/src/main/java/com/atguigu/spzx/order/controller/OrderController.java +++ b/spzx-service/service-order/src/main/java/com/atguigu/spzx/order/controller/OrderController.java @@ -6,10 +6,7 @@ import com.atguigu.spzx.order.service.OrderService; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; import jakarta.annotation.Resource; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; @RestController @RequestMapping("/api/order/orderInfo") @@ -18,6 +15,11 @@ public class OrderController { @Resource OrderService orderService; + @Operation(summary = "提交订单") + @PostMapping("/auth/submitOrder") + public Result submitOrder(){ + return Result.ok(); + } @Operation(summary = "确认下单:商品详情页立即购买按钮") @GetMapping("/auth/buy/{skuId}") public Result buy(@PathVariable("skuId")Long skuId){