充值记录
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
package com.czg.controller.admin;
|
||||
|
||||
import com.czg.market.dto.MkShopRechargeDTO;
|
||||
import com.czg.market.entity.MkShopRechargeFlow;
|
||||
import com.czg.market.service.MkRechargeFlowService;
|
||||
import com.czg.market.service.MkShopRechargeService;
|
||||
import com.czg.market.vo.MkShopRechargeVO;
|
||||
import com.czg.resp.CzgResult;
|
||||
import com.czg.sa.StpKit;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -19,6 +22,8 @@ import org.springframework.web.bind.annotation.*;
|
||||
public class ShopRechargeController {
|
||||
@Resource
|
||||
private MkShopRechargeService shopRechargeService;
|
||||
@Resource
|
||||
private MkRechargeFlowService rechargeFlowService;
|
||||
|
||||
/**
|
||||
* 配置信息获取
|
||||
@@ -46,5 +51,16 @@ public class ShopRechargeController {
|
||||
return CzgResult.success(shopRechargeService.edit(StpKit.USER.getShopId(), shopRechargeDTO));
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取充值记录列表
|
||||
* @param startTime 开始时间 闭区间
|
||||
* @param endTime 结束时间 闭区间
|
||||
* @param type 类型
|
||||
*/
|
||||
@GetMapping("/record")
|
||||
public Page<MkShopRechargeFlow> getRecord(@RequestParam(required = false) String startTime, @RequestParam(required = false) String endTime, @RequestParam(required = false) String type) {
|
||||
return rechargeFlowService.pageInfo(StpKit.USER.getShopId(), startTime, endTime, type);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user