fix:钱包pc接口补充

This commit is contained in:
wangff
2025-11-20 10:15:34 +08:00
parent 27d8f9c6fa
commit 8f1182f3ee

View File

@@ -1,17 +1,18 @@
package com.cool.store.controller.webb; package com.cool.store.controller.webb;
import com.cool.store.dto.wallet.AccountInfoDTO; import com.cool.store.dto.wallet.AccountInfoDTO;
import com.cool.store.dto.wallet.BillDetailDTO;
import com.cool.store.dto.wallet.TradeRecordDTO; import com.cool.store.dto.wallet.TradeRecordDTO;
import com.cool.store.request.wallet.AccountQueryRequest; import com.cool.store.request.wallet.*;
import com.cool.store.request.wallet.CoolAccountBatchQueryRequest;
import com.cool.store.request.wallet.CoolTradeRecodePageRequest;
import com.cool.store.response.ResponseResult; import com.cool.store.response.ResponseResult;
import com.cool.store.service.wallet.WalletService; import com.cool.store.service.wallet.WalletService;
import com.cool.store.vo.wallet.AccountBillPageVO;
import com.cool.store.vo.wallet.AccountInfoVO; import com.cool.store.vo.wallet.AccountInfoVO;
import com.github.pagehelper.PageInfo; import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import java.util.List; import java.util.List;
@@ -37,6 +38,12 @@ public class WalletController {
return ResponseResult.success(walletService.getAccountList(request)); return ResponseResult.success(walletService.getAccountList(request));
} }
@ApiOperation("账户详情")
@GetMapping("/accountInfo")
public ResponseResult<AccountInfoVO> getAccountInfo(AccountQueryRequest request) {
return ResponseResult.success(walletService.getAccountInfo(request));
}
@ApiOperation("分页查询所有门店账户列表 支持条件查询") @ApiOperation("分页查询所有门店账户列表 支持条件查询")
@PostMapping("/getAllAccountList") @PostMapping("/getAllAccountList")
public ResponseResult<PageInfo<AccountInfoDTO>> getAllAccountList(@RequestBody CoolAccountBatchQueryRequest request) { public ResponseResult<PageInfo<AccountInfoDTO>> getAllAccountList(@RequestBody CoolAccountBatchQueryRequest request) {
@@ -49,4 +56,15 @@ public class WalletController {
return ResponseResult.success(walletService.getTradeRecordList(request)); return ResponseResult.success(walletService.getTradeRecordList(request));
} }
@ApiOperation("账户流水")
@PostMapping("/billPage")
public ResponseResult<AccountBillPageVO> getBillPage(@RequestBody @Validated AccountBillQueryRequest request) {
return ResponseResult.success(walletService.getBillPage(request));
}
@ApiOperation("交易流水详情")
@GetMapping("/billDetail")
public ResponseResult<BillDetailDTO> getBillDetail(BillDetailRequest request) {
return ResponseResult.success(walletService.getBillDetail(request));
}
} }