|
|
@@ -1,35 +0,0 @@
|
|
|
-package com.kym.miniapp.controller;
|
|
|
-
|
|
|
-import com.kym.common.R;
|
|
|
-import com.kym.entity.miniapp.queryParams.OrderQueryParams;
|
|
|
-import com.kym.service.miniapp.ChargeOrderService;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.ModelAttribute;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
-
|
|
|
-/**
|
|
|
- * @author skyline
|
|
|
- * @description 充电订单
|
|
|
- * @date 2023-10-20 14:39
|
|
|
- */
|
|
|
-@RestController
|
|
|
-@RequestMapping("/chargeOrder")
|
|
|
-public class ChargeOrderController {
|
|
|
-
|
|
|
- private final ChargeOrderService chargeOrderService;
|
|
|
-
|
|
|
- public ChargeOrderController(ChargeOrderService chargeOrderService) {
|
|
|
- this.chargeOrderService = chargeOrderService;
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
- * 用户订单列表
|
|
|
- *
|
|
|
- * @return
|
|
|
- */
|
|
|
- @GetMapping
|
|
|
- R<?> listUserChargeOrders(@ModelAttribute OrderQueryParams params) {
|
|
|
- return R.success(chargeOrderService.listUserChargeOrders(params));
|
|
|
- }
|
|
|
-}
|