|
|
@@ -0,0 +1,66 @@
|
|
|
+package com.kym.admin.controller;
|
|
|
+
|
|
|
+import com.kym.common.R;
|
|
|
+import com.kym.common.annotation.SysLog;
|
|
|
+import com.kym.entity.admin.queryParams.CustomChargeOrdersQueryParam;
|
|
|
+import com.kym.entity.admin.queryParams.CommonQueryParam;
|
|
|
+import com.kym.service.miniapp.ChargeOrderService;
|
|
|
+import com.kym.service.miniapp.UserService;
|
|
|
+import com.kym.service.miniapp.WalletDetailService;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 用户相关信息
|
|
|
+ *
|
|
|
+ * @author skyline
|
|
|
+ * @since 2023-08-18
|
|
|
+ */
|
|
|
+@RestController
|
|
|
+@RequestMapping("/custom")
|
|
|
+public class CustomController {
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private UserService customUserService;
|
|
|
+ @Autowired
|
|
|
+ private ChargeOrderService customChargeOrders;
|
|
|
+ @Autowired
|
|
|
+ private WalletDetailService customWalletDetailService;
|
|
|
+
|
|
|
+ // TODO: 2023-08-18 用户信息列表(基本信息,余额)
|
|
|
+
|
|
|
+
|
|
|
+ @SysLog("查询用户列表")
|
|
|
+ @GetMapping("/listUser")
|
|
|
+ public R listUser(CommonQueryParam params,
|
|
|
+ @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
|
|
|
+ @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize) {
|
|
|
+ return R.success(customUserService.listCustomUser(params, pageNum, pageSize));
|
|
|
+ }
|
|
|
+
|
|
|
+ @SysLog("查询用户充电订单列表")
|
|
|
+ @GetMapping("/listUserChargeOrders")
|
|
|
+ public R listUserChargeOrders(CustomChargeOrdersQueryParam params,
|
|
|
+ @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
|
|
|
+ @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize) {
|
|
|
+ return R.success(customChargeOrders.customChargeOrders(params, pageNum, pageSize));
|
|
|
+ }
|
|
|
+
|
|
|
+ @SysLog("订单详情")
|
|
|
+ @GetMapping("/orderDetail/{startChargeSeq}")
|
|
|
+ public R orderDetail(@PathVariable("startChargeSeq") String startChargeSeq) {
|
|
|
+ return R.success(customChargeOrders.orderDetail(startChargeSeq));
|
|
|
+ }
|
|
|
+
|
|
|
+ @SysLog("充值记录列表")
|
|
|
+ @GetMapping("/listRecharge")
|
|
|
+ public R listRecharge(CommonQueryParam params,
|
|
|
+ @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
|
|
|
+ @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize){
|
|
|
+ return R.success(customWalletDetailService.listRecharge(params,pageNum,pageSize));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+}
|