|
@@ -7,14 +7,16 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
import org.jeecg.modules.app.service.IOrderService;
|
|
|
import org.jeecg.modules.app.vo.OrderVO;
|
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.util.Date;
|
|
|
-import java.util.List;
|
|
|
|
|
|
@Slf4j
|
|
|
-@Tag(name = "订单相关接口")
|
|
|
+@Tag(name = "APP订单相关接口")
|
|
|
@RestController
|
|
|
@RequestMapping("/app/order")
|
|
|
public class OrderController {
|
|
@@ -69,8 +71,8 @@ public class OrderController {
|
|
|
* @return OrderVO.PreviewOrderPlaceGymnasiumChartered {@link OrderVO.PreviewOrderPlaceGymnasiumChartered}
|
|
|
**/
|
|
|
@Operation(summary="体育馆包场-预览页")
|
|
|
- @PostMapping("/previewOrderPlaceGymnasiumChartered")
|
|
|
- public Result<OrderVO.PreviewOrderPlaceGymnasiumChartered> previewOrderPlaceGymnasiumChartered(@RequestParam("courseId") @Schema(description = "课程ID")List<String> rulesId){
|
|
|
+ @GetMapping("/previewOrderPlaceGymnasiumChartered")
|
|
|
+ public Result<OrderVO.PreviewOrderPlaceGymnasiumChartered> previewOrderPlaceGymnasiumChartered(@RequestParam("rulesId") @Schema(description = "场次IDS多个逗号拼接")String rulesId){
|
|
|
return Result.ok(appOrderService.previewOrderPlaceGymnasiumChartered(rulesId));
|
|
|
}
|
|
|
|
|
@@ -82,7 +84,7 @@ public class OrderController {
|
|
|
* @return OrderVO.createOrderPlaceSchool
|
|
|
**/
|
|
|
@Operation(summary="学校场地预约-创建")
|
|
|
- @PostMapping("/createOrderPlaceSchool")
|
|
|
+ @GetMapping("/createOrderPlaceSchool")
|
|
|
public Result<OrderVO.createOrderPlaceSchool> createOrderPlaceSchool(@RequestParam("rulesId") @Schema(description = "场次IDS多个逗号拼接")String rulesId,
|
|
|
@RequestParam("userIds") @Schema(description = "使用用户IDS多个逗号拼接")String userIds){
|
|
|
return Result.ok(appOrderService.createOrderPlaceSchool(rulesId, userIds));
|