记得上下班打卡 | 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
3e8e99b1
Commit
3e8e99b1
authored
Mar 02, 2022
by
anjiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调试至信链NFt购买接口
parent
b93c122c
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
232 additions
and
86 deletions
+232
-86
Nft032SeriesRespDto.java
...iquidnet/common/third/zxlnft/dto/Nft032SeriesRespDto.java
+42
-36
Nft032SeriesResp.java
...quidnet/common/third/zxlnft/dto/nft/Nft032SeriesResp.java
+41
-36
Nft043BuyReq.java
...m/liquidnet/common/third/zxlnft/dto/nft/Nft043BuyReq.java
+1
-1
ZxlnftSdkUtil.java
...com/liquidnet/common/third/zxlnft/util/ZxlnftSdkUtil.java
+24
-0
TestZxlnftSdkUtil.java
.../java/com/liquidnet/service/zxlnft/TestZxlnftSdkUtil.java
+124
-13
No files found.
liquidnet-bus-common/liquidnet-common-third/liquidnet-common-third-zxlnft/src/main/java/com/liquidnet/common/third/zxlnft/dto/Nft032SeriesRespDto.java
View file @
3e8e99b1
package
com
.
liquidnet
.
common
.
third
.
zxlnft
.
dto
;
package
com
.
liquidnet
.
common
.
third
.
zxlnft
.
dto
;
import
com.liquidnet.common.third.zxlnft.dto.nft.Nft032SeriesResp
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
com.liquidnet.commons.lang.util.JsonUtils
;
import
lombok.Data
;
import
lombok.Data
;
...
@@ -16,6 +17,10 @@ import java.io.Serializable;
...
@@ -16,6 +17,10 @@ import java.io.Serializable;
*/
*/
@Data
@Data
public
class
Nft032SeriesRespDto
implements
Serializable
{
public
class
Nft032SeriesRespDto
implements
Serializable
{
private
Nft032SeriesResp
.
SeriesInfo
seriesInfo
;
@Data
public
class
SeriesInfo
{
/**
/**
* 系列ID
* 系列ID
*/
*/
...
@@ -52,6 +57,7 @@ public class Nft032SeriesRespDto implements Serializable {
...
@@ -52,6 +57,7 @@ public class Nft032SeriesRespDto implements Serializable {
* 创建时间戳
* 创建时间戳
*/
*/
private
String
createTimeStamp
;
private
String
createTimeStamp
;
}
private
static
final
Nft032SeriesRespDto
obj
=
new
Nft032SeriesRespDto
();
private
static
final
Nft032SeriesRespDto
obj
=
new
Nft032SeriesRespDto
();
public
static
Nft032SeriesRespDto
getNew
()
{
public
static
Nft032SeriesRespDto
getNew
()
{
...
...
liquidnet-bus-common/liquidnet-common-third/liquidnet-common-third-zxlnft/src/main/java/com/liquidnet/common/third/zxlnft/dto/nft/Nft032SeriesResp.java
View file @
3e8e99b1
...
@@ -16,6 +16,10 @@ import java.io.Serializable;
...
@@ -16,6 +16,10 @@ import java.io.Serializable;
*/
*/
@Data
@Data
public
class
Nft032SeriesResp
implements
Serializable
{
public
class
Nft032SeriesResp
implements
Serializable
{
private
SeriesInfo
seriesInfo
;
@Data
public
class
SeriesInfo
{
/**
/**
* 系列ID
* 系列ID
*/
*/
...
@@ -52,6 +56,7 @@ public class Nft032SeriesResp implements Serializable {
...
@@ -52,6 +56,7 @@ public class Nft032SeriesResp implements Serializable {
* 创建时间戳
* 创建时间戳
*/
*/
private
String
createTimeStamp
;
private
String
createTimeStamp
;
}
private
static
final
Nft032SeriesResp
obj
=
new
Nft032SeriesResp
();
private
static
final
Nft032SeriesResp
obj
=
new
Nft032SeriesResp
();
public
static
Nft032SeriesResp
getNew
()
{
public
static
Nft032SeriesResp
getNew
()
{
...
...
liquidnet-bus-common/liquidnet-common-third/liquidnet-common-third-zxlnft/src/main/java/com/liquidnet/common/third/zxlnft/dto/nft/Nft043BuyReq.java
View file @
3e8e99b1
...
@@ -49,7 +49,7 @@ public class Nft043BuyReq implements Serializable {
...
@@ -49,7 +49,7 @@ public class Nft043BuyReq implements Serializable {
*/
*/
private
String
signature
;
private
String
signature
;
/**
/**
*
要购买的nftId
*
平台方的私钥签名
*/
*/
private
String
platformSignature
;
private
String
platformSignature
;
private
static
final
Nft043BuyReq
obj
=
new
Nft043BuyReq
();
private
static
final
Nft043BuyReq
obj
=
new
Nft043BuyReq
();
...
...
liquidnet-bus-common/liquidnet-common-third/liquidnet-common-third-zxlnft/src/main/java/com/liquidnet/common/third/zxlnft/util/ZxlnftSdkUtil.java
View file @
3e8e99b1
...
@@ -891,6 +891,24 @@ public class ZxlnftSdkUtil {
...
@@ -891,6 +891,24 @@ public class ZxlnftSdkUtil {
Nft043BuyReq
req
=
Nft043BuyReq
.
getNew
();
Nft043BuyReq
req
=
Nft043BuyReq
.
getNew
();
BeanUtil
.
copy
(
reqDto
,
req
);
BeanUtil
.
copy
(
reqDto
,
req
);
//设置平台公钥
req
.
setPlatformPubKey
(
zxlnftConfig
.
getNftPlatformPubKey
());
/**
* 接收人的私钥签名,签名对象是(platformPubKey_receiverPubKey_pointReceiverAddr_applyScore_接口名_nftId_offerCount_operateId)
* 接口名:buy_nft
*/
String
signMetaData
=
req
.
getPlatformPubKey
()
.
concat
(
"_"
).
concat
(
req
.
getReceiverPubKey
())
.
concat
(
"_"
).
concat
(
req
.
getPointReceiverAddr
())
.
concat
(
"_"
).
concat
(
req
.
getApplyScore
().
toString
())
.
concat
(
"_"
).
concat
(
"buy_nft"
)
.
concat
(
"_"
).
concat
(
req
.
getNftId
())
.
concat
(
"_"
).
concat
(
req
.
getOfferCount
().
toString
())
.
concat
(
"_"
).
concat
(
req
.
getOperateId
());
String
signature
=
zxlnftBiz
.
createSign
(
zxlnftConfig
.
getNftPlatformPriKey
(),
signMetaData
);
req
.
setPlatformSignature
(
signature
);
Nft043BuyRespDto
respDto
=
Nft043BuyRespDto
.
getNew
();
Nft043BuyRespDto
respDto
=
Nft043BuyRespDto
.
getNew
();
try
{
try
{
Nft043BuyResp
resp
=
zxlnftSdkService
.
nft043Buy
(
req
);
Nft043BuyResp
resp
=
zxlnftSdkService
.
nft043Buy
(
req
);
...
@@ -908,6 +926,9 @@ public class ZxlnftSdkUtil {
...
@@ -908,6 +926,9 @@ public class ZxlnftSdkUtil {
Nft044BuyResultReq
req
=
Nft044BuyResultReq
.
getNew
();
Nft044BuyResultReq
req
=
Nft044BuyResultReq
.
getNew
();
BeanUtil
.
copy
(
reqDto
,
req
);
BeanUtil
.
copy
(
reqDto
,
req
);
//设置平台公钥
req
.
setPlatformPubKey
(
zxlnftConfig
.
getNftPlatformPubKey
());
Nft044BuyResultRespDto
respDto
=
Nft044BuyResultRespDto
.
getNew
();
Nft044BuyResultRespDto
respDto
=
Nft044BuyResultRespDto
.
getNew
();
try
{
try
{
Nft044BuyResultResp
resp
=
zxlnftSdkService
.
nft044BuyResult
(
req
);
Nft044BuyResultResp
resp
=
zxlnftSdkService
.
nft044BuyResult
(
req
);
...
@@ -925,6 +946,9 @@ public class ZxlnftSdkUtil {
...
@@ -925,6 +946,9 @@ public class ZxlnftSdkUtil {
Nft045BuyPayResultReq
req
=
Nft045BuyPayResultReq
.
getNew
();
Nft045BuyPayResultReq
req
=
Nft045BuyPayResultReq
.
getNew
();
BeanUtil
.
copy
(
reqDto
,
req
);
BeanUtil
.
copy
(
reqDto
,
req
);
//设置平台公钥
req
.
setPlatformPubKey
(
zxlnftConfig
.
getNftPlatformPubKey
());
Nft045BuyPayResultRespDto
respDto
=
Nft045BuyPayResultRespDto
.
getNew
();
Nft045BuyPayResultRespDto
respDto
=
Nft045BuyPayResultRespDto
.
getNew
();
try
{
try
{
Nft045BuyPayResultResp
resp
=
zxlnftSdkService
.
nft045BuyPayResult
(
req
);
Nft045BuyPayResultResp
resp
=
zxlnftSdkService
.
nft045BuyPayResult
(
req
);
...
...
liquidnet-bus-service/liquidnet-service-zxlnft/liquidnet-service-zxlnft-impl/src/test/java/com/liquidnet/service/zxlnft/TestZxlnftSdkUtil.java
View file @
3e8e99b1
This diff is collapsed.
Click to expand it.
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