fix:小程序支付密码修改、充值、充值列表、提现接口
This commit is contained in:
@@ -3,10 +3,7 @@ package com.cool.store.controller.webc;
|
||||
import com.cool.store.request.wallet.*;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.wallet.WalletService;
|
||||
import com.cool.store.vo.wallet.AccountAuthenticationVO;
|
||||
import com.cool.store.vo.wallet.AccountBillListVO;
|
||||
import com.cool.store.vo.wallet.AccountInfoVO;
|
||||
import com.cool.store.vo.wallet.BankVO;
|
||||
import com.cool.store.vo.wallet.*;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
@@ -14,6 +11,7 @@ import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -66,4 +64,34 @@ public class MiniWalletController {
|
||||
public ResponseResult<PageInfo<AccountBillListVO>> getBillPage(@RequestBody AccountBillQueryRequest request) {
|
||||
return ResponseResult.success(walletService.getBillPage(request));
|
||||
}
|
||||
|
||||
@ApiOperation("密码维护")
|
||||
@PostMapping("/passwordUpdate")
|
||||
public ResponseResult<Boolean> passwordUpdate(@RequestBody @Validated AccountPasswordRequest request) {
|
||||
return ResponseResult.success(walletService.passwordUpdate(request));
|
||||
}
|
||||
|
||||
@ApiOperation("账户充值")
|
||||
@PostMapping("/payment")
|
||||
public ResponseResult<AccountPaymentVO> payment(@RequestBody @Validated AccountPaymentRequest request) {
|
||||
return ResponseResult.success(walletService.payment(request));
|
||||
}
|
||||
|
||||
@ApiOperation("未支付充值订单分页查询")
|
||||
@GetMapping("/nonPaymentPage")
|
||||
public ResponseResult<PageInfo<WalletPaymentOrderVO>> nonPaymentPage(LargePaymentQueryRequest request) {
|
||||
return ResponseResult.success(walletService.nonPaymentOrderPage(request));
|
||||
}
|
||||
|
||||
@ApiOperation("根据预支付id查询收款账户详情")
|
||||
@GetMapping("/paymentDetail")
|
||||
public ResponseResult<AccountPaymentVO> paymentDetail(@NotBlank(message = "预支付id不能为空") String paymentId) {
|
||||
return ResponseResult.success(walletService.paymentDetail(paymentId));
|
||||
}
|
||||
|
||||
@ApiOperation("提现")
|
||||
@PostMapping("/withDrawer")
|
||||
public ResponseResult<Boolean> withDrawer(@RequestBody @Validated WalletWithDrawerRequest request) {
|
||||
return ResponseResult.success(walletService.withDrawer(request));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user