记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
fb5162a9
Commit
fb5162a9
authored
Mar 29, 2022
by
anjiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并发行与购买
parent
9df0e6b5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
9 deletions
+34
-9
GalaxyNftPublishAndBuyResultQueryReqDto.java
...xy/dto/param/GalaxyNftPublishAndBuyResultQueryReqDto.java
+5
-0
GalaxyNftPublishAndBuyResultQueryRespDto.java
...y/dto/param/GalaxyNftPublishAndBuyResultQueryRespDto.java
+25
-6
ConsumerJsonNftPublishAndBuyConfig.java
...mer/galaxy/config/ConsumerJsonNftPublishAndBuyConfig.java
+1
-1
ConsumerJsonNftPublishAndBuyProcessor.java
...vice/processor/ConsumerJsonNftPublishAndBuyProcessor.java
+3
-2
No files found.
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyNftPublishAndBuyResultQueryReqDto.java
View file @
fb5162a9
...
@@ -21,6 +21,11 @@ import java.io.Serializable;
...
@@ -21,6 +21,11 @@ import java.io.Serializable;
@ApiModel
(
value
=
"GalaxyNftPublishResultQueryReqDto"
,
description
=
"NFT发行结果查询"
)
@ApiModel
(
value
=
"GalaxyNftPublishResultQueryReqDto"
,
description
=
"NFT发行结果查询"
)
@Data
@Data
public
class
GalaxyNftPublishAndBuyResultQueryReqDto
extends
GalaxyBaseReqDto
implements
Serializable
,
Cloneable
{
public
class
GalaxyNftPublishAndBuyResultQueryReqDto
extends
GalaxyBaseReqDto
implements
Serializable
,
Cloneable
{
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"用户ID[30]"
)
@NotBlank
(
message
=
"用户ID不能为空!"
)
@Size
(
min
=
1
,
max
=
30
,
message
=
"用户ID限制2-30位且不能包含特殊字符"
)
private
String
userId
;
/**
/**
* nftOrderPayId
* nftOrderPayId
*/
*/
...
...
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyNftPublishAndBuyResultQueryRespDto.java
View file @
fb5162a9
...
@@ -19,12 +19,31 @@ import java.io.Serializable;
...
@@ -19,12 +19,31 @@ import java.io.Serializable;
@ApiModel
(
value
=
"GalaxyNftPublishResultQueryRespDto"
,
description
=
"NFT发行结果查询"
)
@ApiModel
(
value
=
"GalaxyNftPublishResultQueryRespDto"
,
description
=
"NFT发行结果查询"
)
@Data
@Data
public
class
GalaxyNftPublishAndBuyResultQueryRespDto
implements
Serializable
,
Cloneable
{
public
class
GalaxyNftPublishAndBuyResultQueryRespDto
implements
Serializable
,
Cloneable
{
/**
* nftId格式,发行人公钥hash_系列_系列索引id,申请多少个,最后一段计算出来即可,
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"用户ID[30]"
)
* 比如申请10个,nftIdBegin位xx_xx_1,那么就可以推导出x_xx_1到x_xx_10
private
String
userId
;
*/
@ApiModelProperty
(
position
=
3
,
required
=
true
,
value
=
"nftId格式"
)
@ApiModelProperty
(
position
=
2
,
required
=
true
,
value
=
"nft订单唯一id"
)
private
String
nftIdBegin
;
private
String
nftOrderPayId
;
@ApiModelProperty
(
position
=
3
,
required
=
true
,
value
=
"nft发行时间"
)
private
String
nftPublishChainTimestamp
;
@ApiModelProperty
(
position
=
4
,
required
=
true
,
value
=
"nft发行状态"
)
private
String
nftPublishStatus
;
@ApiModelProperty
(
position
=
5
,
required
=
true
,
value
=
"nft发行交易hash"
)
private
String
nftPublishTxHash
;
@ApiModelProperty
(
position
=
6
,
required
=
true
,
value
=
"nft购买时间"
)
private
String
nftBuyChainTimestamp
;
@ApiModelProperty
(
position
=
7
,
required
=
true
,
value
=
"nft购买状态"
)
private
String
nftBuyStatus
;
@ApiModelProperty
(
position
=
8
,
required
=
true
,
value
=
"nft购买交易hash"
)
private
String
nftBuyTxHash
;
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
...
...
liquidnet-bus-service/liquidnet-service-consumer-all/liquidnet-service-consumer-galaxy/src/main/java/com/liquidnet/service/consumer/galaxy/config/ConsumerJsonNftPublishAndBuyConfig.java
View file @
fb5162a9
...
@@ -36,7 +36,7 @@ public class ConsumerJsonNftPublishAndBuyConfig extends RedisStreamConfig {
...
@@ -36,7 +36,7 @@ public class ConsumerJsonNftPublishAndBuyConfig extends RedisStreamConfig {
StringRedisTemplate
stringRedisTemplate
;
StringRedisTemplate
stringRedisTemplate
;
@Bean
@Bean
public
List
<
Subscription
>
subscription
SqlNftOrderInfo
(
RedisConnectionFactory
factory
)
{
public
List
<
Subscription
>
subscription
JsonNftPublishAndBuy
(
RedisConnectionFactory
factory
)
{
List
<
Subscription
>
subscriptionList
=
new
ArrayList
<>();
List
<
Subscription
>
subscriptionList
=
new
ArrayList
<>();
MQConst
.
GalaxyQueue
stream
=
MQConst
.
GalaxyQueue
.
JSON_NFT_PUBLISH_AND_BUY
;
MQConst
.
GalaxyQueue
stream
=
MQConst
.
GalaxyQueue
.
JSON_NFT_PUBLISH_AND_BUY
;
...
...
liquidnet-bus-service/liquidnet-service-consumer-all/liquidnet-service-consumer-galaxy/src/main/java/com/liquidnet/service/consumer/galaxy/service/processor/ConsumerJsonNftPublishAndBuyProcessor.java
View file @
fb5162a9
...
@@ -19,9 +19,9 @@ import com.liquidnet.service.galaxy.dto.bo.GalaxyUserInfoBo;
...
@@ -19,9 +19,9 @@ import com.liquidnet.service.galaxy.dto.bo.GalaxyUserInfoBo;
import
com.liquidnet.service.galaxy.dto.param.GalaxyNftBuyRespDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyNftBuyRespDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyNftPublishAndBuyReqDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyNftPublishAndBuyReqDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyNftPublishAndBuyRespDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyNftPublishAndBuyRespDto
;
import
lombok.Data
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Component
;
import
java.io.UnsupportedEncodingException
;
import
java.io.UnsupportedEncodingException
;
import
java.math.BigDecimal
;
import
java.math.BigDecimal
;
...
@@ -36,7 +36,7 @@ import java.math.BigDecimal;
...
@@ -36,7 +36,7 @@ import java.math.BigDecimal;
* @date 2022/3/29 17:04
* @date 2022/3/29 17:04
*/
*/
@Slf4j
@Slf4j
@
Data
@
Component
public
class
ConsumerJsonNftPublishAndBuyProcessor
{
public
class
ConsumerJsonNftPublishAndBuyProcessor
{
@Autowired
@Autowired
private
ZxlnftSdkUtil
zxlnftSdkUtil
;
private
ZxlnftSdkUtil
zxlnftSdkUtil
;
...
@@ -49,6 +49,7 @@ public class ConsumerJsonNftPublishAndBuyProcessor {
...
@@ -49,6 +49,7 @@ public class ConsumerJsonNftPublishAndBuyProcessor {
@Autowired
@Autowired
private
DataUtils
dataUtils
;
private
DataUtils
dataUtils
;
public
ResponseDto
<
GalaxyNftPublishAndBuyRespDto
>
nftPublishAndBuy
(
GalaxyNftPublishAndBuyReqDto
reqDto
)
{
public
ResponseDto
<
GalaxyNftPublishAndBuyRespDto
>
nftPublishAndBuy
(
GalaxyNftPublishAndBuyReqDto
reqDto
)
{
//获取订单信息
//获取订单信息
GalaxyNftOrderBo
nftOrderBo
=
dataUtils
.
getNftOrderBo
(
reqDto
.
getRouterType
(),
reqDto
.
getNftOrderPayId
());
GalaxyNftOrderBo
nftOrderBo
=
dataUtils
.
getNftOrderBo
(
reqDto
.
getRouterType
(),
reqDto
.
getNftOrderPayId
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment