记得上下班打卡 | 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
b8f619dd
Commit
b8f619dd
authored
Jun 28, 2022
by
anjiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
redis-队列多数据源
parent
def5a406
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
41 additions
and
45 deletions
+41
-45
application-dev.yml
liquidnet-bus-config/liquidnet-config/application-dev.yml
+1
-1
XuperUserCommonBiz.java
...t/service/galaxy/router/xuper/biz/XuperUserCommonBiz.java
+1
-2
GalaxyTradeController.java
...dnet/service/galaxy/controller/GalaxyTradeController.java
+39
-42
No files found.
liquidnet-bus-config/liquidnet-config/application-dev.yml
View file @
b8f619dd
...
...
@@ -127,7 +127,7 @@ liquidnet:
galaxy
:
url
:
http://devgalaxy.zhengzai.tv
temp-file-path
:
/data/galaxy/tempFilePath
router
:
zxinchain,
eth
router
:
zxinchain,
xuper
zxlnft
:
walletSdkUrl
:
http://127.0.0.1:30505
nftApiUrl
:
https://nfttest2.zxinchain.com
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-common/src/main/java/com/liquidnet/service/galaxy/router/xuper/biz/XuperUserCommonBiz.java
View file @
b8f619dd
...
...
@@ -14,7 +14,6 @@ import com.liquidnet.service.base.ResponseDto;
import
com.liquidnet.service.base.SqlMapping
;
import
com.liquidnet.service.base.constant.MQConst
;
import
com.liquidnet.service.galaxy.constant.GalaxyConstant
;
import
com.liquidnet.service.galaxy.constant.GalaxyEnum
;
import
com.liquidnet.service.galaxy.dto.bo.GalaxyUserInfoBo
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyUserRegisterReqDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyUserRegisterRespDto
;
...
...
@@ -135,7 +134,7 @@ public class XuperUserCommonBiz {
userInfoBo
.
setUserIdentification
(
userIdentification
);
userInfoBo
.
setUserPubKey
(
userPubKey
);
userInfoBo
.
setUserPriKey
(
userPriKey
);
userInfoBo
.
setRouterType
(
GalaxyEnum
.
RouterTypeEnum
.
ZXINCHAIN
.
getCod
e
());
userInfoBo
.
setRouterType
(
reqDto
.
getRouterTyp
e
());
userInfoBo
.
setBlockChainAddress
(
address
);
dataUtils
.
setGalaxyUserInfo
(
reqDto
.
getRouterType
(),
reqDto
.
getUserId
(),
userInfoBo
);
}
catch
(
Exception
e
){
...
...
liquidnet-bus-service/liquidnet-service-goblin/liquidnet-service-goblin-impl/src/main/java/com/liquidnet/service/galaxy/controller/GalaxyTradeController.java
View file @
b8f619dd
package
com
.
liquidnet
.
service
.
galaxy
.
controller
;
import
com.github.xiaoymin.knife4j.annotations.ApiOperationSupport
;
import
com.liquidnet.commons.lang.util.StringUtil
;
import
com.liquidnet.service.base.ResponseDto
;
import
com.liquidnet.service.galaxy.aop.annotation.ControllerLog
;
import
com.liquidnet.service.galaxy.dto.param.*
;
...
...
@@ -17,8 +16,6 @@ import org.springframework.web.bind.annotation.RestController;
import
javax.annotation.Resource
;
import
javax.validation.Valid
;
import
java.util.ArrayList
;
import
java.util.List
;
/**
* @author AnJiabin <anjiabin@zhengzai.tv>
...
...
@@ -38,21 +35,21 @@ public class GalaxyTradeController {
@Resource
(
name
=
"galaxyTradeServiceImpl"
)
private
IGalaxyTradeService
galaxyTradeService
;
@ControllerLog
(
description
=
"NFT购买"
)
@ApiOperationSupport
(
order
=
1
)
@ApiOperation
(
value
=
"NFT购买"
)
@PostMapping
(
value
=
{
"nftBuy"
})
public
ResponseDto
<
GalaxyNftBuyRespDto
>
nftBuy
(
@Valid
@RequestBody
GalaxyNftBuyReqDto
reqDto
){
return
galaxyTradeService
.
nftBuy
(
reqDto
);
}
@ControllerLog
(
description
=
"NFT购买结果查询"
)
@ApiOperationSupport
(
order
=
1
)
@ApiOperation
(
value
=
"NFT购买结果查询"
)
@PostMapping
(
value
=
{
"nftBuyResultQuery"
})
public
ResponseDto
<
GalaxyNftBuyResultQueryRespDto
>
nftBuyResultQuery
(
@Valid
@RequestBody
GalaxyNftBuyResultQueryReqDto
reqDto
){
return
galaxyTradeService
.
nftBuyResultQuery
(
reqDto
);
}
//
@ControllerLog(description = "NFT购买")
//
@ApiOperationSupport(order = 1)
//
@ApiOperation(value = "NFT购买")
//
@PostMapping(value = {"nftBuy"})
//
public ResponseDto<GalaxyNftBuyRespDto> nftBuy(@Valid @RequestBody GalaxyNftBuyReqDto reqDto){
//
return galaxyTradeService.nftBuy(reqDto);
//
}
//
//
@ControllerLog(description = "NFT购买结果查询")
//
@ApiOperationSupport(order = 1)
//
@ApiOperation(value = "NFT购买结果查询")
//
@PostMapping(value = {"nftBuyResultQuery"})
//
public ResponseDto<GalaxyNftBuyResultQueryRespDto> nftBuyResultQuery(@Valid @RequestBody GalaxyNftBuyResultQueryReqDto reqDto){
//
return galaxyTradeService.nftBuyResultQuery(reqDto);
//
}
@ControllerLog
(
description
=
"NFT购买(发行+购买)"
)
@ApiOperationSupport
(
order
=
1
)
...
...
@@ -75,30 +72,30 @@ public class GalaxyTradeController {
return
galaxyTradeService
.
nftPublishAndBuyResultQuery
(
reqDto
);
}
@ControllerLog
(
description
=
"NFT发行购买结果批量查询"
)
@ApiOperationSupport
(
order
=
1
)
@ApiOperation
(
value
=
"NFT发行购买结果批量查询"
)
@PostMapping
(
value
=
{
"nftPublishAndBuyResultBatchQuery"
})
public
ResponseDto
<
GalaxyNftPublishAndBuyResultBatchQueryRespDto
>
nftPublishAndBuyResultBatchQuery
(
@Valid
@RequestBody
GalaxyNftPublishAndBuyResultBatchQueryReqDto
reqDto
){
//定义返回结果
List
<
GalaxyNftPublishAndBuyResultQueryRespDto
>
routerBuyInfoList
=
new
ArrayList
<>();
//获取请求信息
List
<
GalaxyNftPublishAndBuyResultBatchQueryReqDto
.
RouterOrderInfo
>
routerOrderInfoList
=
reqDto
.
getRouterOrderInfoList
();
routerOrderInfoList
.
forEach
(
routerOrderInfo
->
{
GalaxyNftPublishAndBuyRouterBatchQueryReqDto
batchQueryReqDto
=
GalaxyNftPublishAndBuyRouterBatchQueryReqDto
.
getNew
();
batchQueryReqDto
.
setUserId
(
routerOrderInfo
.
getUserId
());
batchQueryReqDto
.
setRouterType
(
routerOrderInfo
.
getRouterType
());
batchQueryReqDto
.
setNftOrderPayIdList
(
routerOrderInfo
.
getNftOrderPayIdList
());
//进行批量查询
ResponseDto
<
GalaxyNftPublishAndBuyRouterBatchQueryRespDto
>
responseDtoTemp
=
galaxyTradeService
.
nftPublishAndBuyResultBatchQuery
(
batchQueryReqDto
);
if
(
StringUtil
.
isNotNull
(
responseDtoTemp
)&&
responseDtoTemp
.
isSuccess
()){
routerBuyInfoList
.
addAll
(
responseDtoTemp
.
getData
().
getBuyInfoList
());
}
});
GalaxyNftPublishAndBuyResultBatchQueryRespDto
respDto
=
GalaxyNftPublishAndBuyResultBatchQueryRespDto
.
getNew
();
respDto
.
setRouterBuyInfoList
(
routerBuyInfoList
);
return
ResponseDto
.
success
(
respDto
);
}
//
@ControllerLog(description = "NFT发行购买结果批量查询")
//
@ApiOperationSupport(order = 1)
//
@ApiOperation(value = "NFT发行购买结果批量查询")
//
@PostMapping(value = {"nftPublishAndBuyResultBatchQuery"})
//
public ResponseDto<GalaxyNftPublishAndBuyResultBatchQueryRespDto> nftPublishAndBuyResultBatchQuery(@Valid @RequestBody GalaxyNftPublishAndBuyResultBatchQueryReqDto reqDto){
//
//定义返回结果
//
List<GalaxyNftPublishAndBuyResultQueryRespDto> routerBuyInfoList = new ArrayList<>();
//
//获取请求信息
//
List<GalaxyNftPublishAndBuyResultBatchQueryReqDto.RouterOrderInfo> routerOrderInfoList = reqDto.getRouterOrderInfoList();
//
routerOrderInfoList.forEach(routerOrderInfo -> {
//
GalaxyNftPublishAndBuyRouterBatchQueryReqDto batchQueryReqDto = GalaxyNftPublishAndBuyRouterBatchQueryReqDto.getNew();
//
batchQueryReqDto.setUserId(routerOrderInfo.getUserId());
//
batchQueryReqDto.setRouterType(routerOrderInfo.getRouterType());
//
batchQueryReqDto.setNftOrderPayIdList(routerOrderInfo.getNftOrderPayIdList());
//
//进行批量查询
//
ResponseDto<GalaxyNftPublishAndBuyRouterBatchQueryRespDto> responseDtoTemp = galaxyTradeService.nftPublishAndBuyResultBatchQuery(batchQueryReqDto);
//
if(StringUtil.isNotNull(responseDtoTemp)&&responseDtoTemp.isSuccess()){
//
routerBuyInfoList.addAll(responseDtoTemp.getData().getBuyInfoList());
//
}
//
});
//
GalaxyNftPublishAndBuyResultBatchQueryRespDto respDto = GalaxyNftPublishAndBuyResultBatchQueryRespDto.getNew();
//
respDto.setRouterBuyInfoList(routerBuyInfoList);
//
return ResponseDto.success(respDto);
//
}
// @ControllerLog(description = "NFT购买支付结果查询")
// @ApiOperationSupport(order = 1)
...
...
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