记得上下班打卡 | 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
57ba38a5
Commit
57ba38a5
authored
Apr 08, 2022
by
anjiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交galaxy查询相关功能
parent
cc0b5c82
Changes
24
Show whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
808 additions
and
66 deletions
+808
-66
TradeInfoDto.java
...n/java/com/liquidnet/service/galaxy/dto/TradeInfoDto.java
+64
-0
GalaxyNftPublishAndBuyReqDto.java
...ervice/galaxy/dto/param/GalaxyNftPublishAndBuyReqDto.java
+1
-1
GalaxyNftUploadReqDto.java
...idnet/service/galaxy/dto/param/GalaxyNftUploadReqDto.java
+4
-0
GalaxyQueryNftInfoReqDto.java
...et/service/galaxy/dto/param/GalaxyQueryNftInfoReqDto.java
+39
-0
GalaxyQueryNftInfoRespDto.java
...t/service/galaxy/dto/param/GalaxyQueryNftInfoRespDto.java
+117
-0
GalaxyQueryNftTradeListReqDto.java
...rvice/galaxy/dto/param/GalaxyQueryNftTradeListReqDto.java
+39
-0
GalaxyQueryNftTradeListRespDto.java
...vice/galaxy/dto/param/GalaxyQueryNftTradeListRespDto.java
+8
-8
GalaxyQuerySeriesInfoReqDto.java
...service/galaxy/dto/param/GalaxyQuerySeriesInfoReqDto.java
+7
-7
GalaxyQuerySeriesInfoRespDto.java
...ervice/galaxy/dto/param/GalaxyQuerySeriesInfoRespDto.java
+71
-0
GalaxyQueryUserSeriesNftListReqDto.java
.../galaxy/dto/param/GalaxyQueryUserSeriesNftListReqDto.java
+9
-12
GalaxyQueryUserSeriesNftListRespDto.java
...galaxy/dto/param/GalaxyQueryUserSeriesNftListRespDto.java
+7
-7
GalaxyQueryUserTradeAllListReqDto.java
...e/galaxy/dto/param/GalaxyQueryUserTradeAllListReqDto.java
+41
-0
GalaxyQueryUserTradeAllListRespDto.java
.../galaxy/dto/param/GalaxyQueryUserTradeAllListRespDto.java
+46
-0
GalaxyQueryUserTradeInListReqDto.java
...ce/galaxy/dto/param/GalaxyQueryUserTradeInListReqDto.java
+41
-0
GalaxyQueryUserTradeInListRespDto.java
...e/galaxy/dto/param/GalaxyQueryUserTradeInListRespDto.java
+46
-0
GalaxyQueryUserTradeOutListReqDto.java
...e/galaxy/dto/param/GalaxyQueryUserTradeOutListReqDto.java
+41
-0
GalaxyQueryUserTradeOutListRespDto.java
.../galaxy/dto/param/GalaxyQueryUserTradeOutListRespDto.java
+46
-0
IGalaxyTradeQueryService.java
...dnet/service/galaxy/service/IGalaxyTradeQueryService.java
+8
-3
GalaxyTradeQueryController.java
...service/galaxy/controller/GalaxyTradeQueryController.java
+55
-7
GalaxyRouterStrategyContext.java
...e/galaxy/router/strategy/GalaxyRouterStrategyContext.java
+4
-4
ZxinTradeQueryBiz.java
...net/service/galaxy/router/zxin/biz/ZxinTradeQueryBiz.java
+47
-7
GalaxyRouterStrategyZxlTradeQueryImpl.java
...r/zxin/service/GalaxyRouterStrategyZxlTradeQueryImpl.java
+33
-4
GalaxyTradeQueryServiceImpl.java
...vice/galaxy/service/impl/GalaxyTradeQueryServiceImpl.java
+33
-4
bootstrap-dev.yml
...-service-galaxy-impl/src/main/resources/bootstrap-dev.yml
+1
-2
No files found.
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/TradeInfoDto.java
0 → 100644
View file @
57ba38a5
package
com
.
liquidnet
.
service
.
galaxy
.
dto
;
import
lombok.Data
;
/**
* @author AnJiabin <anjiabin@zhengzai.tv>
* @version V1.0
* @Description: TODO
* @class: TradeInfo
* @Package com.liquidnet.common.third.zxlnft.dto.nft
* @Copyright: LightNet @ Copyright (c) 2021
* @date 2022/2/23 13:43
*/
@Data
public
class
TradeInfoDto
{
/**
* 藏品缩略图
*/
private
String
displayUrl
;
/**
* 系列缩略图
*/
private
String
coverUrl
;
/**
* 藏品hash
*/
private
String
hash
;
/**
* nftId
*/
private
String
nftId
;
/**
* 藏品名称
*/
private
String
name
;
/**
* 发行时间
*/
private
String
publishTime
;
/**
* 藏品url
*/
private
String
url
;
/**
* 交易时间
*/
private
String
dealTime
;
/**
* 成交金额
*/
private
Long
dealCount
;
/**
* 转入地址
*/
private
String
fromAddr
;
/**
* 转出地址
*/
private
String
toAddr
;
/**
* 交易类别, 1:发行 2:购买 3:转移 4:设置价格 5:设置状态
*/
private
Integer
txType
;
}
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyNftPublishAndBuyReqDto.java
View file @
57ba38a5
...
@@ -49,7 +49,7 @@ public class GalaxyNftPublishAndBuyReqDto extends GalaxyBaseReqDto implements Se
...
@@ -49,7 +49,7 @@ public class GalaxyNftPublishAndBuyReqDto extends GalaxyBaseReqDto implements Se
* buyTimestamp
* buyTimestamp
*/
*/
@ApiModelProperty
(
position
=
3
,
required
=
true
,
value
=
"购买时间戳(格式为:2022-04-07 12:12:12)"
)
@ApiModelProperty
(
position
=
3
,
required
=
true
,
value
=
"购买时间戳(格式为:2022-04-07 12:12:12)"
)
@NotBlank
(
message
=
"购买时间戳"
)
@NotBlank
(
message
=
"购买时间戳
不能为空!
"
)
private
String
buyTimestamp
;
private
String
buyTimestamp
;
@Override
@Override
...
...
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyNftUploadReqDto.java
View file @
57ba38a5
...
@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModel;
...
@@ -5,6 +5,7 @@ import io.swagger.annotations.ApiModel;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
javax.validation.constraints.NotBlank
;
import
java.io.Serializable
;
import
java.io.Serializable
;
/**
/**
...
@@ -20,12 +21,15 @@ import java.io.Serializable;
...
@@ -20,12 +21,15 @@ import java.io.Serializable;
@Data
@Data
public
class
GalaxyNftUploadReqDto
extends
GalaxyBaseReqDto
implements
Serializable
,
Cloneable
{
public
class
GalaxyNftUploadReqDto
extends
GalaxyBaseReqDto
implements
Serializable
,
Cloneable
{
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"nft原始素材url"
)
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"nft原始素材url"
)
@NotBlank
(
message
=
"nft原始素材url不能为空!"
)
private
String
originalNftUrl
;
private
String
originalNftUrl
;
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"显示图原始素材url"
)
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"显示图原始素材url"
)
@NotBlank
(
message
=
"显示图原始素材url不能为空!"
)
private
String
originalDisplayUrl
;
private
String
originalDisplayUrl
;
@ApiModelProperty
(
position
=
2
,
required
=
true
,
value
=
"商品唯一规格ID"
)
@ApiModelProperty
(
position
=
2
,
required
=
true
,
value
=
"商品唯一规格ID"
)
@NotBlank
(
message
=
"商品唯一规格ID不能为空!"
)
private
String
skuId
;
private
String
skuId
;
@Override
@Override
...
...
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQueryNftInfoReqDto.java
0 → 100644
View file @
57ba38a5
package
com
.
liquidnet
.
service
.
galaxy
.
dto
.
param
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @author AnJiabin <anjiabin@zhengzai.tv>
* @version V1.0
* @Description: TODO
* @class: GalaxyQueryNftInfoReqDto
* @Package com.liquidnet.service.galaxy.dto.param
* @Copyright: LightNet @ Copyright (c) 2022
* @date 2022/4/8 16:27
*/
@ApiModel
(
value
=
"GalaxyQueryNftInfoReqDto"
,
description
=
"NFT信息查询"
)
@Data
public
class
GalaxyQueryNftInfoReqDto
extends
GalaxyBaseReqDto
implements
Serializable
,
Cloneable
{
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"skuId"
)
private
String
skuId
;
@Override
public
String
toString
(){
return
JsonUtils
.
toJson
(
this
);
}
private
static
final
GalaxyQueryNftInfoReqDto
obj
=
new
GalaxyQueryNftInfoReqDto
();
public
static
GalaxyQueryNftInfoReqDto
getNew
()
{
try
{
return
(
GalaxyQueryNftInfoReqDto
)
obj
.
clone
();
}
catch
(
CloneNotSupportedException
e
)
{
return
new
GalaxyQueryNftInfoReqDto
();
}
}
}
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQueryNftInfoRespDto.java
0 → 100644
View file @
57ba38a5
package
com
.
liquidnet
.
service
.
galaxy
.
dto
.
param
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @author AnJiabin <anjiabin@zhengzai.tv>
* @version V1.0
* @Description: TODO
* @class: GalaxyQueryNftInfoRespDto
* @Package com.liquidnet.service.galaxy.dto.param
* @Copyright: LightNet @ Copyright (c) 2022
* @date 2022/4/8 16:27
*/
@ApiModel
(
value
=
"GalaxyQueryNftInfoRespDto"
,
description
=
"NFT信息查询"
)
@Data
public
class
GalaxyQueryNftInfoRespDto
implements
Serializable
,
Cloneable
{
/**
* 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
public
String
toString
(){
return
JsonUtils
.
toJson
(
this
);
}
private
static
final
GalaxyQueryNftInfoRespDto
obj
=
new
GalaxyQueryNftInfoRespDto
();
public
static
GalaxyQueryNftInfoRespDto
getNew
()
{
try
{
return
(
GalaxyQueryNftInfoRespDto
)
obj
.
clone
();
}
catch
(
CloneNotSupportedException
e
)
{
return
new
GalaxyQueryNftInfoRespDto
();
}
}
}
\ No newline at end of file
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQueryNftTradeListReqDto.java
0 → 100644
View file @
57ba38a5
package
com
.
liquidnet
.
service
.
galaxy
.
dto
.
param
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @author AnJiabin <anjiabin@zhengzai.tv>
* @version V1.0
* @Description: TODO
* @class: GalaxyQueryNftTradeListReqDto
* @Package com.liquidnet.service.galaxy.dto.param
* @Copyright: LightNet @ Copyright (c) 2022
* @date 2022/4/8 16:27
*/
@ApiModel
(
value
=
"GalaxyQueryNftTradeListReqDto"
,
description
=
"单个NFT交易信息查询"
)
@Data
public
class
GalaxyQueryNftTradeListReqDto
extends
GalaxyBaseReqDto
implements
Serializable
,
Cloneable
{
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"skuId"
)
private
String
skuId
;
@Override
public
String
toString
(){
return
JsonUtils
.
toJson
(
this
);
}
private
static
final
GalaxyQueryNftTradeListReqDto
obj
=
new
GalaxyQueryNftTradeListReqDto
();
public
static
GalaxyQueryNftTradeListReqDto
getNew
()
{
try
{
return
(
GalaxyQueryNftTradeListReqDto
)
obj
.
clone
();
}
catch
(
CloneNotSupportedException
e
)
{
return
new
GalaxyQueryNftTradeListReqDto
();
}
}
}
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQuery
Series
RespDto.java
→
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQuery
NftTradeList
RespDto.java
View file @
57ba38a5
...
@@ -11,14 +11,14 @@ import java.io.Serializable;
...
@@ -11,14 +11,14 @@ import java.io.Serializable;
* @author AnJiabin <anjiabin@zhengzai.tv>
* @author AnJiabin <anjiabin@zhengzai.tv>
* @version V1.0
* @version V1.0
* @Description: TODO
* @Description: TODO
* @class: GalaxyQuery
SeriesReq
Dto
* @class: GalaxyQuery
NftTradeListResp
Dto
* @Package com.liquidnet.service.galaxy.dto.param
* @Package com.liquidnet.service.galaxy.dto.param
* @Copyright: LightNet @ Copyright (c) 2022
* @Copyright: LightNet @ Copyright (c) 2022
* @date 2022/4/
7
16:27
* @date 2022/4/
8
16:27
*/
*/
@ApiModel
(
value
=
"GalaxyQuery
SeriesRespDto"
,
description
=
"系列
查询"
)
@ApiModel
(
value
=
"GalaxyQuery
NftTradeListRespDto"
,
description
=
"单个NFT交易信息
查询"
)
@Data
@Data
public
class
GalaxyQuery
Series
RespDto
implements
Serializable
,
Cloneable
{
public
class
GalaxyQuery
NftTradeList
RespDto
implements
Serializable
,
Cloneable
{
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"skuId"
)
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"skuId"
)
private
String
skuId
;
private
String
skuId
;
...
@@ -55,13 +55,13 @@ public class GalaxyQuerySeriesRespDto implements Serializable,Cloneable {
...
@@ -55,13 +55,13 @@ public class GalaxyQuerySeriesRespDto implements Serializable,Cloneable {
return
JsonUtils
.
toJson
(
this
);
return
JsonUtils
.
toJson
(
this
);
}
}
private
static
final
GalaxyQuery
SeriesRespDto
obj
=
new
GalaxyQuerySeries
RespDto
();
private
static
final
GalaxyQuery
NftTradeListRespDto
obj
=
new
GalaxyQueryNftTradeList
RespDto
();
public
static
GalaxyQuery
Series
RespDto
getNew
()
{
public
static
GalaxyQuery
NftTradeList
RespDto
getNew
()
{
try
{
try
{
return
(
GalaxyQuery
Series
RespDto
)
obj
.
clone
();
return
(
GalaxyQuery
NftTradeList
RespDto
)
obj
.
clone
();
}
catch
(
CloneNotSupportedException
e
)
{
}
catch
(
CloneNotSupportedException
e
)
{
return
new
GalaxyQuery
Series
RespDto
();
return
new
GalaxyQuery
NftTradeList
RespDto
();
}
}
}
}
}
}
\ No newline at end of file
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQuerySeriesReqDto.java
→
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQuerySeries
Info
ReqDto.java
View file @
57ba38a5
...
@@ -11,14 +11,14 @@ import java.io.Serializable;
...
@@ -11,14 +11,14 @@ import java.io.Serializable;
* @author AnJiabin <anjiabin@zhengzai.tv>
* @author AnJiabin <anjiabin@zhengzai.tv>
* @version V1.0
* @version V1.0
* @Description: TODO
* @Description: TODO
* @class: GalaxyQuerySeriesReqDto
* @class: GalaxyQuerySeries
Info
ReqDto
* @Package com.liquidnet.service.galaxy.dto.param
* @Package com.liquidnet.service.galaxy.dto.param
* @Copyright: LightNet @ Copyright (c) 2022
* @Copyright: LightNet @ Copyright (c) 2022
* @date 2022/4/7 16:27
* @date 2022/4/7 16:27
*/
*/
@ApiModel
(
value
=
"GalaxyQuerySeriesReqDto"
,
description
=
"系列查询"
)
@ApiModel
(
value
=
"GalaxyQuerySeries
Info
ReqDto"
,
description
=
"系列查询"
)
@Data
@Data
public
class
GalaxyQuerySeriesReqDto
extends
GalaxyBaseReqDto
implements
Serializable
,
Cloneable
{
public
class
GalaxyQuerySeries
Info
ReqDto
extends
GalaxyBaseReqDto
implements
Serializable
,
Cloneable
{
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"skuId"
)
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"skuId"
)
private
String
skuId
;
private
String
skuId
;
...
@@ -27,13 +27,13 @@ public class GalaxyQuerySeriesReqDto extends GalaxyBaseReqDto implements Seriali
...
@@ -27,13 +27,13 @@ public class GalaxyQuerySeriesReqDto extends GalaxyBaseReqDto implements Seriali
return
JsonUtils
.
toJson
(
this
);
return
JsonUtils
.
toJson
(
this
);
}
}
private
static
final
GalaxyQuerySeries
ReqDto
obj
=
new
GalaxyQuerySeries
ReqDto
();
private
static
final
GalaxyQuerySeries
InfoReqDto
obj
=
new
GalaxyQuerySeriesInfo
ReqDto
();
public
static
GalaxyQuerySeriesReqDto
getNew
()
{
public
static
GalaxyQuerySeries
Info
ReqDto
getNew
()
{
try
{
try
{
return
(
GalaxyQuerySeriesReqDto
)
obj
.
clone
();
return
(
GalaxyQuerySeries
Info
ReqDto
)
obj
.
clone
();
}
catch
(
CloneNotSupportedException
e
)
{
}
catch
(
CloneNotSupportedException
e
)
{
return
new
GalaxyQuerySeriesReqDto
();
return
new
GalaxyQuerySeries
Info
ReqDto
();
}
}
}
}
}
}
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQuerySeriesInfoRespDto.java
0 → 100644
View file @
57ba38a5
package
com
.
liquidnet
.
service
.
galaxy
.
dto
.
param
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
java.io.Serializable
;
/**
* @author AnJiabin <anjiabin@zhengzai.tv>
* @version V1.0
* @Description: TODO
* @class: GalaxyQuerySeriesInfoRespDto
* @Package com.liquidnet.service.galaxy.dto.param
* @Copyright: LightNet @ Copyright (c) 2022
* @date 2022/4/7 16:27
*/
@ApiModel
(
value
=
"GalaxyQuerySeriesInfoRespDto"
,
description
=
"系列查询"
)
@Data
public
class
GalaxyQuerySeriesInfoRespDto
implements
Serializable
,
Cloneable
{
/**
* 系列ID
*/
private
String
seriesId
;
/**
* 系列名字
*/
private
String
name
;
/**
* 创建者地址
*/
private
String
creatorAddr
;
/**
* 总数
*/
private
String
totalCount
;
/**
* 系列下的nftId后缀,是否从0开始,true就是从0开始,默认为false,从1开始
*/
private
String
seriesBeginFromZero
;
/**
* 当前个数(当前已发行此系列的个数)
*/
private
String
crtCount
;
/**
* 封面图
*/
private
String
coverUrl
;
/**
* 描述
*/
private
String
desc
;
/**
* 创建时间戳
*/
private
String
createTimeStamp
;
@Override
public
String
toString
(){
return
JsonUtils
.
toJson
(
this
);
}
private
static
final
GalaxyQuerySeriesInfoRespDto
obj
=
new
GalaxyQuerySeriesInfoRespDto
();
public
static
GalaxyQuerySeriesInfoRespDto
getNew
()
{
try
{
return
(
GalaxyQuerySeriesInfoRespDto
)
obj
.
clone
();
}
catch
(
CloneNotSupportedException
e
)
{
return
new
GalaxyQuerySeriesInfoRespDto
();
}
}
}
\ No newline at end of file
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQueryNftListReqDto.java
→
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQuery
UserSeries
NftListReqDto.java
View file @
57ba38a5
...
@@ -13,37 +13,34 @@ import java.io.Serializable;
...
@@ -13,37 +13,34 @@ import java.io.Serializable;
* @author AnJiabin <anjiabin@zhengzai.tv>
* @author AnJiabin <anjiabin@zhengzai.tv>
* @version V1.0
* @version V1.0
* @Description: TODO
* @Description: TODO
* @class: GalaxyQuery
Series
ReqDto
* @class: GalaxyQuery
UserSeriesNftList
ReqDto
* @Package com.liquidnet.service.galaxy.dto.param
* @Package com.liquidnet.service.galaxy.dto.param
* @Copyright: LightNet @ Copyright (c) 2022
* @Copyright: LightNet @ Copyright (c) 2022
* @date 2022/4/7 16:27
* @date 2022/4/7 16:27
*/
*/
@ApiModel
(
value
=
"GalaxyQuery
NftListReqDto"
,
description
=
"NFT列表
查询"
)
@ApiModel
(
value
=
"GalaxyQuery
UserSeriesNftListReqDto"
,
description
=
"用户系列NFT
查询"
)
@Data
@Data
public
class
GalaxyQueryNftListReqDto
extends
GalaxyBaseReqDto
implements
Serializable
,
Cloneable
{
public
class
GalaxyQueryUserSeriesNftListReqDto
extends
GalaxyBaseReqDto
implements
Serializable
,
Cloneable
{
/**
* 以下为发行参数***********************************
*/
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"用户ID[30]"
)
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"用户ID[30]"
)
@NotBlank
(
message
=
"用户ID不能为空!"
)
@NotBlank
(
message
=
"用户ID不能为空!"
)
@Size
(
min
=
1
,
max
=
30
,
message
=
"用户ID限制2-30位且不能包含特殊字符"
)
@Size
(
min
=
1
,
max
=
30
,
message
=
"用户ID限制2-30位且不能包含特殊字符"
)
private
String
userId
;
private
String
userId
;
@ApiModelProperty
(
position
=
2
,
required
=
true
,
value
=
"系列ID
"
)
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"skuId
"
)
private
String
s
eries
Id
;
private
String
s
ku
Id
;
@Override
@Override
public
String
toString
(){
public
String
toString
(){
return
JsonUtils
.
toJson
(
this
);
return
JsonUtils
.
toJson
(
this
);
}
}
private
static
final
GalaxyQuery
NftListReqDto
obj
=
new
GalaxyQuery
NftListReqDto
();
private
static
final
GalaxyQuery
UserSeriesNftListReqDto
obj
=
new
GalaxyQueryUserSeries
NftListReqDto
();
public
static
GalaxyQueryNftListReqDto
getNew
()
{
public
static
GalaxyQuery
UserSeries
NftListReqDto
getNew
()
{
try
{
try
{
return
(
GalaxyQueryNftListReqDto
)
obj
.
clone
();
return
(
GalaxyQuery
UserSeries
NftListReqDto
)
obj
.
clone
();
}
catch
(
CloneNotSupportedException
e
)
{
}
catch
(
CloneNotSupportedException
e
)
{
return
new
GalaxyQueryNftListReqDto
();
return
new
GalaxyQuery
UserSeries
NftListReqDto
();
}
}
}
}
}
}
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQueryNftListRespDto.java
→
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQuery
UserSeries
NftListRespDto.java
View file @
57ba38a5
...
@@ -13,14 +13,14 @@ import java.util.List;
...
@@ -13,14 +13,14 @@ import java.util.List;
* @author AnJiabin <anjiabin@zhengzai.tv>
* @author AnJiabin <anjiabin@zhengzai.tv>
* @version V1.0
* @version V1.0
* @Description: TODO
* @Description: TODO
* @class: GalaxyQuery
SeriesReq
Dto
* @class: GalaxyQuery
UserSeriesNftListResp
Dto
* @Package com.liquidnet.service.galaxy.dto.param
* @Package com.liquidnet.service.galaxy.dto.param
* @Copyright: LightNet @ Copyright (c) 2022
* @Copyright: LightNet @ Copyright (c) 2022
* @date 2022/4/7 16:27
* @date 2022/4/7 16:27
*/
*/
@ApiModel
(
value
=
"GalaxyQuery
NftListRespDto"
,
description
=
"NFT列表
查询"
)
@ApiModel
(
value
=
"GalaxyQuery
UserSeriesNftListRespDto"
,
description
=
"用户系列NFT
查询"
)
@Data
@Data
public
class
GalaxyQueryNftListRespDto
implements
Serializable
,
Cloneable
{
public
class
GalaxyQuery
UserSeries
NftListRespDto
implements
Serializable
,
Cloneable
{
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"userId"
)
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"userId"
)
private
String
userId
;
private
String
userId
;
...
@@ -41,13 +41,13 @@ public class GalaxyQueryNftListRespDto implements Serializable,Cloneable {
...
@@ -41,13 +41,13 @@ public class GalaxyQueryNftListRespDto implements Serializable,Cloneable {
return
JsonUtils
.
toJson
(
this
);
return
JsonUtils
.
toJson
(
this
);
}
}
private
static
final
GalaxyQuery
NftListRespDto
obj
=
new
GalaxyQuery
NftListRespDto
();
private
static
final
GalaxyQuery
UserSeriesNftListRespDto
obj
=
new
GalaxyQueryUserSeries
NftListRespDto
();
public
static
GalaxyQueryNftListRespDto
getNew
()
{
public
static
GalaxyQuery
UserSeries
NftListRespDto
getNew
()
{
try
{
try
{
return
(
GalaxyQueryNftListRespDto
)
obj
.
clone
();
return
(
GalaxyQuery
UserSeries
NftListRespDto
)
obj
.
clone
();
}
catch
(
CloneNotSupportedException
e
)
{
}
catch
(
CloneNotSupportedException
e
)
{
return
new
GalaxyQueryNftListRespDto
();
return
new
GalaxyQuery
UserSeries
NftListRespDto
();
}
}
}
}
}
}
\ No newline at end of file
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQueryUserTradeAllListReqDto.java
0 → 100644
View file @
57ba38a5
package
com
.
liquidnet
.
service
.
galaxy
.
dto
.
param
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotBlank
;
import
java.io.Serializable
;
/**
* @author AnJiabin <anjiabin@zhengzai.tv>
* @version V1.0
* @Description: TODO
* @class: GalaxyQueryUserTradeAllListReqDto
* @Package com.liquidnet.service.galaxy.dto.param
* @Copyright: LightNet @ Copyright (c) 2022
* @date 2022/4/8 16:27
*/
@ApiModel
(
value
=
"GalaxyQueryUserTradeAllListReqDto"
,
description
=
"用户所有进出NFT信息查询"
)
@Data
public
class
GalaxyQueryUserTradeAllListReqDto
extends
GalaxyBaseReqDto
implements
Serializable
,
Cloneable
{
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"blockChainAddress"
)
@NotBlank
(
message
=
"区块链地址不能为空!"
)
private
String
blockChainAddress
;
@Override
public
String
toString
(){
return
JsonUtils
.
toJson
(
this
);
}
private
static
final
GalaxyQueryUserTradeAllListReqDto
obj
=
new
GalaxyQueryUserTradeAllListReqDto
();
public
static
GalaxyQueryUserTradeAllListReqDto
getNew
()
{
try
{
return
(
GalaxyQueryUserTradeAllListReqDto
)
obj
.
clone
();
}
catch
(
CloneNotSupportedException
e
)
{
return
new
GalaxyQueryUserTradeAllListReqDto
();
}
}
}
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQueryUserTradeAllListRespDto.java
0 → 100644
View file @
57ba38a5
package
com
.
liquidnet
.
service
.
galaxy
.
dto
.
param
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
com.liquidnet.service.galaxy.dto.TradeInfoDto
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* @author AnJiabin <anjiabin@zhengzai.tv>
* @version V1.0
* @Description: TODO
* @class: GalaxyQueryUserTradeAllListRespDto
* @Package com.liquidnet.service.galaxy.dto.param
* @Copyright: LightNet @ Copyright (c) 2022
* @date 2022/4/8 16:27
*/
@ApiModel
(
value
=
"GalaxyQueryUserTradeAllListRespDto"
,
description
=
"用户所有进出NFT信息查询"
)
@Data
public
class
GalaxyQueryUserTradeAllListRespDto
implements
Serializable
,
Cloneable
{
/**
* 交易信息总数
*/
private
Long
total
;
/**
* 交易信息列表
*/
private
List
<
TradeInfoDto
>
tradeList
;
@Override
public
String
toString
(){
return
JsonUtils
.
toJson
(
this
);
}
private
static
final
GalaxyQueryUserTradeAllListRespDto
obj
=
new
GalaxyQueryUserTradeAllListRespDto
();
public
static
GalaxyQueryUserTradeAllListRespDto
getNew
()
{
try
{
return
(
GalaxyQueryUserTradeAllListRespDto
)
obj
.
clone
();
}
catch
(
CloneNotSupportedException
e
)
{
return
new
GalaxyQueryUserTradeAllListRespDto
();
}
}
}
\ No newline at end of file
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQueryUserTradeInListReqDto.java
0 → 100644
View file @
57ba38a5
package
com
.
liquidnet
.
service
.
galaxy
.
dto
.
param
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotBlank
;
import
java.io.Serializable
;
/**
* @author AnJiabin <anjiabin@zhengzai.tv>
* @version V1.0
* @Description: TODO
* @class: GalaxyQueryUserTradeInListReqDto
* @Package com.liquidnet.service.galaxy.dto.param
* @Copyright: LightNet @ Copyright (c) 2022
* @date 2022/4/8 16:27
*/
@ApiModel
(
value
=
"GalaxyQueryUserTradeInListReqDto"
,
description
=
"用户所有进NFT信息查询"
)
@Data
public
class
GalaxyQueryUserTradeInListReqDto
extends
GalaxyBaseReqDto
implements
Serializable
,
Cloneable
{
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"blockChainAddress"
)
@NotBlank
(
message
=
"区块链地址不能为空!"
)
private
String
blockChainAddress
;
@Override
public
String
toString
(){
return
JsonUtils
.
toJson
(
this
);
}
private
static
final
GalaxyQueryUserTradeInListReqDto
obj
=
new
GalaxyQueryUserTradeInListReqDto
();
public
static
GalaxyQueryUserTradeInListReqDto
getNew
()
{
try
{
return
(
GalaxyQueryUserTradeInListReqDto
)
obj
.
clone
();
}
catch
(
CloneNotSupportedException
e
)
{
return
new
GalaxyQueryUserTradeInListReqDto
();
}
}
}
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQueryUserTradeInListRespDto.java
0 → 100644
View file @
57ba38a5
package
com
.
liquidnet
.
service
.
galaxy
.
dto
.
param
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
com.liquidnet.service.galaxy.dto.TradeInfoDto
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* @author AnJiabin <anjiabin@zhengzai.tv>
* @version V1.0
* @Description: TODO
* @class: GalaxyQueryUserTradeInListRespDto
* @Package com.liquidnet.service.galaxy.dto.param
* @Copyright: LightNet @ Copyright (c) 2022
* @date 2022/4/8 16:27
*/
@ApiModel
(
value
=
"GalaxyQueryUserTradeInListRespDto"
,
description
=
"用户所有进NFT信息查询"
)
@Data
public
class
GalaxyQueryUserTradeInListRespDto
implements
Serializable
,
Cloneable
{
/**
* 交易信息总数
*/
private
Long
total
;
/**
* 交易信息列表
*/
private
List
<
TradeInfoDto
>
tradeList
;
@Override
public
String
toString
(){
return
JsonUtils
.
toJson
(
this
);
}
private
static
final
GalaxyQueryUserTradeInListRespDto
obj
=
new
GalaxyQueryUserTradeInListRespDto
();
public
static
GalaxyQueryUserTradeInListRespDto
getNew
()
{
try
{
return
(
GalaxyQueryUserTradeInListRespDto
)
obj
.
clone
();
}
catch
(
CloneNotSupportedException
e
)
{
return
new
GalaxyQueryUserTradeInListRespDto
();
}
}
}
\ No newline at end of file
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQueryUserTradeOutListReqDto.java
0 → 100644
View file @
57ba38a5
package
com
.
liquidnet
.
service
.
galaxy
.
dto
.
param
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotBlank
;
import
java.io.Serializable
;
/**
* @author AnJiabin <anjiabin@zhengzai.tv>
* @version V1.0
* @Description: TODO
* @class: GalaxyQueryUserTradeOutListReqDto
* @Package com.liquidnet.service.galaxy.dto.param
* @Copyright: LightNet @ Copyright (c) 2022
* @date 2022/4/8 16:27
*/
@ApiModel
(
value
=
"GalaxyQueryUserTradeOutListReqDto"
,
description
=
"用户所有出NFT信息查询"
)
@Data
public
class
GalaxyQueryUserTradeOutListReqDto
extends
GalaxyBaseReqDto
implements
Serializable
,
Cloneable
{
@ApiModelProperty
(
position
=
1
,
required
=
true
,
value
=
"blockChainAddress"
)
@NotBlank
(
message
=
"区块链地址不能为空!"
)
private
String
blockChainAddress
;
@Override
public
String
toString
(){
return
JsonUtils
.
toJson
(
this
);
}
private
static
final
GalaxyQueryUserTradeOutListReqDto
obj
=
new
GalaxyQueryUserTradeOutListReqDto
();
public
static
GalaxyQueryUserTradeOutListReqDto
getNew
()
{
try
{
return
(
GalaxyQueryUserTradeOutListReqDto
)
obj
.
clone
();
}
catch
(
CloneNotSupportedException
e
)
{
return
new
GalaxyQueryUserTradeOutListReqDto
();
}
}
}
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/dto/param/GalaxyQueryUserTradeOutListRespDto.java
0 → 100644
View file @
57ba38a5
package
com
.
liquidnet
.
service
.
galaxy
.
dto
.
param
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
com.liquidnet.service.galaxy.dto.TradeInfoDto
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.List
;
/**
* @author AnJiabin <anjiabin@zhengzai.tv>
* @version V1.0
* @Description: TODO
* @class: GalaxyQueryUserTradeOutListRespDto
* @Package com.liquidnet.service.galaxy.dto.param
* @Copyright: LightNet @ Copyright (c) 2022
* @date 2022/4/8 16:27
*/
@ApiModel
(
value
=
"GalaxyQueryUserTradeOutListRespDto"
,
description
=
"用户所有出NFT信息查询"
)
@Data
public
class
GalaxyQueryUserTradeOutListRespDto
implements
Serializable
,
Cloneable
{
/**
* 交易信息总数
*/
private
Long
total
;
/**
* 交易信息列表
*/
private
List
<
TradeInfoDto
>
tradeList
;
@Override
public
String
toString
(){
return
JsonUtils
.
toJson
(
this
);
}
private
static
final
GalaxyQueryUserTradeOutListRespDto
obj
=
new
GalaxyQueryUserTradeOutListRespDto
();
public
static
GalaxyQueryUserTradeOutListRespDto
getNew
()
{
try
{
return
(
GalaxyQueryUserTradeOutListRespDto
)
obj
.
clone
();
}
catch
(
CloneNotSupportedException
e
)
{
return
new
GalaxyQueryUserTradeOutListRespDto
();
}
}
}
\ No newline at end of file
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/service/IGalaxyTradeQueryService.java
View file @
57ba38a5
package
com
.
liquidnet
.
service
.
galaxy
.
service
;
package
com
.
liquidnet
.
service
.
galaxy
.
service
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyQueryNftListReqDto
;
import
com.liquidnet.service.galaxy.dto.param.*
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyQueryNftListRespDto
;
/**
/**
* @author AnJiabin <anjiabin@zhengzai.tv>
* @author AnJiabin <anjiabin@zhengzai.tv>
...
@@ -14,5 +13,11 @@ import com.liquidnet.service.galaxy.dto.param.GalaxyQueryNftListRespDto;
...
@@ -14,5 +13,11 @@ import com.liquidnet.service.galaxy.dto.param.GalaxyQueryNftListRespDto;
* @date 2022/4/7 11:45
* @date 2022/4/7 11:45
*/
*/
public
interface
IGalaxyTradeQueryService
{
public
interface
IGalaxyTradeQueryService
{
ResponseDto
<
GalaxyQueryNftListRespDto
>
nftList
(
GalaxyQueryNftListReqDto
reqDto
);
ResponseDto
<
GalaxyQueryNftInfoRespDto
>
queryNftInfo
(
GalaxyQueryNftInfoReqDto
reqDto
);
ResponseDto
<
GalaxyQueryNftTradeListRespDto
>
queryNftTradeList
(
GalaxyQueryNftTradeListReqDto
reqDto
);
ResponseDto
<
GalaxyQuerySeriesInfoRespDto
>
querySeriesInfo
(
GalaxyQuerySeriesInfoReqDto
reqDto
);
ResponseDto
<
GalaxyQueryUserSeriesNftListRespDto
>
queryUserSeriesNftList
(
GalaxyQueryUserSeriesNftListReqDto
reqDto
);
ResponseDto
<
GalaxyQueryUserTradeAllListRespDto
>
queryUserTradeAllList
(
GalaxyQueryUserTradeAllListReqDto
reqDto
);
ResponseDto
<
GalaxyQueryUserTradeInListRespDto
>
queryUserTradeInList
(
GalaxyQueryUserTradeInListReqDto
reqDto
);
ResponseDto
<
GalaxyQueryUserTradeOutListRespDto
>
queryUserTradeOutList
(
GalaxyQueryUserTradeOutListReqDto
reqDto
);
}
}
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/src/main/java/com/liquidnet/service/galaxy/controller/GalaxyTradeQueryController.java
View file @
57ba38a5
...
@@ -3,8 +3,7 @@ package com.liquidnet.service.galaxy.controller;
...
@@ -3,8 +3,7 @@ package com.liquidnet.service.galaxy.controller;
import
com.github.xiaoymin.knife4j.annotations.ApiOperationSupport
;
import
com.github.xiaoymin.knife4j.annotations.ApiOperationSupport
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.galaxy.aop.annotation.ControllerLog
;
import
com.liquidnet.service.galaxy.aop.annotation.ControllerLog
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyQueryNftListReqDto
;
import
com.liquidnet.service.galaxy.dto.param.*
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyQueryNftListRespDto
;
import
com.liquidnet.service.galaxy.service.IGalaxyTradeQueryService
;
import
com.liquidnet.service.galaxy.service.IGalaxyTradeQueryService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -36,11 +35,60 @@ public class GalaxyTradeQueryController {
...
@@ -36,11 +35,60 @@ public class GalaxyTradeQueryController {
@Resource
(
name
=
"galaxyTradeQueryService"
)
@Resource
(
name
=
"galaxyTradeQueryService"
)
private
IGalaxyTradeQueryService
galaxyTradeQueryService
;
private
IGalaxyTradeQueryService
galaxyTradeQueryService
;
@ControllerLog
(
description
=
"NFT
列表
查询"
)
@ControllerLog
(
description
=
"NFT
信息
查询"
)
@ApiOperationSupport
(
order
=
1
)
@ApiOperationSupport
(
order
=
1
)
@ApiOperation
(
value
=
"NFT列表查询"
)
@ApiOperation
(
value
=
"NFT信息查询"
)
@PostMapping
(
value
=
{
"nftList"
})
@PostMapping
(
value
=
{
"queryNftInfo"
})
public
ResponseDto
<
GalaxyQueryNftListRespDto
>
nftList
(
@Valid
@RequestBody
GalaxyQueryNftListReqDto
reqDto
){
public
ResponseDto
<
GalaxyQueryNftInfoRespDto
>
queryNftInfo
(
@Valid
@RequestBody
GalaxyQueryNftInfoReqDto
reqDto
){
return
galaxyTradeQueryService
.
nftList
(
reqDto
);
return
galaxyTradeQueryService
.
queryNftInfo
(
reqDto
);
}
@ControllerLog
(
description
=
"单个NFT交易信息查询"
)
@ApiOperationSupport
(
order
=
1
)
@ApiOperation
(
value
=
"单个NFT交易信息查询"
)
@PostMapping
(
value
=
{
"queryNftTradeList"
})
ResponseDto
<
GalaxyQueryNftTradeListRespDto
>
queryNftTradeList
(
@Valid
@RequestBody
GalaxyQueryNftTradeListReqDto
reqDto
){
return
galaxyTradeQueryService
.
queryNftTradeList
(
reqDto
);
}
@ControllerLog
(
description
=
"系列查询"
)
@ApiOperationSupport
(
order
=
1
)
@ApiOperation
(
value
=
"系列查询"
)
@PostMapping
(
value
=
{
"querySeriesInfo"
})
ResponseDto
<
GalaxyQuerySeriesInfoRespDto
>
querySeriesInfo
(
GalaxyQuerySeriesInfoReqDto
reqDto
){
return
galaxyTradeQueryService
.
querySeriesInfo
(
reqDto
);
}
@ControllerLog
(
description
=
"用户系列NFT查询"
)
@ApiOperationSupport
(
order
=
1
)
@ApiOperation
(
value
=
"用户系列NFT查询"
)
@PostMapping
(
value
=
{
"queryUserSeriesNftList"
})
ResponseDto
<
GalaxyQueryUserSeriesNftListRespDto
>
queryUserSeriesNftList
(
GalaxyQueryUserSeriesNftListReqDto
reqDto
){
return
galaxyTradeQueryService
.
queryUserSeriesNftList
(
reqDto
);
}
@ControllerLog
(
description
=
"用户所有进出NFT信息查询"
)
@ApiOperationSupport
(
order
=
1
)
@ApiOperation
(
value
=
"用户所有进出NFT信息查询"
)
@PostMapping
(
value
=
{
"queryUserTradeAllList"
})
ResponseDto
<
GalaxyQueryUserTradeAllListRespDto
>
queryUserTradeAllList
(
GalaxyQueryUserTradeAllListReqDto
reqDto
){
return
galaxyTradeQueryService
.
queryUserTradeAllList
(
reqDto
);
}
@ControllerLog
(
description
=
"用户所有进NFT信息查询"
)
@ApiOperationSupport
(
order
=
1
)
@ApiOperation
(
value
=
"用户所有进NFT信息查询"
)
@PostMapping
(
value
=
{
"queryUserTradeInList"
})
ResponseDto
<
GalaxyQueryUserTradeInListRespDto
>
queryUserTradeInList
(
GalaxyQueryUserTradeInListReqDto
reqDto
){
return
galaxyTradeQueryService
.
queryUserTradeInList
(
reqDto
);
}
@ControllerLog
(
description
=
"用户所有出NFT信息查询"
)
@ApiOperationSupport
(
order
=
1
)
@ApiOperation
(
value
=
"用户所有出NFT信息查询"
)
@PostMapping
(
value
=
{
"queryUserTradeOutList"
})
ResponseDto
<
GalaxyQueryUserTradeOutListRespDto
>
queryUserTradeOutList
(
GalaxyQueryUserTradeOutListReqDto
reqDto
){
return
galaxyTradeQueryService
.
queryUserTradeOutList
(
reqDto
);
}
}
}
}
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/src/main/java/com/liquidnet/service/galaxy/router/strategy/GalaxyRouterStrategyContext.java
View file @
57ba38a5
...
@@ -79,6 +79,10 @@ public class GalaxyRouterStrategyContext {
...
@@ -79,6 +79,10 @@ public class GalaxyRouterStrategyContext {
return
obj
;
return
obj
;
}
}
public
void
putTradeStrategy
(
String
code
,
IGalaxyRouterStrategyTrade
strategy
)
{
tradeHandlerMap
.
put
(
code
,
strategy
);
}
public
IGalaxyRouterStrategyTradeQuery
getTradeQueryStrategy
(
String
type
)
{
public
IGalaxyRouterStrategyTradeQuery
getTradeQueryStrategy
(
String
type
)
{
if
(!
this
.
isActived
(
type
)){
if
(!
this
.
isActived
(
type
)){
throw
new
LiquidnetServiceException
(
GalaxyErrorEnum
.
ROUTER_NOT_EXIST
.
getCode
(),
GalaxyErrorEnum
.
ROUTER_NOT_EXIST
.
getMessage
());
throw
new
LiquidnetServiceException
(
GalaxyErrorEnum
.
ROUTER_NOT_EXIST
.
getCode
(),
GalaxyErrorEnum
.
ROUTER_NOT_EXIST
.
getMessage
());
...
@@ -92,10 +96,6 @@ public class GalaxyRouterStrategyContext {
...
@@ -92,10 +96,6 @@ public class GalaxyRouterStrategyContext {
tradeQueryHandlerMap
.
put
(
code
,
strategy
);
tradeQueryHandlerMap
.
put
(
code
,
strategy
);
}
}
public
void
putTradeStrategy
(
String
code
,
IGalaxyRouterStrategyTrade
strategy
)
{
tradeHandlerMap
.
put
(
code
,
strategy
);
}
private
boolean
isActived
(
String
routerType
){
private
boolean
isActived
(
String
routerType
){
List
<
String
>
routerList
=
galaxyConfig
.
getRouterList
();
List
<
String
>
routerList
=
galaxyConfig
.
getRouterList
();
boolean
rs
=
false
;
boolean
rs
=
false
;
...
...
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/src/main/java/com/liquidnet/service/galaxy/router/zxin/biz/ZxinTradeQueryBiz.java
View file @
57ba38a5
...
@@ -7,10 +7,13 @@ import com.liquidnet.common.third.zxlnft.dto.ZxlnftResponseDto;
...
@@ -7,10 +7,13 @@ import com.liquidnet.common.third.zxlnft.dto.ZxlnftResponseDto;
import
com.liquidnet.common.third.zxlnft.util.ZxlWalletSdkUtil
;
import
com.liquidnet.common.third.zxlnft.util.ZxlWalletSdkUtil
;
import
com.liquidnet.common.third.zxlnft.util.ZxlnftSdkUtil
;
import
com.liquidnet.common.third.zxlnft.util.ZxlnftSdkUtil
;
import
com.liquidnet.commons.lang.util.BeanUtil
;
import
com.liquidnet.commons.lang.util.BeanUtil
;
import
com.liquidnet.commons.lang.util.StringUtil
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.galaxy.constant.GalaxyErrorEnum
;
import
com.liquidnet.service.galaxy.dto.bo.GalaxySeriesNftInfoBo
;
import
com.liquidnet.service.galaxy.dto.bo.GalaxyUserInfoBo
;
import
com.liquidnet.service.galaxy.dto.bo.GalaxyUserInfoBo
;
import
com.liquidnet.service.galaxy.dto.param.
GalaxyQueryNftListReqDto
;
import
com.liquidnet.service.galaxy.dto.param.
*
;
import
com.liquidnet.service.galaxy.
dto.param.GalaxyQueryNftListRespDto
;
import
com.liquidnet.service.galaxy.
router.strategy.IGalaxyRouterStrategyTradeQuery
;
import
com.liquidnet.service.galaxy.utils.GalaxyDataUtils
;
import
com.liquidnet.service.galaxy.utils.GalaxyDataUtils
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -27,7 +30,7 @@ import org.springframework.stereotype.Component;
...
@@ -27,7 +30,7 @@ import org.springframework.stereotype.Component;
*/
*/
@Slf4j
@Slf4j
@Component
@Component
public
class
ZxinTradeQueryBiz
{
public
class
ZxinTradeQueryBiz
implements
IGalaxyRouterStrategyTradeQuery
{
@Autowired
@Autowired
private
ZxlnftSdkUtil
zxlnftSdkUtil
;
private
ZxlnftSdkUtil
zxlnftSdkUtil
;
...
@@ -40,25 +43,62 @@ public class ZxinTradeQueryBiz {
...
@@ -40,25 +43,62 @@ public class ZxinTradeQueryBiz {
@Autowired
@Autowired
private
GalaxyDataUtils
dataUtils
;
private
GalaxyDataUtils
dataUtils
;
public
ResponseDto
<
GalaxyQueryNftListRespDto
>
nftList
(
GalaxyQueryNftListReqDto
reqDto
)
{
@Override
public
ResponseDto
<
GalaxyQueryNftInfoRespDto
>
queryNftInfo
(
GalaxyQueryNftInfoReqDto
reqDto
)
{
return
null
;
}
@Override
public
ResponseDto
<
GalaxyQueryNftTradeListRespDto
>
queryNftTradeList
(
GalaxyQueryNftTradeListReqDto
reqDto
)
{
return
null
;
}
@Override
public
ResponseDto
<
GalaxyQuerySeriesInfoRespDto
>
querySeriesInfo
(
GalaxyQuerySeriesInfoReqDto
reqDto
)
{
return
null
;
}
@Override
public
ResponseDto
<
GalaxyQueryUserSeriesNftListRespDto
>
queryUserSeriesNftList
(
GalaxyQueryUserSeriesNftListReqDto
reqDto
)
{
//获取用户信息
//获取用户信息
GalaxyUserInfoBo
userInfoBo
=
dataUtils
.
getGalaxyUserInfo
(
reqDto
.
getRouterType
(),
reqDto
.
getUserId
());
GalaxyUserInfoBo
userInfoBo
=
dataUtils
.
getGalaxyUserInfo
(
reqDto
.
getRouterType
(),
reqDto
.
getUserId
());
//获取sku信息
GalaxySeriesNftInfoBo
seriesNftInfoBo
=
dataUtils
.
getSeriesNftInfoBo
(
reqDto
.
getRouterType
(),
reqDto
.
getSkuId
());
if
(
StringUtil
.
isNull
(
seriesNftInfoBo
)){
return
ResponseDto
.
failure
(
GalaxyErrorEnum
.
SERIES_NFT_INFO_NOT_EXIST
.
getCode
(),
GalaxyErrorEnum
.
SERIES_NFT_INFO_NOT_EXIST
.
getMessage
());
}
Nft037AddressListReqDto
nft037ReqDto
=
Nft037AddressListReqDto
.
getNew
();
Nft037AddressListReqDto
nft037ReqDto
=
Nft037AddressListReqDto
.
getNew
();
nft037ReqDto
.
setAddr
(
userInfoBo
.
getBlockChainAddress
());
nft037ReqDto
.
setAddr
(
userInfoBo
.
getBlockChainAddress
());
nft037ReqDto
.
setSeriesId
(
reqDt
o
.
getSeriesId
());
nft037ReqDto
.
setSeriesId
(
seriesNftInfoB
o
.
getSeriesId
());
nft037ReqDto
.
setLimit
(
1000
l
);
nft037ReqDto
.
setLimit
(
1000
l
);
ZxlnftResponseDto
<
Nft037AddressListRespDto
>
zxlnftResponseDto
=
zxlnftSdkUtil
.
nft037AddressList
(
nft037ReqDto
);
ZxlnftResponseDto
<
Nft037AddressListRespDto
>
zxlnftResponseDto
=
zxlnftSdkUtil
.
nft037AddressList
(
nft037ReqDto
);
GalaxyQuery
NftListRespDto
queryNftListRespDto
=
GalaxyQuery
NftListRespDto
.
getNew
();
GalaxyQuery
UserSeriesNftListRespDto
queryNftListRespDto
=
GalaxyQueryUserSeries
NftListRespDto
.
getNew
();
if
(
zxlnftResponseDto
.
isSuccess
()){
if
(
zxlnftResponseDto
.
isSuccess
()){
BeanUtil
.
copy
(
zxlnftResponseDto
.
getData
(),
queryNftListRespDto
);
BeanUtil
.
copy
(
zxlnftResponseDto
.
getData
(),
queryNftListRespDto
);
queryNftListRespDto
.
setUserId
(
reqDto
.
getUserId
());
queryNftListRespDto
.
setUserId
(
reqDto
.
getUserId
());
queryNftListRespDto
.
setSeriesId
(
reqDt
o
.
getSeriesId
());
queryNftListRespDto
.
setSeriesId
(
seriesNftInfoB
o
.
getSeriesId
());
}
else
{
}
else
{
return
ResponseDto
.
failure
();
return
ResponseDto
.
failure
();
}
}
return
ResponseDto
.
success
(
queryNftListRespDto
);
return
ResponseDto
.
success
(
queryNftListRespDto
);
}
}
@Override
public
ResponseDto
<
GalaxyQueryUserTradeAllListRespDto
>
queryUserTradeAllList
(
GalaxyQueryUserTradeAllListReqDto
reqDto
)
{
return
null
;
}
@Override
public
ResponseDto
<
GalaxyQueryUserTradeInListRespDto
>
queryUserTradeInList
(
GalaxyQueryUserTradeInListReqDto
reqDto
)
{
return
null
;
}
@Override
public
ResponseDto
<
GalaxyQueryUserTradeOutListRespDto
>
queryUserTradeOutList
(
GalaxyQueryUserTradeOutListReqDto
reqDto
)
{
return
null
;
}
}
}
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/src/main/java/com/liquidnet/service/galaxy/router/zxin/service/GalaxyRouterStrategyZxlTradeQueryImpl.java
View file @
57ba38a5
...
@@ -2,8 +2,7 @@ package com.liquidnet.service.galaxy.router.zxin.service;
...
@@ -2,8 +2,7 @@ package com.liquidnet.service.galaxy.router.zxin.service;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.galaxy.constant.GalaxyEnum
;
import
com.liquidnet.service.galaxy.constant.GalaxyEnum
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyQueryNftListReqDto
;
import
com.liquidnet.service.galaxy.dto.param.*
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyQueryNftListRespDto
;
import
com.liquidnet.service.galaxy.router.strategy.IGalaxyRouterStrategyTradeQuery
;
import
com.liquidnet.service.galaxy.router.strategy.IGalaxyRouterStrategyTradeQuery
;
import
com.liquidnet.service.galaxy.router.strategy.annotation.StrategyGalaxyRouterTradeQueryHandler
;
import
com.liquidnet.service.galaxy.router.strategy.annotation.StrategyGalaxyRouterTradeQueryHandler
;
import
com.liquidnet.service.galaxy.router.zxin.biz.ZxinTradeQueryBiz
;
import
com.liquidnet.service.galaxy.router.zxin.biz.ZxinTradeQueryBiz
;
...
@@ -28,7 +27,37 @@ public class GalaxyRouterStrategyZxlTradeQueryImpl implements IGalaxyRouterStrat
...
@@ -28,7 +27,37 @@ public class GalaxyRouterStrategyZxlTradeQueryImpl implements IGalaxyRouterStrat
private
ZxinTradeQueryBiz
zxinTradeQueryBiz
;
private
ZxinTradeQueryBiz
zxinTradeQueryBiz
;
@Override
@Override
public
ResponseDto
<
GalaxyQueryNftListRespDto
>
nftList
(
GalaxyQueryNftListReqDto
reqDto
)
{
public
ResponseDto
<
GalaxyQueryNftInfoRespDto
>
queryNftInfo
(
GalaxyQueryNftInfoReqDto
reqDto
)
{
return
zxinTradeQueryBiz
.
nftList
(
reqDto
);
return
zxinTradeQueryBiz
.
queryNftInfo
(
reqDto
);
}
@Override
public
ResponseDto
<
GalaxyQueryNftTradeListRespDto
>
queryNftTradeList
(
GalaxyQueryNftTradeListReqDto
reqDto
)
{
return
zxinTradeQueryBiz
.
queryNftTradeList
(
reqDto
);
}
@Override
public
ResponseDto
<
GalaxyQuerySeriesInfoRespDto
>
querySeriesInfo
(
GalaxyQuerySeriesInfoReqDto
reqDto
)
{
return
zxinTradeQueryBiz
.
querySeriesInfo
(
reqDto
);
}
@Override
public
ResponseDto
<
GalaxyQueryUserSeriesNftListRespDto
>
queryUserSeriesNftList
(
GalaxyQueryUserSeriesNftListReqDto
reqDto
)
{
return
zxinTradeQueryBiz
.
queryUserSeriesNftList
(
reqDto
);
}
@Override
public
ResponseDto
<
GalaxyQueryUserTradeAllListRespDto
>
queryUserTradeAllList
(
GalaxyQueryUserTradeAllListReqDto
reqDto
)
{
return
zxinTradeQueryBiz
.
queryUserTradeAllList
(
reqDto
);
}
@Override
public
ResponseDto
<
GalaxyQueryUserTradeInListRespDto
>
queryUserTradeInList
(
GalaxyQueryUserTradeInListReqDto
reqDto
)
{
return
zxinTradeQueryBiz
.
queryUserTradeInList
(
reqDto
);
}
@Override
public
ResponseDto
<
GalaxyQueryUserTradeOutListRespDto
>
queryUserTradeOutList
(
GalaxyQueryUserTradeOutListReqDto
reqDto
)
{
return
zxinTradeQueryBiz
.
queryUserTradeOutList
(
reqDto
);
}
}
}
}
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/src/main/java/com/liquidnet/service/galaxy/service/impl/GalaxyTradeQueryServiceImpl.java
View file @
57ba38a5
package
com
.
liquidnet
.
service
.
galaxy
.
service
.
impl
;
package
com
.
liquidnet
.
service
.
galaxy
.
service
.
impl
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyQueryNftListReqDto
;
import
com.liquidnet.service.galaxy.dto.param.*
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyQueryNftListRespDto
;
import
com.liquidnet.service.galaxy.router.strategy.GalaxyRouterStrategyContext
;
import
com.liquidnet.service.galaxy.router.strategy.GalaxyRouterStrategyContext
;
import
com.liquidnet.service.galaxy.service.IGalaxyTradeQueryService
;
import
com.liquidnet.service.galaxy.service.IGalaxyTradeQueryService
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -25,7 +24,37 @@ public class GalaxyTradeQueryServiceImpl implements IGalaxyTradeQueryService {
...
@@ -25,7 +24,37 @@ public class GalaxyTradeQueryServiceImpl implements IGalaxyTradeQueryService {
private
GalaxyRouterStrategyContext
galaxyRouterStrategyContext
;
private
GalaxyRouterStrategyContext
galaxyRouterStrategyContext
;
@Override
@Override
public
ResponseDto
<
GalaxyQueryNftListRespDto
>
nftList
(
GalaxyQueryNftListReqDto
reqDto
)
{
public
ResponseDto
<
GalaxyQueryNftInfoRespDto
>
queryNftInfo
(
GalaxyQueryNftInfoReqDto
reqDto
)
{
return
galaxyRouterStrategyContext
.
getTradeQueryStrategy
(
reqDto
.
getRouterType
()).
nftList
(
reqDto
);
return
galaxyRouterStrategyContext
.
getTradeQueryStrategy
(
reqDto
.
getRouterType
()).
queryNftInfo
(
reqDto
);
}
@Override
public
ResponseDto
<
GalaxyQueryNftTradeListRespDto
>
queryNftTradeList
(
GalaxyQueryNftTradeListReqDto
reqDto
)
{
return
galaxyRouterStrategyContext
.
getTradeQueryStrategy
(
reqDto
.
getRouterType
()).
queryNftTradeList
(
reqDto
);
}
@Override
public
ResponseDto
<
GalaxyQuerySeriesInfoRespDto
>
querySeriesInfo
(
GalaxyQuerySeriesInfoReqDto
reqDto
)
{
return
galaxyRouterStrategyContext
.
getTradeQueryStrategy
(
reqDto
.
getRouterType
()).
querySeriesInfo
(
reqDto
);
}
@Override
public
ResponseDto
<
GalaxyQueryUserSeriesNftListRespDto
>
queryUserSeriesNftList
(
GalaxyQueryUserSeriesNftListReqDto
reqDto
)
{
return
galaxyRouterStrategyContext
.
getTradeQueryStrategy
(
reqDto
.
getRouterType
()).
queryUserSeriesNftList
(
reqDto
);
}
@Override
public
ResponseDto
<
GalaxyQueryUserTradeAllListRespDto
>
queryUserTradeAllList
(
GalaxyQueryUserTradeAllListReqDto
reqDto
)
{
return
galaxyRouterStrategyContext
.
getTradeQueryStrategy
(
reqDto
.
getRouterType
()).
queryUserTradeAllList
(
reqDto
);
}
@Override
public
ResponseDto
<
GalaxyQueryUserTradeInListRespDto
>
queryUserTradeInList
(
GalaxyQueryUserTradeInListReqDto
reqDto
)
{
return
galaxyRouterStrategyContext
.
getTradeQueryStrategy
(
reqDto
.
getRouterType
()).
queryUserTradeInList
(
reqDto
);
}
@Override
public
ResponseDto
<
GalaxyQueryUserTradeOutListRespDto
>
queryUserTradeOutList
(
GalaxyQueryUserTradeOutListReqDto
reqDto
)
{
return
galaxyRouterStrategyContext
.
getTradeQueryStrategy
(
reqDto
.
getRouterType
()).
queryUserTradeOutList
(
reqDto
);
}
}
}
}
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/src/main/resources/bootstrap-dev.yml
View file @
57ba38a5
...
@@ -6,8 +6,7 @@ liquidnet:
...
@@ -6,8 +6,7 @@ liquidnet:
username
:
user
username
:
user
password
:
user123
password
:
user123
eureka
:
eureka
:
# host: 39.107.71.112:7001
host
:
39.107.71.112:7001
host
:
127.0.0.1:7001
# end-dev-这里是配置信息基本值
# end-dev-这里是配置信息基本值
...
...
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