|
|
|
@ -3,7 +3,6 @@ package com.blockchain.server.yyyf.controller; |
|
|
|
|
import com.blockchain.common.base.dto.ResultDTO; |
|
|
|
|
import com.blockchain.server.yyyf.controller.api.YyyfMoneyApi; |
|
|
|
|
import com.blockchain.server.yyyf.dto.TransactResultDto; |
|
|
|
|
import com.blockchain.server.yyyf.entity.YyyfMoney; |
|
|
|
|
import com.blockchain.server.yyyf.service.YyyfMoneyService; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
@ -19,7 +18,7 @@ import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
import java.math.BigDecimal; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @author Mr.Xu |
|
|
|
|
* @author |
|
|
|
|
* @version 1.0 |
|
|
|
|
* @className MoneyController |
|
|
|
|
* @description |
|
|
|
@ -46,4 +45,32 @@ public class YyyfMoneyController { |
|
|
|
|
|
|
|
|
|
return ResultDTO.requstSuccess(transactResultDto); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@PostMapping("/resetDigitWallet") |
|
|
|
|
@ApiOperation(value = YyyfMoneyApi.ResetDigitWallet.METHOD_NAME, |
|
|
|
|
notes = YyyfMoneyApi.ResetDigitWallet.METHOD_NOTE) |
|
|
|
|
public ResultDTO<Boolean> resetDigitWallet(@ApiParam(YyyfMoneyApi.ResetDigitWallet.METHOD_ASSESS_USER_ID) @RequestParam(name = "assessUserId",required =true) String assessUserId, |
|
|
|
|
@ApiParam(YyyfMoneyApi.ResetDigitWallet.METHOD_COIN_NAME) @RequestParam(name = "coinName",required =true)String coinName, |
|
|
|
|
@ApiParam(YyyfMoneyApi.ResetDigitWallet.METHOD_BALANCE) @RequestParam(name = "balance",required =true) BigDecimal balance) { |
|
|
|
|
|
|
|
|
|
boolean result=this.yyyfMoneyService.resetDigitWallet(assessUserId,coinName,balance); |
|
|
|
|
|
|
|
|
|
return ResultDTO.requstSuccess(result); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@PostMapping("/resetWallet") |
|
|
|
|
@ApiOperation(value = YyyfMoneyApi.ResetWallet.METHOD_NAME, |
|
|
|
|
notes = YyyfMoneyApi.ResetWallet.METHOD_NOTE) |
|
|
|
|
public ResultDTO<Boolean> resetWallet(@ApiParam(YyyfMoneyApi.ResetWallet.METHOD_ASSESS_USER_ID) @RequestParam(name = "assessUserId",required =true) String assessUserId, |
|
|
|
|
@ApiParam(YyyfMoneyApi.ResetWallet.METHOD_COIN_NAME) @RequestParam(name = "coinName",required =true)String coinName, |
|
|
|
|
@ApiParam(YyyfMoneyApi.ResetWallet.METHOD_BALANCE) @RequestParam(name = "balance",required =true) BigDecimal balance, |
|
|
|
|
@ApiParam(YyyfMoneyApi.ResetWallet.METHOD_PAY_TYPE) @RequestParam(name = "payType",required =true) String payType, |
|
|
|
|
@ApiParam(YyyfMoneyApi.ResetWallet.METHOD_PAY_MONENY) @RequestParam(name = "payMoney",required =true) BigDecimal payMoney) { |
|
|
|
|
|
|
|
|
|
boolean result=this.yyyfMoneyService.resetWallet(assessUserId,coinName,balance,payType,payMoney); |
|
|
|
|
|
|
|
|
|
return ResultDTO.requstSuccess(result); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|