diff --git a/wallet-common/build.gradle b/wallet-common/build.gradle
index a16cce5..8320e10 100644
--- a/wallet-common/build.gradle
+++ b/wallet-common/build.gradle
@@ -1,6 +1,10 @@
+apply plugin: 'java-library'
+
bootJar.enabled = false
jar.enabled = true
dependencies {
- implementation project(":wallet-entity")
+ api project(":wallet-entity")
+ implementation 'commons-codec:commons-codec:1.16.0'
+ implementation 'org.bitcoinj:bitcoinj-core:0.14.7'
}
diff --git a/wallet-common/src/main/kotlin/com/wallet/biz/config/RestTemplateConfig.kt b/wallet-common/src/main/kotlin/com/wallet/biz/config/RestTemplateConfig.kt
index bfef636..67da6a3 100644
--- a/wallet-common/src/main/kotlin/com/wallet/biz/config/RestTemplateConfig.kt
+++ b/wallet-common/src/main/kotlin/com/wallet/biz/config/RestTemplateConfig.kt
@@ -14,8 +14,8 @@ open class RestTemplateConfig {
@Bean
open fun rest(restTemplateBuilder: RestTemplateBuilder): RestTemplate {
val restTemplate = restTemplateBuilder
- .connectTimeout(Duration.ofSeconds(10))
- .readTimeout(Duration.ofSeconds(30))
+ .setConnectTimeout(Duration.ofSeconds(10))
+ .setReadTimeout(Duration.ofSeconds(30))
.build()
restTemplate.messageConverters.add(OctetStreamJsonConverter())
return restTemplate
diff --git a/wallet-common/src/main/kotlin/com/wallet/biz/mq/PushComponent.kt b/wallet-common/src/main/kotlin/com/wallet/biz/mq/PushComponent.kt
index 36be1b6..69bf0eb 100644
--- a/wallet-common/src/main/kotlin/com/wallet/biz/mq/PushComponent.kt
+++ b/wallet-common/src/main/kotlin/com/wallet/biz/mq/PushComponent.kt
@@ -21,7 +21,7 @@ class PushComponent : LogService() {
private fun getEncryptionKey(): String {
return pushEncryptionKey
- ?: throw BizException(ErrorCode.ERROR_PARAM, "Push encryption key not configured (wallet.crypto.push-key)")
+ ?: throw BizException(ErrorCode.ERROR_PARAM.code, "Push encryption key not configured (wallet.crypto.push-key)")
}
fun sendMsgToMq(msg: String) {
diff --git a/wallet-common/src/main/kotlin/com/wallet/biz/rpc/TrxApi.kt b/wallet-common/src/main/kotlin/com/wallet/biz/rpc/TrxApi.kt
index bf59f2b..8c23764 100644
--- a/wallet-common/src/main/kotlin/com/wallet/biz/rpc/TrxApi.kt
+++ b/wallet-common/src/main/kotlin/com/wallet/biz/rpc/TrxApi.kt
@@ -64,7 +64,15 @@ class TrxApi(val url: String, val restTemplate: RestTemplate) {
val sBytes = signature.s.toByteArray()
System.arraycopy(rBytes, Math.max(0, rBytes.size - 32), sigBytes, Math.max(0, 32 - rBytes.size), Math.min(32, rBytes.size))
System.arraycopy(sBytes, Math.max(0, sBytes.size - 32), sigBytes, Math.max(0, 64 - sBytes.size), Math.min(32, sBytes.size))
- sigBytes[64] = ecKey.findRecoveryId(org.bitcoinj.core.Sha256Hash.wrap(txIdBytes), signature).toByte()
+ var recId = -1
+ for (i in 0..3) {
+ val recovered = org.bitcoinj.core.ECKey.recoverFromSignature(i, signature, org.bitcoinj.core.Sha256Hash.wrap(txIdBytes), false)
+ if (recovered != null && recovered.pubKeyPoint == ecKey.pubKeyPoint) {
+ recId = i
+ break
+ }
+ }
+ sigBytes[64] = recId.toByte()
val signatureHex = NumericUtil.bytesToHex(sigBytes)
diff --git a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/AddressAdminServiceImpl.kt b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/AddressAdminServiceImpl.kt
index e781a4d..4ed8914 100644
--- a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/AddressAdminServiceImpl.kt
+++ b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/AddressAdminServiceImpl.kt
@@ -37,17 +37,17 @@ class AddressAdminServiceImpl: AddressAdminService {
}
override fun del(id: Long) {
- addressAdminRepository.delete(id)
+ addressAdminRepository.deleteById(id)
}
override fun update(addressAdmin: AddressAdmin) {
- val e = addressAdminRepository.findOne(addressAdmin.id)
+ val e = addressAdminRepository.findById(addressAdmin.id).orElse(null)
BasicUtils.copyPropertiesIgnoreNull(addressAdmin, e)
addressAdminRepository.save(e)
}
override fun getById(id:Long): AddressAdmin? {
- return addressAdminRepository.findOne(id)
+ return addressAdminRepository.findById(id).orElse(null)
}
override fun save(addressAdmin:AddressAdmin): AddressAdmin {
diff --git a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/AddressServiceImpl.kt b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/AddressServiceImpl.kt
index 3005840..fdafd94 100644
--- a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/AddressServiceImpl.kt
+++ b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/AddressServiceImpl.kt
@@ -12,7 +12,7 @@ import org.springframework.beans.factory.annotation.Autowired
class AddressServiceImpl: AddressService {
override fun delete(id: Long) {
- addressRepository.delete(id)
+ addressRepository.deleteById(id)
}
override fun findAllBitcoinFork(): List
{
@@ -47,7 +47,7 @@ class AddressServiceImpl: AddressService {
}
override fun saveAll(list: List): List {
- return addressRepository.save(list)
+ return addressRepository.saveAll(list)
}
override fun findByType(chainType: String?): List {
@@ -62,7 +62,7 @@ class AddressServiceImpl: AddressService {
}
override fun getById(id:Long): Address? {
- return addressRepository.findOne(id)
+ return addressRepository.findById(id).orElse(null)
}
override fun save(address:Address): Address {
diff --git a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/BlockHeightServiceImpl.kt b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/BlockHeightServiceImpl.kt
index ea06185..9dbe6e1 100644
--- a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/BlockHeightServiceImpl.kt
+++ b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/BlockHeightServiceImpl.kt
@@ -13,7 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired
class BlockHeightServiceImpl: BlockHeightService {
override fun getById(id:Long): BlockHeight? {
- return blockHeightRepository.findOne(id)
+ return blockHeightRepository.findById(id).orElse(null)
}
override fun save(blockHeight:BlockHeight): BlockHeight {
@@ -33,13 +33,13 @@ class BlockHeightServiceImpl: BlockHeightService {
}
override fun update(blockHeight: BlockHeight) {
- val e=blockHeightRepository.findOne(blockHeight.id)
+ val e=blockHeightRepository.findById(blockHeight.id).orElse(null)
BasicUtils.copyPropertiesIgnoreNull(blockHeight,e)
blockHeightRepository.save(e)
}
override fun del(id: Long) {
- blockHeightRepository.delete(id)
+ blockHeightRepository.deleteById(id)
}
@Autowired lateinit var blockHeightRepository: BlockHeightRepository
diff --git a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/ConfigServiceImpl.kt b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/ConfigServiceImpl.kt
index 7a175d4..2471126 100644
--- a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/ConfigServiceImpl.kt
+++ b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/ConfigServiceImpl.kt
@@ -13,7 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired
class ConfigServiceImpl: ConfigService {
override fun getById(id:Long): Config? {
- return configRepository.findOne(id)
+ return configRepository.findById(id).orElse(null)
}
override fun save(config:Config): Config {
@@ -33,13 +33,13 @@ class ConfigServiceImpl: ConfigService {
}
override fun update(config: Config) {
- val e=configRepository.findOne(config.id)
+ val e=configRepository.findById(config.id).orElse(null)
BasicUtils.copyPropertiesIgnoreNull(config,e)
configRepository.save(e)
}
override fun del(id: Long) {
- configRepository.delete(id)
+ configRepository.deleteById(id)
}
@Autowired lateinit var configRepository: ConfigRepository
diff --git a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/DepositServiceImpl.kt b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/DepositServiceImpl.kt
index dfc1fc5..77022fb 100644
--- a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/DepositServiceImpl.kt
+++ b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/DepositServiceImpl.kt
@@ -19,7 +19,7 @@ class DepositServiceImpl: DepositService {
}
override fun saveAll(list: List): List {
- return depositRepository.save(list)
+ return depositRepository.saveAll(list)
}
override fun getByIsUpload(isUpload: Int): List {
@@ -53,11 +53,11 @@ class DepositServiceImpl: DepositService {
pre=pre.and(QDeposit.deposit.tokenSymbol.eq(entity.tokenSymbol))
if(entity.chainType!=null)
pre=pre.and(QDeposit.deposit.chainType.eq(entity.chainType))
- return depositRepository.findAll(pre, PageRequest(find.page, find.size))
+ return depositRepository.findAll(pre, PageRequest.of(find.page, find.size))
}
override fun getById(id:Long): Deposit? {
- return depositRepository.findOne(id)
+ return depositRepository.findById(id).orElse(null)
}
override fun save(deposit:Deposit): Deposit {
diff --git a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/TokenServiceImpl.kt b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/TokenServiceImpl.kt
index 6be2b70..8ca564f 100644
--- a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/TokenServiceImpl.kt
+++ b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/TokenServiceImpl.kt
@@ -25,17 +25,17 @@ class TokenServiceImpl: TokenService {
}
override fun update(token: Token) {
- val e=tokenRepository.findOne(token.id)
+ val e=tokenRepository.findById(token.id).orElse(null)
BasicUtils.copyPropertiesIgnoreNull(token,e)
tokenRepository.save(e)
}
override fun del(id: Long) {
- return tokenRepository.delete(id)
+ return tokenRepository.deleteById(id)
}
override fun getById(id:Long): Token? {
- return tokenRepository.findOne(id)
+ return tokenRepository.findById(id).orElse(null)
}
override fun save(token:Token): Token {
diff --git a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/UserServiceImpl.kt b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/UserServiceImpl.kt
index 1c7f869..64c8964 100644
--- a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/UserServiceImpl.kt
+++ b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/UserServiceImpl.kt
@@ -11,7 +11,7 @@ import org.springframework.beans.factory.annotation.Autowired
class UserServiceImpl: UserService {
override fun getById(id:Long): User? {
- return userRepository.findOne(id)
+ return userRepository.findById(id).orElse(null)
}
override fun save(user: User): User {
diff --git a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/WaitCollectServiceImpl.kt b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/WaitCollectServiceImpl.kt
index 978d8cc..1337fe9 100644
--- a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/WaitCollectServiceImpl.kt
+++ b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/WaitCollectServiceImpl.kt
@@ -16,7 +16,7 @@ class WaitCollectServiceImpl: WaitCollectService {
if (waitCollect.chainType == null) return
val list = getByBean(waitCollect)
- waitCollectRepository.delete(list)
+ waitCollectRepository.deleteAll(list)
}
override fun getByBean(waitCollect: WaitCollect): List {
@@ -34,7 +34,7 @@ class WaitCollectServiceImpl: WaitCollectService {
}
override fun getById(id:Long): WaitCollect? {
- return waitCollectRepository.findOne(id)
+ return waitCollectRepository.findById(id).orElse(null)
}
override fun save(waitCollect:WaitCollect): WaitCollect {
diff --git a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/WaitImportServiceImpl.kt b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/WaitImportServiceImpl.kt
index eb2c9a8..34a9a22 100644
--- a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/WaitImportServiceImpl.kt
+++ b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/WaitImportServiceImpl.kt
@@ -10,7 +10,7 @@ import org.springframework.beans.factory.annotation.Autowired
class WaitImportServiceImpl: WaitImportService {
override fun getById(id:Long): WaitImport? {
- return waitImportRepository.findOne(id)
+ return waitImportRepository.findById(id).orElse(null)
}
override fun save(waitImport:WaitImport): WaitImport {
@@ -18,7 +18,7 @@ class WaitImportServiceImpl: WaitImportService {
}
override fun saveAll(waitImportList: List): List {
- return waitImportRepository.save(waitImportList)
+ return waitImportRepository.saveAll(waitImportList)
}
override fun findAll(): List {
@@ -26,7 +26,7 @@ class WaitImportServiceImpl: WaitImportService {
}
override fun deleteById(id: Long) {
- waitImportRepository.delete(id)
+ waitImportRepository.deleteById(id)
}
@Autowired lateinit var waitImportRepository: WaitImportRepository
diff --git a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/WhiteServiceImpl.kt b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/WhiteServiceImpl.kt
index 6617731..22c537b 100644
--- a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/WhiteServiceImpl.kt
+++ b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/WhiteServiceImpl.kt
@@ -15,7 +15,7 @@ import org.springframework.data.domain.PageRequest
class WhiteServiceImpl: WhiteService {
override fun getById(id:Long): White? {
- return whiteRepository.findOne(id)
+ return whiteRepository.findById(id).orElse(null)
}
override fun save(white:White): White {
@@ -27,7 +27,7 @@ class WhiteServiceImpl: WhiteService {
val entity = find.entity
if (entity.ip != null)
pre = pre.and(QWhite.white.ip.eq(entity.ip).or(QWhite.white.ip.eq("0.0.0.0")))
- return whiteRepository.findAll(pre, PageRequest(find.page, find.size))
+ return whiteRepository.findAll(pre, PageRequest.of(find.page, find.size))
}
override fun findAll(): List {
@@ -35,13 +35,13 @@ class WhiteServiceImpl: WhiteService {
}
override fun update(white: White) {
- val e=whiteRepository.findOne(white.id)
+ val e=whiteRepository.findById(white.id).orElse(null)
BasicUtils.copyPropertiesIgnoreNull(white,e)
whiteRepository.save(e)
}
override fun del(id: Long) {
- whiteRepository.delete(id)
+ whiteRepository.deleteById(id)
}
@Autowired lateinit var whiteRepository: WhiteRepository
diff --git a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/WithdrawServiceImpl.kt b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/WithdrawServiceImpl.kt
index 93fd69b..6b1784f 100644
--- a/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/WithdrawServiceImpl.kt
+++ b/wallet-common/src/main/kotlin/com/wallet/biz/service/impl/WithdrawServiceImpl.kt
@@ -23,7 +23,7 @@ class WithdrawServiceImpl : WithdrawService {
pre = pre.and(QWithdraw.withdraw.withdrawType.eq(entity.withdrawType))
val sort = QSort(QWithdraw.withdraw.createdAt.desc())
- return withdrawRepository.findAll(pre, PageRequest(find.page, find.size, sort))
+ return withdrawRepository.findAll(pre, PageRequest.of(find.page, find.size, sort))
}
override fun findAll(): List {
@@ -40,7 +40,7 @@ class WithdrawServiceImpl : WithdrawService {
}
override fun getById(id: Long): Withdraw? {
- return withdrawRepository.findOne(id)
+ return withdrawRepository.findById(id).orElse(null)
}
override fun save(withdraw: Withdraw): Withdraw {
diff --git a/wallet-common/src/main/kotlin/com/wallet/biz/xservice/impl/WalletXServiceImpl.kt b/wallet-common/src/main/kotlin/com/wallet/biz/xservice/impl/WalletXServiceImpl.kt
index 62f8848..2e7b2b3 100644
--- a/wallet-common/src/main/kotlin/com/wallet/biz/xservice/impl/WalletXServiceImpl.kt
+++ b/wallet-common/src/main/kotlin/com/wallet/biz/xservice/impl/WalletXServiceImpl.kt
@@ -71,7 +71,7 @@ open class WalletXServiceImpl : WalletXService, LogService() {
txLogVo.type = TxLogDict.DEPOSIT
txLogVo
}
- PageImpl(pageList.toList(), PageRequest(page, size), pageList.totalElements)
+ PageImpl(pageList.toList(), PageRequest.of(page, size), pageList.totalElements)
}
TxLogDict.WITHDRAW -> {
val find = PageEntity(Withdraw())
@@ -90,7 +90,7 @@ open class WalletXServiceImpl : WalletXService, LogService() {
txLogVo.type = TxLogDict.WITHDRAW
txLogVo
}
- PageImpl(pageList.toList(), PageRequest(page, size), pageList.totalElements)
+ PageImpl(pageList.toList(), PageRequest.of(page, size), pageList.totalElements)
}
TxLogDict.COLLECT -> {
val find = PageEntity(Withdraw())
@@ -109,7 +109,7 @@ open class WalletXServiceImpl : WalletXService, LogService() {
txLogVo.type = TxLogDict.WITHDRAW
txLogVo
}
- PageImpl(pageList.toList(), PageRequest(page, size), pageList.totalElements)
+ PageImpl(pageList.toList(), PageRequest.of(page, size), pageList.totalElements)
}
TxLogDict.SEND_FEE -> {
val find = PageEntity(Withdraw())
@@ -128,7 +128,7 @@ open class WalletXServiceImpl : WalletXService, LogService() {
txLogVo.type = TxLogDict.WITHDRAW
txLogVo
}
- PageImpl(pageList.toList(), PageRequest(page, size), pageList.totalElements)
+ PageImpl(pageList.toList(), PageRequest.of(page, size), pageList.totalElements)
}
else -> throw BizException(ErrorCode.ERROR_PARAM)
}
diff --git a/wallet-entity/build.gradle b/wallet-entity/build.gradle
index d3e7a03..c97e45c 100644
--- a/wallet-entity/build.gradle
+++ b/wallet-entity/build.gradle
@@ -1,9 +1,12 @@
+apply plugin: 'java-library'
+
bootJar.enabled = false
jar.enabled = true
dependencies {
- implementation "com.querydsl:querydsl-jpa:$querydslVersion:jakarta"
- implementation "com.querydsl:querydsl-sql-spring:$querydslVersion"
- implementation "com.querydsl:querydsl-sql:$querydslVersion"
- implementation "com.querydsl:querydsl-core:$querydslVersion"
+ api "com.querydsl:querydsl-jpa:$querydslVersion:jakarta"
+ api "com.querydsl:querydsl-sql-spring:$querydslVersion"
+ api "com.querydsl:querydsl-sql:$querydslVersion"
+ api "com.querydsl:querydsl-core:$querydslVersion"
+ api 'io.github.qyvlik:io.eblock.eos-eos4j:1.0.1'
}
diff --git a/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/GetTransactionPo.kt b/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/GetTransactionPo.kt
index 65195bd..871df72 100644
--- a/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/GetTransactionPo.kt
+++ b/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/GetTransactionPo.kt
@@ -1,11 +1,10 @@
package com.wallet.biz.domain.po
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
/**
* Created by pie on 2020/7/8 04: 34.
*/
-@ApiModel
+@Schema
class GetTransactionPo {
var chain:String?=null
@@ -16,7 +15,7 @@ class GetTransactionPo {
var type:Int?=null
- @ApiModelProperty("合约地址")
+ @Schema(description = "合约地址")
var tokenAddress:String?=null
var limit:Int?=null
diff --git a/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/LoginPo.kt b/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/LoginPo.kt
index 76a0d52..569f70d 100644
--- a/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/LoginPo.kt
+++ b/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/LoginPo.kt
@@ -1,12 +1,11 @@
package com.wallet.biz.domain.po
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
-@ApiModel
+@Schema
class LoginPo{
- @ApiModelProperty("用户名")
+ @Schema(description = "用户名")
var customerName:String?=null
- @ApiModelProperty("密码")
+ @Schema(description = "密码")
var password:String?=null
}
\ No newline at end of file
diff --git a/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/RegisteredPo.kt b/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/RegisteredPo.kt
index 7d883b4..2c8847a 100644
--- a/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/RegisteredPo.kt
+++ b/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/RegisteredPo.kt
@@ -1,27 +1,26 @@
package com.wallet.biz.domain.po
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
/**
* Created by pie on 2019-03-08 17: 17.
*/
-@ApiModel
+@Schema
class RegisteredPo{
- @ApiModelProperty("手机号(即用户名)",required = true)
+ @Schema(description = "手机号(即用户名)", requiredMode = Schema.RequiredMode.REQUIRED)
var customerName:String?=null
- @ApiModelProperty("登录密码",required = true)
+ @Schema(description = "登录密码", requiredMode = Schema.RequiredMode.REQUIRED)
var password:String?=null
- @ApiModelProperty("sms验证码",required = true)
+ @Schema(description = "sms验证码", requiredMode = Schema.RequiredMode.REQUIRED)
var smsCode:Int?=null
- @ApiModelProperty("邀请码",required = true)
+ @Schema(description = "邀请码", requiredMode = Schema.RequiredMode.REQUIRED)
var inviteCode:String?=null
- @ApiModelProperty("交易密码",required = true)
+ @Schema(description = "交易密码", requiredMode = Schema.RequiredMode.REQUIRED)
var tradePassword:String?=null
}
\ No newline at end of file
diff --git a/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/SendPo.kt b/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/SendPo.kt
index a83e7e9..d5608c5 100644
--- a/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/SendPo.kt
+++ b/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/SendPo.kt
@@ -1,29 +1,28 @@
package com.wallet.biz.domain.po
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
import java.math.BigDecimal
/**
* Created by pie on 2019-04-12 09: 50.
*/
-@ApiModel
+@Schema
class SendPo{
- @ApiModelProperty("发送者地址")
+ @Schema(description = "发送者地址")
var from:String?=null
- @ApiModelProperty("发送者地址code")
+ @Schema(description = "发送者地址code")
var fromWalletCode:String?=null
- @ApiModelProperty("接收者地址")
+ @Schema(description = "接收者地址")
var to:String?=null
- @ApiModelProperty("数量")
+ @Schema(description = "数量")
var amount:BigDecimal?=null
- @ApiModelProperty("币种类型 例: ETHEREUM")
+ @Schema(description = "币种类型 例: ETHEREUM")
var chain:String?=null
- @ApiModelProperty("代币类型 例: USDT")
+ @Schema(description = "代币类型 例: USDT")
var symbol :String?=null
- @ApiModelProperty("手续费价格 gas")
+ @Schema(description = "手续费价格 gas")
var gas:Int?=null
var data:String?=null
diff --git a/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/SignUsdtPo.kt b/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/SignUsdtPo.kt
index c980bae..9cc2695 100644
--- a/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/SignUsdtPo.kt
+++ b/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/SignUsdtPo.kt
@@ -1,6 +1,5 @@
package com.wallet.biz.domain.po
-import io.eblock.eos4j.api.vo.SignParam
import org.consenlabs.tokencore.wallet.transaction.BitcoinTransaction
import java.math.BigDecimal
import java.util.ArrayList
diff --git a/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/TransferPo.kt b/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/TransferPo.kt
index 55a7d2b..d90f9be 100644
--- a/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/TransferPo.kt
+++ b/wallet-entity/src/main/kotlin/com/wallet/biz/domain/po/TransferPo.kt
@@ -1,12 +1,12 @@
package com.wallet.biz.domain.po
-import io.swagger.annotations.ApiModel
+import io.swagger.v3.oas.annotations.media.Schema
import java.math.BigDecimal
/**
* Created by pie on 2019-03-08 17: 03.
*/
-@ApiModel
+@Schema
class TransferPo{
var chainType:String?=null
diff --git a/wallet-entity/src/main/kotlin/com/wallet/biz/domain/vo/CustomerInfoVo.kt b/wallet-entity/src/main/kotlin/com/wallet/biz/domain/vo/CustomerInfoVo.kt
index 8b3664e..ab9a365 100644
--- a/wallet-entity/src/main/kotlin/com/wallet/biz/domain/vo/CustomerInfoVo.kt
+++ b/wallet-entity/src/main/kotlin/com/wallet/biz/domain/vo/CustomerInfoVo.kt
@@ -1,18 +1,17 @@
package com.wallet.biz.domain.vo
-import io.swagger.annotations.ApiModel
-import io.swagger.annotations.ApiModelProperty
+import io.swagger.v3.oas.annotations.media.Schema
/**
* Created by pie on 2019-03-05 11: 55.
*/
-@ApiModel
+@Schema
class CustomerInfoVo {
- @ApiModelProperty("用户名")
+ @Schema(description = "用户名")
var customerName: String? = null
- @ApiModelProperty("vip等级")
+ @Schema(description = "vip等级")
var vipLevel:Int?=null
diff --git a/wallet-entity/src/main/kotlin/com/wallet/biz/domain/vo/DepositEosVo.kt b/wallet-entity/src/main/kotlin/com/wallet/biz/domain/vo/DepositEosVo.kt
index 58e79aa..1978169 100644
--- a/wallet-entity/src/main/kotlin/com/wallet/biz/domain/vo/DepositEosVo.kt
+++ b/wallet-entity/src/main/kotlin/com/wallet/biz/domain/vo/DepositEosVo.kt
@@ -1,11 +1,11 @@
package com.wallet.biz.domain.vo
-import io.swagger.annotations.ApiModel
+import io.swagger.v3.oas.annotations.media.Schema
/**
* Created by pie on 2019-03-08 17: 00.
*/
-@ApiModel
+@Schema
class DepositEosVo{
var depositAddress:String?=null
diff --git a/wallet-entity/src/main/kotlin/com/wallet/biz/domain/vo/TransferRecordVo.kt b/wallet-entity/src/main/kotlin/com/wallet/biz/domain/vo/TransferRecordVo.kt
index 7e20efa..a1a9a5f 100644
--- a/wallet-entity/src/main/kotlin/com/wallet/biz/domain/vo/TransferRecordVo.kt
+++ b/wallet-entity/src/main/kotlin/com/wallet/biz/domain/vo/TransferRecordVo.kt
@@ -1,11 +1,11 @@
package com.wallet.biz.domain.vo
-import io.swagger.annotations.ApiModel
+import io.swagger.v3.oas.annotations.media.Schema
/**
* Created by pie on 2019-03-08 16: 55.
*/
-@ApiModel
+@Schema
class TransferRecordVo{
}
\ No newline at end of file
diff --git a/wallet-entity/src/main/kotlin/com/wallet/repository/AddressAdminRepository.kt b/wallet-entity/src/main/kotlin/com/wallet/repository/AddressAdminRepository.kt
index 069f655..0c3a9c9 100644
--- a/wallet-entity/src/main/kotlin/com/wallet/repository/AddressAdminRepository.kt
+++ b/wallet-entity/src/main/kotlin/com/wallet/repository/AddressAdminRepository.kt
@@ -2,7 +2,7 @@ package com.wallet.repository
import com.wallet.entity.domain.AddressAdmin
import org.springframework.data.jpa.repository.JpaRepository
-import org.springframework.data.querydsl.QueryDslPredicateExecutor
+import org.springframework.data.querydsl.QuerydslPredicateExecutor
interface AddressAdminRepository : JpaRepository,
- QueryDslPredicateExecutor
+ QuerydslPredicateExecutor
diff --git a/wallet-entity/src/main/kotlin/com/wallet/repository/AddressRepository.kt b/wallet-entity/src/main/kotlin/com/wallet/repository/AddressRepository.kt
index aeb8951..ba2bb18 100644
--- a/wallet-entity/src/main/kotlin/com/wallet/repository/AddressRepository.kt
+++ b/wallet-entity/src/main/kotlin/com/wallet/repository/AddressRepository.kt
@@ -2,7 +2,7 @@ package com.wallet.repository
import com.wallet.entity.domain.Address
import org.springframework.data.jpa.repository.JpaRepository
-import org.springframework.data.querydsl.QueryDslPredicateExecutor
+import org.springframework.data.querydsl.QuerydslPredicateExecutor
interface AddressRepository : JpaRepository,
- QueryDslPredicateExecutor
+ QuerydslPredicateExecutor
diff --git a/wallet-entity/src/main/kotlin/com/wallet/repository/BlockHeightRepository.kt b/wallet-entity/src/main/kotlin/com/wallet/repository/BlockHeightRepository.kt
index 5482f61..fff4361 100644
--- a/wallet-entity/src/main/kotlin/com/wallet/repository/BlockHeightRepository.kt
+++ b/wallet-entity/src/main/kotlin/com/wallet/repository/BlockHeightRepository.kt
@@ -2,7 +2,7 @@ package com.wallet.repository
import com.wallet.entity.domain.BlockHeight
import org.springframework.data.jpa.repository.JpaRepository
-import org.springframework.data.querydsl.QueryDslPredicateExecutor
+import org.springframework.data.querydsl.QuerydslPredicateExecutor
interface BlockHeightRepository : JpaRepository,
- QueryDslPredicateExecutor
+ QuerydslPredicateExecutor
diff --git a/wallet-entity/src/main/kotlin/com/wallet/repository/ConfigRepository.kt b/wallet-entity/src/main/kotlin/com/wallet/repository/ConfigRepository.kt
index 0878cbc..45d61c3 100644
--- a/wallet-entity/src/main/kotlin/com/wallet/repository/ConfigRepository.kt
+++ b/wallet-entity/src/main/kotlin/com/wallet/repository/ConfigRepository.kt
@@ -2,7 +2,7 @@ package com.wallet.repository
import com.wallet.entity.domain.Config
import org.springframework.data.jpa.repository.JpaRepository
-import org.springframework.data.querydsl.QueryDslPredicateExecutor
+import org.springframework.data.querydsl.QuerydslPredicateExecutor
interface ConfigRepository : JpaRepository,
- QueryDslPredicateExecutor
+ QuerydslPredicateExecutor
diff --git a/wallet-entity/src/main/kotlin/com/wallet/repository/DepositRepository.kt b/wallet-entity/src/main/kotlin/com/wallet/repository/DepositRepository.kt
index ff21d0e..1818342 100644
--- a/wallet-entity/src/main/kotlin/com/wallet/repository/DepositRepository.kt
+++ b/wallet-entity/src/main/kotlin/com/wallet/repository/DepositRepository.kt
@@ -2,7 +2,7 @@ package com.wallet.repository
import com.wallet.entity.domain.Deposit
import org.springframework.data.jpa.repository.JpaRepository
-import org.springframework.data.querydsl.QueryDslPredicateExecutor
+import org.springframework.data.querydsl.QuerydslPredicateExecutor
interface DepositRepository : JpaRepository,
- QueryDslPredicateExecutor
+ QuerydslPredicateExecutor
diff --git a/wallet-entity/src/main/kotlin/com/wallet/repository/TokenRepository.kt b/wallet-entity/src/main/kotlin/com/wallet/repository/TokenRepository.kt
index cd7ef57..ed21c67 100644
--- a/wallet-entity/src/main/kotlin/com/wallet/repository/TokenRepository.kt
+++ b/wallet-entity/src/main/kotlin/com/wallet/repository/TokenRepository.kt
@@ -2,7 +2,7 @@ package com.wallet.repository
import com.wallet.entity.domain.Token
import org.springframework.data.jpa.repository.JpaRepository
-import org.springframework.data.querydsl.QueryDslPredicateExecutor
+import org.springframework.data.querydsl.QuerydslPredicateExecutor
interface TokenRepository : JpaRepository,
- QueryDslPredicateExecutor
+ QuerydslPredicateExecutor
diff --git a/wallet-entity/src/main/kotlin/com/wallet/repository/UserRepository.kt b/wallet-entity/src/main/kotlin/com/wallet/repository/UserRepository.kt
index d682756..5243d7c 100644
--- a/wallet-entity/src/main/kotlin/com/wallet/repository/UserRepository.kt
+++ b/wallet-entity/src/main/kotlin/com/wallet/repository/UserRepository.kt
@@ -2,7 +2,7 @@ package com.wallet.repository
import com.wallet.entity.domain.User
import org.springframework.data.jpa.repository.JpaRepository
-import org.springframework.data.querydsl.QueryDslPredicateExecutor
+import org.springframework.data.querydsl.QuerydslPredicateExecutor
interface UserRepository : JpaRepository,
- QueryDslPredicateExecutor
+ QuerydslPredicateExecutor
diff --git a/wallet-entity/src/main/kotlin/com/wallet/repository/WaitCollectRepository.kt b/wallet-entity/src/main/kotlin/com/wallet/repository/WaitCollectRepository.kt
index ef145d6..209289a 100644
--- a/wallet-entity/src/main/kotlin/com/wallet/repository/WaitCollectRepository.kt
+++ b/wallet-entity/src/main/kotlin/com/wallet/repository/WaitCollectRepository.kt
@@ -2,7 +2,7 @@ package com.wallet.repository
import com.wallet.entity.domain.WaitCollect
import org.springframework.data.jpa.repository.JpaRepository
-import org.springframework.data.querydsl.QueryDslPredicateExecutor
+import org.springframework.data.querydsl.QuerydslPredicateExecutor
interface WaitCollectRepository : JpaRepository,
- QueryDslPredicateExecutor
+ QuerydslPredicateExecutor
diff --git a/wallet-entity/src/main/kotlin/com/wallet/repository/WaitImportRepository.kt b/wallet-entity/src/main/kotlin/com/wallet/repository/WaitImportRepository.kt
index 1e5e45d..a27cf45 100644
--- a/wallet-entity/src/main/kotlin/com/wallet/repository/WaitImportRepository.kt
+++ b/wallet-entity/src/main/kotlin/com/wallet/repository/WaitImportRepository.kt
@@ -2,7 +2,7 @@ package com.wallet.repository
import com.wallet.entity.domain.WaitImport
import org.springframework.data.jpa.repository.JpaRepository
-import org.springframework.data.querydsl.QueryDslPredicateExecutor
+import org.springframework.data.querydsl.QuerydslPredicateExecutor
interface WaitImportRepository : JpaRepository,
- QueryDslPredicateExecutor
+ QuerydslPredicateExecutor
diff --git a/wallet-entity/src/main/kotlin/com/wallet/repository/WhiteRepository.kt b/wallet-entity/src/main/kotlin/com/wallet/repository/WhiteRepository.kt
index 5eb93c7..dd9645e 100644
--- a/wallet-entity/src/main/kotlin/com/wallet/repository/WhiteRepository.kt
+++ b/wallet-entity/src/main/kotlin/com/wallet/repository/WhiteRepository.kt
@@ -2,7 +2,7 @@ package com.wallet.repository
import com.wallet.entity.domain.White
import org.springframework.data.jpa.repository.JpaRepository
-import org.springframework.data.querydsl.QueryDslPredicateExecutor
+import org.springframework.data.querydsl.QuerydslPredicateExecutor
interface WhiteRepository : JpaRepository,
- QueryDslPredicateExecutor
+ QuerydslPredicateExecutor
diff --git a/wallet-entity/src/main/kotlin/com/wallet/repository/WithdrawRepository.kt b/wallet-entity/src/main/kotlin/com/wallet/repository/WithdrawRepository.kt
index 47448a8..9f753c1 100644
--- a/wallet-entity/src/main/kotlin/com/wallet/repository/WithdrawRepository.kt
+++ b/wallet-entity/src/main/kotlin/com/wallet/repository/WithdrawRepository.kt
@@ -2,7 +2,7 @@ package com.wallet.repository
import com.wallet.entity.domain.Withdraw
import org.springframework.data.jpa.repository.JpaRepository
-import org.springframework.data.querydsl.QueryDslPredicateExecutor
+import org.springframework.data.querydsl.QuerydslPredicateExecutor
interface WithdrawRepository : JpaRepository,
- QueryDslPredicateExecutor
+ QuerydslPredicateExecutor
diff --git a/wallet-hsm/build.gradle b/wallet-hsm/build.gradle
index 5c5514e..3ebbf3e 100644
--- a/wallet-hsm/build.gradle
+++ b/wallet-hsm/build.gradle
@@ -8,6 +8,7 @@ mainClassName = "com.wallet.HsmApplicationKt"
dependencies {
implementation project(":wallet-entity")
+ implementation 'io.github.qyvlik:io.eblock.eos-eos4j:1.0.1'
}
jib {