|
|
@@ -0,0 +1,32 @@
|
|
|
+package com.sqx.modules.lovers.controller;
|
|
|
+
|
|
|
+import com.sqx.common.utils.PageUtils;
|
|
|
+import com.sqx.common.utils.Result;
|
|
|
+import com.sqx.modules.app.annotation.Login;
|
|
|
+import com.sqx.modules.lovers.dto.LoversSetOrderQueryDTO;
|
|
|
+import com.sqx.modules.lovers.service.LoversSetOrderInfoService;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import javax.validation.Valid;
|
|
|
+
|
|
|
+@Api(tags = {"管理端-情侣套餐订单"})
|
|
|
+@RestController
|
|
|
+@RequestMapping("lovers-set-order")
|
|
|
+@RequiredArgsConstructor
|
|
|
+public class LoversSetOrderController {
|
|
|
+
|
|
|
+ private final LoversSetOrderInfoService loversSetOrderInfoService;
|
|
|
+
|
|
|
+ @Login
|
|
|
+ @ApiOperation("用户端订单分页")
|
|
|
+ @GetMapping("pages")
|
|
|
+ public Result pages(@Valid LoversSetOrderQueryDTO queryDTO){
|
|
|
+ PageUtils pageUtils = loversSetOrderInfoService.orderPage(queryDTO);
|
|
|
+ return Result.success().put("data", pageUtils);
|
|
|
+ }
|
|
|
+}
|