记得上下班打卡 | 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
a547f876
Commit
a547f876
authored
Apr 08, 2022
by
anjiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交galaxy查询相关功能
parent
9d55c9cc
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
44 additions
and
86 deletions
+44
-86
NftInfoDto.java
...ain/java/com/liquidnet/service/galaxy/dto/NftInfoDto.java
+21
-0
GalaxyQueryNftInfoReqDto.java
...et/service/galaxy/dto/param/GalaxyQueryNftInfoReqDto.java
+1
-1
GalaxyQueryNftInfoRespDto.java
...t/service/galaxy/dto/param/GalaxyQueryNftInfoRespDto.java
+2
-84
GalaxyQueryNftTradeListReqDto.java
...rvice/galaxy/dto/param/GalaxyQueryNftTradeListReqDto.java
+1
-1
GalaxyQueryNftTradeListRespDto.java
...vice/galaxy/dto/param/GalaxyQueryNftTradeListRespDto.java
+8
-0
GalaxyQuerySeriesInfoRespDto.java
...ervice/galaxy/dto/param/GalaxyQuerySeriesInfoRespDto.java
+10
-0
GalaxyQueryUserSeriesNftListRespDto.java
...galaxy/dto/param/GalaxyQueryUserSeriesNftListRespDto.java
+1
-0
No files found.
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/NftInfoDto.java
View file @
a547f876
package
com
.
liquidnet
.
service
.
galaxy
.
dto
;
package
com
.
liquidnet
.
service
.
galaxy
.
dto
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
/**
/**
...
@@ -16,81 +17,101 @@ public class NftInfoDto {
...
@@ -16,81 +17,101 @@ public class NftInfoDto {
/**
/**
* nftId
* nftId
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"nftId"
)
private
String
nftId
;
private
String
nftId
;
/**
/**
* 所有者地址
* 所有者地址
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"所有者地址"
)
private
String
ownerAddr
;
private
String
ownerAddr
;
/**
/**
* 作者名,中文+英文(数字或符号为非法输入) 不超过30个字符
* 作者名,中文+英文(数字或符号为非法输入) 不超过30个字符
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"作者名"
)
private
String
author
;
private
String
author
;
/**
/**
* 作品名字,中英文数字均可,不超过256个字符
* 作品名字,中英文数字均可,不超过256个字符
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"作品名字"
)
private
String
name
;
private
String
name
;
/**
/**
* 作品url,不超过2048个字符 疑问:应该是发行的1024吧?
* 作品url,不超过2048个字符 疑问:应该是发行的1024吧?
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"作品url"
)
private
String
url
;
private
String
url
;
/**
/**
* 预览图url
* 预览图url
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"预览图url"
)
private
String
displayUrl
;
private
String
displayUrl
;
/**
/**
* 作品hash
* 作品hash
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"作品hash"
)
private
String
hash
;
private
String
hash
;
/**
/**
* 此owner获得此nft的时间戳
* 此owner获得此nft的时间戳
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"此owner获得此nft的时间戳"
)
private
Long
ownerGainedTime
;
private
Long
ownerGainedTime
;
/**
/**
* 作品简介,500个字符以内
* 作品简介,500个字符以内
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"作品简介"
)
private
String
desc
;
private
String
desc
;
/**
/**
* 作品标签,【文创】,游戏,动漫,30个字符以内
* 作品标签,【文创】,游戏,动漫,30个字符以内
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"作品标签"
)
private
String
flag
;
private
String
flag
;
/**
/**
* 作品系列
* 作品系列
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"作品系列"
)
private
String
seriesName
;
private
String
seriesName
;
/**
/**
* 系列ID
* 系列ID
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"系列ID"
)
private
String
seriesId
;
private
String
seriesId
;
/**
/**
* 系列NFT总数
* 系列NFT总数
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"系列NFT总数"
)
private
Long
seriesTotalNum
;
private
Long
seriesTotalNum
;
/**
/**
* 扩展字段,用户自定义,长度不超过1024个字符
* 扩展字段,用户自定义,长度不超过1024个字符
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"扩展字段"
)
private
String
metaData
;
private
String
metaData
;
/**
/**
* 发行者地址
* 发行者地址
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"发行者地址"
)
private
String
publisherAddr
;
private
String
publisherAddr
;
/**
/**
* 发行平台地址
* 发行平台地址
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"发行平台地址"
)
private
String
publishPlatformAddr
;
private
String
publishPlatformAddr
;
/**
/**
* 系列偏移id
* 系列偏移id
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"系列偏移id"
)
private
Integer
seriesIndexId
;
private
Integer
seriesIndexId
;
/**
/**
* 发行时交易hash
* 发行时交易hash
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"发行时交易hash"
)
private
String
publishTxHash
;
private
String
publishTxHash
;
/**
/**
* 1:可售 2:不可售
* 1:可售 2:不可售
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"1:可售 2:不可售"
)
private
Integer
sellStatus
;
private
Integer
sellStatus
;
/**
/**
* 卖多少积分,可售状态下才有意义
* 卖多少积分,可售状态下才有意义
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"卖多少积分"
)
private
Long
sellCount
;
private
Long
sellCount
;
}
}
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQueryNftInfoReqDto.java
View file @
a547f876
...
@@ -20,7 +20,7 @@ import java.io.Serializable;
...
@@ -20,7 +20,7 @@ import java.io.Serializable;
@ApiModel
(
value
=
"GalaxyQueryNftInfoReqDto"
,
description
=
"NFT信息查询"
)
@ApiModel
(
value
=
"GalaxyQueryNftInfoReqDto"
,
description
=
"NFT信息查询"
)
@Data
@Data
public
class
GalaxyQueryNftInfoReqDto
extends
GalaxyBaseReqDto
implements
Serializable
,
Cloneable
{
public
class
GalaxyQueryNftInfoReqDto
extends
GalaxyBaseReqDto
implements
Serializable
,
Cloneable
{
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"
nftOrderPayId
"
)
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"
NFT购买订单ID
"
)
@NotBlank
@NotBlank
private
String
nftOrderPayId
;
private
String
nftOrderPayId
;
...
...
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQueryNftInfoRespDto.java
View file @
a547f876
package
com
.
liquidnet
.
service
.
galaxy
.
dto
.
param
;
package
com
.
liquidnet
.
service
.
galaxy
.
dto
.
param
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
com.liquidnet.service.galaxy.dto.NftInfoDto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
/**
* @author AnJiabin <anjiabin@zhengzai.tv>
* @author AnJiabin <anjiabin@zhengzai.tv>
* @version V1.0
* @version V1.0
...
@@ -17,88 +16,7 @@ import java.io.Serializable;
...
@@ -17,88 +16,7 @@ import java.io.Serializable;
*/
*/
@ApiModel
(
value
=
"GalaxyQueryNftInfoRespDto"
,
description
=
"NFT信息查询"
)
@ApiModel
(
value
=
"GalaxyQueryNftInfoRespDto"
,
description
=
"NFT信息查询"
)
@Data
@Data
public
class
GalaxyQueryNftInfoRespDto
implements
Serializable
,
Cloneable
{
public
class
GalaxyQueryNftInfoRespDto
extends
NftInfoDto
{
/**
* nftId
*/
private
String
nftId
;
/**
* 所有者地址
*/
private
String
ownerAddr
;
/**
* 作者名,中文+英文(数字或符号为非法输入) 不超过30个字符
*/
private
String
author
;
/**
* 作品名字,中英文数字均可,不超过256个字符
*/
private
String
name
;
/**
* 作品url,不超过2048个字符 疑问:应该是发行的1024吧?
*/
private
String
url
;
/**
* 预览图url
*/
private
String
displayUrl
;
/**
* 作品hash
*/
private
String
hash
;
/**
* 此owner获得此nft的时间戳
*/
private
Long
ownerGainedTime
;
/**
* 作品简介,500个字符以内
*/
private
String
desc
;
/**
* 作品标签,【文创】,游戏,动漫,30个字符以内
*/
private
String
flag
;
/**
* 作品系列
*/
private
String
seriesName
;
/**
* 系列ID
*/
private
String
seriesId
;
/**
* 系列NFT总数
*/
private
Long
seriesTotalNum
;
/**
* 扩展字段,用户自定义,长度不超过1024个字符
*/
private
String
metaData
;
/**
* 发行者地址
*/
private
String
publisherAddr
;
/**
* 发行平台地址
*/
private
String
publishPlatformAddr
;
/**
* 系列偏移id
*/
private
Integer
seriesIndexId
;
/**
* 发行时交易hash
*/
private
String
publishTxHash
;
/**
* 1:可售 2:不可售
*/
private
Integer
sellStatus
;
/**
* 卖多少积分,可售状态下才有意义
*/
private
Long
sellCount
;
@Override
@Override
public
String
toString
(){
public
String
toString
(){
...
...
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQueryNftTradeListReqDto.java
View file @
a547f876
...
@@ -20,7 +20,7 @@ import java.io.Serializable;
...
@@ -20,7 +20,7 @@ import java.io.Serializable;
@ApiModel
(
value
=
"GalaxyQueryNftTradeListReqDto"
,
description
=
"单个NFT交易信息查询"
)
@ApiModel
(
value
=
"GalaxyQueryNftTradeListReqDto"
,
description
=
"单个NFT交易信息查询"
)
@Data
@Data
public
class
GalaxyQueryNftTradeListReqDto
extends
GalaxyBaseReqDto
implements
Serializable
,
Cloneable
{
public
class
GalaxyQueryNftTradeListReqDto
extends
GalaxyBaseReqDto
implements
Serializable
,
Cloneable
{
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"
nftOrderPayId
"
)
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"
NFT购买订单ID
"
)
@NotBlank
@NotBlank
private
String
nftOrderPayId
;
private
String
nftOrderPayId
;
...
...
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQueryNftTradeListRespDto.java
View file @
a547f876
...
@@ -2,6 +2,7 @@ package com.liquidnet.service.galaxy.dto.param;
...
@@ -2,6 +2,7 @@ package com.liquidnet.service.galaxy.dto.param;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -33,30 +34,37 @@ public class GalaxyQueryNftTradeListRespDto implements Serializable,Cloneable {
...
@@ -33,30 +34,37 @@ public class GalaxyQueryNftTradeListRespDto implements Serializable,Cloneable {
/**
/**
* 持有者地址
* 持有者地址
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"持有者地址"
)
private
String
fromAddr
;
private
String
fromAddr
;
/**
/**
* 接收方地址
* 接收方地址
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"接收方地址"
)
private
String
toAddr
;
private
String
toAddr
;
/**
/**
* 成交积分
* 成交积分
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"成交积分"
)
private
Long
dealCount
;
private
Long
dealCount
;
/**
/**
* 链上交易hash
* 链上交易hash
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"链上交易hash"
)
private
String
txHash
;
private
String
txHash
;
/**
/**
* 积分接收地址
* 积分接收地址
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"积分接收地址"
)
private
String
pointReceiverAddr
;
private
String
pointReceiverAddr
;
/**
/**
* 链上成交时间
* 链上成交时间
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"链上成交时间"
)
private
Long
dealTimestamp
;
private
Long
dealTimestamp
;
/**
/**
* 交易类别, 1:发行 2:购买 3:转移 4:设置价格 5:设置状态
* 交易类别, 1:发行 2:购买 3:转移 4:设置价格 5:设置状态
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"交易类别, 1:发行 2:购买 3:转移 4:设置价格 5:设置状态"
)
private
Integer
txType
;
private
Integer
txType
;
}
}
...
...
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQuerySeriesInfoRespDto.java
View file @
a547f876
...
@@ -2,6 +2,7 @@ package com.liquidnet.service.galaxy.dto.param;
...
@@ -2,6 +2,7 @@ package com.liquidnet.service.galaxy.dto.param;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.io.Serializable
;
...
@@ -21,38 +22,47 @@ public class GalaxyQuerySeriesInfoRespDto implements Serializable,Cloneable {
...
@@ -21,38 +22,47 @@ public class GalaxyQuerySeriesInfoRespDto implements Serializable,Cloneable {
/**
/**
* 系列ID
* 系列ID
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"系列ID"
)
private
String
seriesId
;
private
String
seriesId
;
/**
/**
* 系列名字
* 系列名字
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"系列名字"
)
private
String
name
;
private
String
name
;
/**
/**
* 创建者地址
* 创建者地址
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"创建者地址"
)
private
String
creatorAddr
;
private
String
creatorAddr
;
/**
/**
* 总数
* 总数
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"总数"
)
private
String
totalCount
;
private
String
totalCount
;
/**
/**
* 系列下的nftId后缀,是否从0开始,true就是从0开始,默认为false,从1开始
* 系列下的nftId后缀,是否从0开始,true就是从0开始,默认为false,从1开始
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"系列下的nftId后缀,是否从0开始,true就是从0开始,默认为false,从1开始"
)
private
String
seriesBeginFromZero
;
private
String
seriesBeginFromZero
;
/**
/**
* 当前个数(当前已发行此系列的个数)
* 当前个数(当前已发行此系列的个数)
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"当前个数(当前已发行此系列的个数)"
)
private
String
crtCount
;
private
String
crtCount
;
/**
/**
* 封面图
* 封面图
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"封面图"
)
private
String
coverUrl
;
private
String
coverUrl
;
/**
/**
* 描述
* 描述
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"描述"
)
private
String
desc
;
private
String
desc
;
/**
/**
* 创建时间戳
* 创建时间戳
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"创建时间戳"
)
private
String
createTimeStamp
;
private
String
createTimeStamp
;
@Override
@Override
public
String
toString
(){
public
String
toString
(){
...
...
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQueryUserSeriesNftListRespDto.java
View file @
a547f876
...
@@ -30,6 +30,7 @@ public class GalaxyQueryUserSeriesNftListRespDto implements Serializable,Cloneab
...
@@ -30,6 +30,7 @@ public class GalaxyQueryUserSeriesNftListRespDto implements Serializable,Cloneab
/**
/**
* 藏品总数
* 藏品总数
*/
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"藏品总数"
)
private
Long
total
;
private
Long
total
;
/**
/**
* nft元信息列表
* nft元信息列表
...
...
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