feat:PC接口
This commit is contained in:
@@ -1,17 +1,20 @@
|
||||
package com.cool.store.controller.webb;
|
||||
|
||||
import com.cool.store.dto.wallet.AccountInfoDTO;
|
||||
import com.cool.store.dto.wallet.TradeRecordDTO;
|
||||
import com.cool.store.request.wallet.CoolAccountBatchQueryRequest;
|
||||
import com.cool.store.request.wallet.CoolTradeRecodePageRequest;
|
||||
import com.cool.store.request.wallet.StoreShopRequest;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.wallet.WalletService;
|
||||
import com.cool.store.vo.wallet.AccountInfoVO;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
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.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -34,4 +37,17 @@ public class WalletController {
|
||||
public ResponseResult<List<AccountInfoVO>> getAccountList(StoreShopRequest request) {
|
||||
return ResponseResult.success(walletService.getAccountList(request));
|
||||
}
|
||||
|
||||
@ApiOperation("分页查询所有门店账户列表 支持条件查询")
|
||||
@PostMapping("/getAllAccountList")
|
||||
public ResponseResult<PageInfo<AccountInfoDTO>> getAllAccountList(@RequestBody CoolAccountBatchQueryRequest request) {
|
||||
return ResponseResult.success(walletService.getAllAccountList(request));
|
||||
}
|
||||
|
||||
@ApiOperation("分页查询所有流水列表 支持条件查询")
|
||||
@PostMapping("/getTradeRecordList")
|
||||
public ResponseResult<PageInfo<TradeRecordDTO>> getTradeRecordList(@RequestBody CoolTradeRecodePageRequest request) {
|
||||
return ResponseResult.success(walletService.getTradeRecordList(request));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user