记得上下班打卡 | 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
3f19773a
Commit
3f19773a
authored
Mar 18, 2022
by
anjiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化相关策略实现
parent
5f1ad96c
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
88 additions
and
26 deletions
+88
-26
GalaxyErrorCodeEnum.java
...iquidnet/service/galaxy/constant/GalaxyErrorCodeEnum.java
+2
-1
GalaxyArtworkController.java
...et/service/galaxy/controller/GalaxyArtworkController.java
+2
-2
GalaxyPublishController.java
...et/service/galaxy/controller/GalaxyPublishController.java
+12
-2
GalaxyTradeController.java
...dnet/service/galaxy/controller/GalaxyTradeController.java
+19
-6
GalaxyUserController.java
...idnet/service/galaxy/controller/GalaxyUserController.java
+12
-2
GalaxyRouterStrategyContext.java
...e/galaxy/router/strategy/GalaxyRouterStrategyContext.java
+15
-4
ZxinUserBiz.java
...liquidnet/service/galaxy/router/zxin/biz/ZxinUserBiz.java
+17
-0
GalaxyRouterStrategyZxlUserImpl.java
.../router/zxin/service/GalaxyRouterStrategyZxlUserImpl.java
+1
-1
GalaxyArtworkServiceImpl.java
...service/galaxy/service/impl/GalaxyArtworkServiceImpl.java
+1
-1
GalaxyPublishServiceImpl.java
...service/galaxy/service/impl/GalaxyPublishServiceImpl.java
+2
-2
GalaxyTradeServiceImpl.java
...t/service/galaxy/service/impl/GalaxyTradeServiceImpl.java
+3
-3
GalaxyUserServiceImpl.java
...et/service/galaxy/service/impl/GalaxyUserServiceImpl.java
+2
-2
No files found.
liquidnet-bus-api/liquidnet-service-galaxy-api/src/main/java/com/liquidnet/service/galaxy/constant/GalaxyErrorCodeEnum.java
View file @
3f19773a
...
@@ -14,7 +14,8 @@ public enum GalaxyErrorCodeEnum {
...
@@ -14,7 +14,8 @@ public enum GalaxyErrorCodeEnum {
SERIES_CLAIM_ERROR_FIVE_TIMES
(
"NFT0010002"
,
"NFT系列声明失败,任务查询超过5次"
),
SERIES_CLAIM_ERROR_FIVE_TIMES
(
"NFT0010002"
,
"NFT系列声明失败,任务查询超过5次"
),
PUBLISH_FAIL
(
"NFT0010003"
,
"NFT发行失败,未获取nft"
),
PUBLISH_FAIL
(
"NFT0010003"
,
"NFT发行失败,未获取nft"
),
PUBLISH_BUY_FAIL
(
"NFT0010004"
,
"NFT发行购买失败,未发起购买"
),
PUBLISH_BUY_FAIL
(
"NFT0010004"
,
"NFT发行购买失败,未发起购买"
),
PUBLISH_FAIL_ALREADY_EXIST
(
"NFT0010005"
,
"NFT发行失败,该订单已经发行过指定nft!"
);
PUBLISH_FAIL_ALREADY_EXIST
(
"NFT0010005"
,
"NFT发行失败,该订单已经发行过指定nft!"
),
ROUTER_NOT_EXIST
(
"NFT0010006"
,
"路由类型不存在"
);
private
String
code
;
private
String
code
;
private
String
message
;
private
String
message
;
...
...
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/src/main/java/com/liquidnet/service/galaxy/controller/GalaxyArtworkController.java
View file @
3f19773a
...
@@ -8,13 +8,13 @@ import com.liquidnet.service.galaxy.service.IGalaxyArtworkService;
...
@@ -8,13 +8,13 @@ import com.liquidnet.service.galaxy.service.IGalaxyArtworkService;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
/**
/**
...
@@ -32,7 +32,7 @@ import javax.validation.Valid;
...
@@ -32,7 +32,7 @@ import javax.validation.Valid;
@Validated
@Validated
@Slf4j
@Slf4j
public
class
GalaxyArtworkController
{
public
class
GalaxyArtworkController
{
@
Autowired
@
Resource
(
name
=
"galaxyArtworkServiceImpl"
)
private
IGalaxyArtworkService
galaxyArtworkService
;
private
IGalaxyArtworkService
galaxyArtworkService
;
@ControllerLog
(
description
=
"NFT图片风险检测"
)
@ControllerLog
(
description
=
"NFT图片风险检测"
)
...
...
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/src/main/java/com/liquidnet/service/galaxy/controller/GalaxyPublishController.java
View file @
3f19773a
...
@@ -5,17 +5,19 @@ import com.liquidnet.service.base.ResponseDto;
...
@@ -5,17 +5,19 @@ 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.GalaxyNftPublishReqDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyNftPublishReqDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyNftPublishRespDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyNftPublishRespDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyNftPublishResultQueryReqDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyNftPublishResultQueryRespDto
;
import
com.liquidnet.service.galaxy.service.IGalaxyPublishService
;
import
com.liquidnet.service.galaxy.service.IGalaxyPublishService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
/**
/**
...
@@ -33,7 +35,7 @@ import javax.validation.Valid;
...
@@ -33,7 +35,7 @@ import javax.validation.Valid;
@Validated
@Validated
@Slf4j
@Slf4j
public
class
GalaxyPublishController
{
public
class
GalaxyPublishController
{
@
Autowired
@
Resource
(
name
=
"galaxyPublishServiceImpl"
)
private
IGalaxyPublishService
galaxyPublishService
;
private
IGalaxyPublishService
galaxyPublishService
;
@ControllerLog
(
description
=
"NFT发行"
)
@ControllerLog
(
description
=
"NFT发行"
)
...
@@ -43,4 +45,12 @@ public class GalaxyPublishController {
...
@@ -43,4 +45,12 @@ public class GalaxyPublishController {
public
ResponseDto
<
GalaxyNftPublishRespDto
>
nftPublish
(
@Valid
@RequestBody
GalaxyNftPublishReqDto
reqDto
){
public
ResponseDto
<
GalaxyNftPublishRespDto
>
nftPublish
(
@Valid
@RequestBody
GalaxyNftPublishReqDto
reqDto
){
return
galaxyPublishService
.
nftPublish
(
reqDto
);
return
galaxyPublishService
.
nftPublish
(
reqDto
);
}
}
@ControllerLog
(
description
=
"NFT发行结果查询"
)
@ApiOperationSupport
(
order
=
3
)
@ApiOperation
(
value
=
"NFT发行结果查询"
)
@PostMapping
(
value
=
{
"nftPublishResultQuery"
})
public
ResponseDto
<
GalaxyNftPublishResultQueryRespDto
>
nftPublishResultQuery
(
@Valid
@RequestBody
GalaxyNftPublishResultQueryReqDto
reqDto
)
{
return
galaxyPublishService
.
nftPublishResultQuery
(
reqDto
);
}
}
}
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/src/main/java/com/liquidnet/service/galaxy/controller/GalaxyTradeController.java
View file @
3f19773a
...
@@ -3,21 +3,18 @@ package com.liquidnet.service.galaxy.controller;
...
@@ -3,21 +3,18 @@ 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.GalaxyNftBuyReqDto
;
import
com.liquidnet.service.galaxy.dto.param.*
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyNftBuyRespDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyNftPublishAndBuyReqDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyNftPublishAndBuyRespDto
;
import
com.liquidnet.service.galaxy.service.IGalaxyTradeService
;
import
com.liquidnet.service.galaxy.service.IGalaxyTradeService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
/**
/**
...
@@ -35,7 +32,7 @@ import javax.validation.Valid;
...
@@ -35,7 +32,7 @@ import javax.validation.Valid;
@Validated
@Validated
@Slf4j
@Slf4j
public
class
GalaxyTradeController
{
public
class
GalaxyTradeController
{
@
Autowired
@
Resource
(
name
=
"galaxyTradeServiceImpl"
)
private
IGalaxyTradeService
galaxyTradeService
;
private
IGalaxyTradeService
galaxyTradeService
;
@ControllerLog
(
description
=
"NFT购买"
)
@ControllerLog
(
description
=
"NFT购买"
)
...
@@ -46,6 +43,14 @@ public class GalaxyTradeController {
...
@@ -46,6 +43,14 @@ public class GalaxyTradeController {
return
galaxyTradeService
.
nftBuy
(
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购买(发行+购买)"
)
@ControllerLog
(
description
=
"NFT购买(发行+购买)"
)
@ApiOperationSupport
(
order
=
1
)
@ApiOperationSupport
(
order
=
1
)
@ApiOperation
(
value
=
"NFT购买(发行+购买)"
)
@ApiOperation
(
value
=
"NFT购买(发行+购买)"
)
...
@@ -53,4 +58,12 @@ public class GalaxyTradeController {
...
@@ -53,4 +58,12 @@ public class GalaxyTradeController {
public
ResponseDto
<
GalaxyNftPublishAndBuyRespDto
>
nftPublishAndBuy
(
@Valid
@RequestBody
GalaxyNftPublishAndBuyReqDto
reqDto
){
public
ResponseDto
<
GalaxyNftPublishAndBuyRespDto
>
nftPublishAndBuy
(
@Valid
@RequestBody
GalaxyNftPublishAndBuyReqDto
reqDto
){
return
galaxyTradeService
.
nftPublishAndBuy
(
reqDto
);
return
galaxyTradeService
.
nftPublishAndBuy
(
reqDto
);
}
}
@ControllerLog
(
description
=
"NFT购买支付结果查询"
)
@ApiOperationSupport
(
order
=
1
)
@ApiOperation
(
value
=
"NFT购买支付结果查询"
)
@PostMapping
(
value
=
{
"nftBuyPayResultQuery"
})
public
ResponseDto
<
GalaxyNftBuyPayResultQueryRespDto
>
nftBuyPayResultQuery
(
@Valid
@RequestBody
GalaxyNftBuyPayResultQueryReqDto
reqDto
){
return
galaxyTradeService
.
nftBuyPayResultQuery
(
reqDto
);
}
}
}
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/src/main/java/com/liquidnet/service/galaxy/controller/GalaxyUserController.java
View file @
3f19773a
...
@@ -3,19 +3,21 @@ package com.liquidnet.service.galaxy.controller;
...
@@ -3,19 +3,21 @@ 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.GalaxyUserBindStatusQueryReqDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyUserBindStatusQueryRespDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyUserRegisterReqDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyUserRegisterReqDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyUserRegisterRespDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyUserRegisterRespDto
;
import
com.liquidnet.service.galaxy.service.IGalaxyUserService
;
import
com.liquidnet.service.galaxy.service.IGalaxyUserService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
javax.annotation.Resource
;
import
javax.validation.Valid
;
import
javax.validation.Valid
;
/**
/**
...
@@ -33,7 +35,7 @@ import javax.validation.Valid;
...
@@ -33,7 +35,7 @@ import javax.validation.Valid;
@Validated
@Validated
@Slf4j
@Slf4j
public
class
GalaxyUserController
{
public
class
GalaxyUserController
{
@
Autowired
@
Resource
(
name
=
"galaxyUserServiceImpl"
)
private
IGalaxyUserService
galaxyUserService
;
private
IGalaxyUserService
galaxyUserService
;
@ControllerLog
(
description
=
"NFT用户注册"
)
@ControllerLog
(
description
=
"NFT用户注册"
)
...
@@ -43,4 +45,12 @@ public class GalaxyUserController {
...
@@ -43,4 +45,12 @@ public class GalaxyUserController {
public
ResponseDto
<
GalaxyUserRegisterRespDto
>
register
(
@Valid
@RequestBody
GalaxyUserRegisterReqDto
reqDto
)
{
public
ResponseDto
<
GalaxyUserRegisterRespDto
>
register
(
@Valid
@RequestBody
GalaxyUserRegisterReqDto
reqDto
)
{
return
galaxyUserService
.
userRegister
(
reqDto
);
return
galaxyUserService
.
userRegister
(
reqDto
);
}
}
@ControllerLog
(
description
=
"用户绑定状态查询"
)
@ApiOperationSupport
(
order
=
1
)
@ApiOperation
(
value
=
"用户绑定状态查询"
)
@PostMapping
(
value
=
{
"userBindStatusQuery"
})
public
ResponseDto
<
GalaxyUserBindStatusQueryRespDto
>
userBindStatusQuery
(
@Valid
@RequestBody
GalaxyUserBindStatusQueryReqDto
reqDto
)
{
return
galaxyUserService
.
userBindStatusQuery
(
reqDto
);
}
}
}
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/src/main/java/com/liquidnet/service/galaxy/router/strategy/GalaxyRouterStrategyContext.java
View file @
3f19773a
package
com
.
liquidnet
.
service
.
galaxy
.
router
.
strategy
;
package
com
.
liquidnet
.
service
.
galaxy
.
router
.
strategy
;
import
com.liquidnet.common.exception.LiquidnetServiceException
;
import
com.liquidnet.commons.lang.util.StringUtil
;
import
com.liquidnet.service.galaxy.constant.GalaxyErrorCodeEnum
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.util.HashMap
;
import
java.util.HashMap
;
...
@@ -22,7 +25,9 @@ public class GalaxyRouterStrategyContext {
...
@@ -22,7 +25,9 @@ public class GalaxyRouterStrategyContext {
private
final
Map
<
String
,
IGalaxyRouterStrategyTrade
>
tradeHandlerMap
=
new
HashMap
<>();
private
final
Map
<
String
,
IGalaxyRouterStrategyTrade
>
tradeHandlerMap
=
new
HashMap
<>();
public
IGalaxyRouterStrategyArtwork
getArtworkStrategy
(
String
type
)
{
public
IGalaxyRouterStrategyArtwork
getArtworkStrategy
(
String
type
)
{
return
artworkHandlerMap
.
get
(
type
);
IGalaxyRouterStrategyArtwork
obj
=
artworkHandlerMap
.
get
(
type
);
if
(
StringUtil
.
isNull
(
obj
))
throw
new
LiquidnetServiceException
(
GalaxyErrorCodeEnum
.
ROUTER_NOT_EXIST
.
getCode
(),
GalaxyErrorCodeEnum
.
ROUTER_NOT_EXIST
.
getMessage
());
return
obj
;
}
}
public
void
putArtworkStrategy
(
String
code
,
IGalaxyRouterStrategyArtwork
strategy
)
{
public
void
putArtworkStrategy
(
String
code
,
IGalaxyRouterStrategyArtwork
strategy
)
{
...
@@ -30,7 +35,9 @@ public class GalaxyRouterStrategyContext {
...
@@ -30,7 +35,9 @@ public class GalaxyRouterStrategyContext {
}
}
public
IGalaxyRouterStrategyUser
getUserStrategy
(
String
type
)
{
public
IGalaxyRouterStrategyUser
getUserStrategy
(
String
type
)
{
return
userHandlerMap
.
get
(
type
);
IGalaxyRouterStrategyUser
obj
=
userHandlerMap
.
get
(
type
);
if
(
StringUtil
.
isNull
(
obj
))
throw
new
LiquidnetServiceException
(
GalaxyErrorCodeEnum
.
ROUTER_NOT_EXIST
.
getCode
(),
GalaxyErrorCodeEnum
.
ROUTER_NOT_EXIST
.
getMessage
());
return
obj
;
}
}
public
void
putUserStrategy
(
String
code
,
IGalaxyRouterStrategyUser
strategy
)
{
public
void
putUserStrategy
(
String
code
,
IGalaxyRouterStrategyUser
strategy
)
{
...
@@ -38,7 +45,9 @@ public class GalaxyRouterStrategyContext {
...
@@ -38,7 +45,9 @@ public class GalaxyRouterStrategyContext {
}
}
public
IGalaxyRouterStrategyPublish
getPublishStrategy
(
String
type
)
{
public
IGalaxyRouterStrategyPublish
getPublishStrategy
(
String
type
)
{
return
publishHandlerMap
.
get
(
type
);
IGalaxyRouterStrategyPublish
obj
=
publishHandlerMap
.
get
(
type
);
if
(
StringUtil
.
isNull
(
obj
))
throw
new
LiquidnetServiceException
(
GalaxyErrorCodeEnum
.
ROUTER_NOT_EXIST
.
getCode
(),
GalaxyErrorCodeEnum
.
ROUTER_NOT_EXIST
.
getMessage
());
return
obj
;
}
}
public
void
putPublishStrategy
(
String
code
,
IGalaxyRouterStrategyPublish
strategy
)
{
public
void
putPublishStrategy
(
String
code
,
IGalaxyRouterStrategyPublish
strategy
)
{
...
@@ -46,7 +55,9 @@ public class GalaxyRouterStrategyContext {
...
@@ -46,7 +55,9 @@ public class GalaxyRouterStrategyContext {
}
}
public
IGalaxyRouterStrategyTrade
getTradeStrategy
(
String
type
)
{
public
IGalaxyRouterStrategyTrade
getTradeStrategy
(
String
type
)
{
return
tradeHandlerMap
.
get
(
type
);
IGalaxyRouterStrategyTrade
obj
=
tradeHandlerMap
.
get
(
type
);
if
(
StringUtil
.
isNull
(
obj
))
throw
new
LiquidnetServiceException
(
GalaxyErrorCodeEnum
.
ROUTER_NOT_EXIST
.
getCode
(),
GalaxyErrorCodeEnum
.
ROUTER_NOT_EXIST
.
getMessage
());
return
obj
;
}
}
public
void
putTradeStrategy
(
String
code
,
IGalaxyRouterStrategyTrade
strategy
)
{
public
void
putTradeStrategy
(
String
code
,
IGalaxyRouterStrategyTrade
strategy
)
{
...
...
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/src/main/java/com/liquidnet/service/galaxy/router/zxin/biz/ZxinUserBiz.java
View file @
3f19773a
...
@@ -13,10 +13,13 @@ import com.liquidnet.common.third.zxlnft.exception.ZxlNftException;
...
@@ -13,10 +13,13 @@ import com.liquidnet.common.third.zxlnft.exception.ZxlNftException;
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.BASE64Util
;
import
com.liquidnet.commons.lang.util.BASE64Util
;
import
com.liquidnet.commons.lang.util.BeanUtil
;
import
com.liquidnet.commons.lang.util.StringUtil
;
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.GalaxyConstant
;
import
com.liquidnet.service.galaxy.constant.GalaxyConstant
;
import
com.liquidnet.service.galaxy.dto.bo.GalaxyUserInfoBo
;
import
com.liquidnet.service.galaxy.dto.bo.GalaxyUserInfoBo
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyUserBindStatusQueryReqDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyUserBindStatusQueryRespDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyUserRegisterReqDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyUserRegisterReqDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyUserRegisterRespDto
;
import
com.liquidnet.service.galaxy.dto.param.GalaxyUserRegisterRespDto
;
import
com.liquidnet.service.galaxy.utils.DataUtils
;
import
com.liquidnet.service.galaxy.utils.DataUtils
;
...
@@ -181,4 +184,18 @@ public class ZxinUserBiz {
...
@@ -181,4 +184,18 @@ public class ZxinUserBiz {
}
}
return
ResponseDto
.
success
(
respDto
);
return
ResponseDto
.
success
(
respDto
);
}
}
public
ResponseDto
<
GalaxyUserBindStatusQueryRespDto
>
userBindStatusQuery
(
GalaxyUserBindStatusQueryReqDto
reqDto
){
Nft016IdentityBindQueryReqDto
nft016ReqDto
=
Nft016IdentityBindQueryReqDto
.
getNew
();
nft016ReqDto
.
setAddressList
(
reqDto
.
getBlockChainAddress
());
ZxlnftResponseDto
<
Nft016IdentityBindQueryRespDto
>
zxlnftResponseDto
=
zxlnftSdkUtil
.
nft016IdentityBindQuery
(
nft016ReqDto
);
GalaxyUserBindStatusQueryRespDto
userBindStatusQueryRespDto
=
GalaxyUserBindStatusQueryRespDto
.
getNew
();
if
(
zxlnftResponseDto
.
isSuccess
()){
BeanUtil
.
copy
(
zxlnftResponseDto
.
getData
().
getList
().
get
(
0
),
userBindStatusQueryRespDto
);
}
else
{
return
ResponseDto
.
failure
();
}
return
ResponseDto
.
success
(
userBindStatusQueryRespDto
);
}
}
}
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/src/main/java/com/liquidnet/service/galaxy/router/zxin/service/GalaxyRouterStrategyZxlUserImpl.java
View file @
3f19773a
...
@@ -36,6 +36,6 @@ public class GalaxyRouterStrategyZxlUserImpl implements IGalaxyRouterStrategyUse
...
@@ -36,6 +36,6 @@ public class GalaxyRouterStrategyZxlUserImpl implements IGalaxyRouterStrategyUse
@Override
@Override
public
ResponseDto
<
GalaxyUserBindStatusQueryRespDto
>
userBindStatusQuery
(
GalaxyUserBindStatusQueryReqDto
reqDto
)
{
public
ResponseDto
<
GalaxyUserBindStatusQueryRespDto
>
userBindStatusQuery
(
GalaxyUserBindStatusQueryReqDto
reqDto
)
{
return
null
;
return
zxinUserBiz
.
userBindStatusQuery
(
reqDto
)
;
}
}
}
}
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/src/main/java/com/liquidnet/service/galaxy/service/impl/GalaxyArtworkServiceImpl.java
View file @
3f19773a
...
@@ -18,7 +18,7 @@ import org.springframework.stereotype.Service;
...
@@ -18,7 +18,7 @@ import org.springframework.stereotype.Service;
* @date 2022/3/12 00:14
* @date 2022/3/12 00:14
*/
*/
@Slf4j
@Slf4j
@Service
@Service
(
"galaxyArtworkServiceImpl"
)
public
class
GalaxyArtworkServiceImpl
implements
IGalaxyArtworkService
{
public
class
GalaxyArtworkServiceImpl
implements
IGalaxyArtworkService
{
@Autowired
@Autowired
private
GalaxyRouterStrategyContext
galaxyRouterStrategyContext
;
private
GalaxyRouterStrategyContext
galaxyRouterStrategyContext
;
...
...
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/src/main/java/com/liquidnet/service/galaxy/service/impl/GalaxyPublishServiceImpl.java
View file @
3f19773a
...
@@ -18,7 +18,7 @@ import org.springframework.stereotype.Service;
...
@@ -18,7 +18,7 @@ import org.springframework.stereotype.Service;
* @date 2022/3/15 11:28
* @date 2022/3/15 11:28
*/
*/
@Slf4j
@Slf4j
@Service
@Service
(
"galaxyPublishServiceImpl"
)
public
class
GalaxyPublishServiceImpl
implements
IGalaxyPublishService
{
public
class
GalaxyPublishServiceImpl
implements
IGalaxyPublishService
{
@Autowired
@Autowired
private
GalaxyRouterStrategyContext
galaxyRouterStrategyContext
;
private
GalaxyRouterStrategyContext
galaxyRouterStrategyContext
;
...
@@ -30,6 +30,6 @@ public class GalaxyPublishServiceImpl implements IGalaxyPublishService {
...
@@ -30,6 +30,6 @@ public class GalaxyPublishServiceImpl implements IGalaxyPublishService {
@Override
@Override
public
ResponseDto
<
GalaxyNftPublishResultQueryRespDto
>
nftPublishResultQuery
(
GalaxyNftPublishResultQueryReqDto
reqDto
)
{
public
ResponseDto
<
GalaxyNftPublishResultQueryRespDto
>
nftPublishResultQuery
(
GalaxyNftPublishResultQueryReqDto
reqDto
)
{
return
null
;
return
galaxyRouterStrategyContext
.
getPublishStrategy
(
reqDto
.
getRouteType
()).
nftPublishResultQuery
(
reqDto
)
;
}
}
}
}
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/src/main/java/com/liquidnet/service/galaxy/service/impl/GalaxyTradeServiceImpl.java
View file @
3f19773a
...
@@ -18,7 +18,7 @@ import org.springframework.stereotype.Service;
...
@@ -18,7 +18,7 @@ import org.springframework.stereotype.Service;
* @date 2022/3/17 14:19
* @date 2022/3/17 14:19
*/
*/
@Slf4j
@Slf4j
@Service
@Service
(
"galaxyTradeServiceImpl"
)
public
class
GalaxyTradeServiceImpl
implements
IGalaxyTradeService
{
public
class
GalaxyTradeServiceImpl
implements
IGalaxyTradeService
{
@Autowired
@Autowired
private
GalaxyRouterStrategyContext
galaxyRouterStrategyContext
;
private
GalaxyRouterStrategyContext
galaxyRouterStrategyContext
;
...
@@ -35,11 +35,11 @@ public class GalaxyTradeServiceImpl implements IGalaxyTradeService {
...
@@ -35,11 +35,11 @@ public class GalaxyTradeServiceImpl implements IGalaxyTradeService {
@Override
@Override
public
ResponseDto
<
GalaxyNftBuyResultQueryRespDto
>
nftBuyResultQuery
(
GalaxyNftBuyResultQueryReqDto
reqDto
)
{
public
ResponseDto
<
GalaxyNftBuyResultQueryRespDto
>
nftBuyResultQuery
(
GalaxyNftBuyResultQueryReqDto
reqDto
)
{
return
null
;
return
galaxyRouterStrategyContext
.
getTradeStrategy
(
reqDto
.
getRouteType
()).
nftBuyResultQuery
(
reqDto
)
;
}
}
@Override
@Override
public
ResponseDto
<
GalaxyNftBuyPayResultQueryRespDto
>
nftBuyPayResultQuery
(
GalaxyNftBuyPayResultQueryReqDto
reqDto
)
{
public
ResponseDto
<
GalaxyNftBuyPayResultQueryRespDto
>
nftBuyPayResultQuery
(
GalaxyNftBuyPayResultQueryReqDto
reqDto
)
{
return
null
;
return
galaxyRouterStrategyContext
.
getTradeStrategy
(
reqDto
.
getRouteType
()).
nftBuyPayResultQuery
(
reqDto
)
;
}
}
}
}
liquidnet-bus-service/liquidnet-service-galaxy/liquidnet-service-galaxy-impl/src/main/java/com/liquidnet/service/galaxy/service/impl/GalaxyUserServiceImpl.java
View file @
3f19773a
...
@@ -21,7 +21,7 @@ import org.springframework.stereotype.Service;
...
@@ -21,7 +21,7 @@ import org.springframework.stereotype.Service;
* @date 2022/3/11 12:09
* @date 2022/3/11 12:09
*/
*/
@Slf4j
@Slf4j
@Service
@Service
(
"galaxyUserServiceImpl"
)
public
class
GalaxyUserServiceImpl
implements
IGalaxyUserService
{
public
class
GalaxyUserServiceImpl
implements
IGalaxyUserService
{
@Autowired
@Autowired
private
GalaxyRouterStrategyContext
galaxyRouterStrategyContext
;
private
GalaxyRouterStrategyContext
galaxyRouterStrategyContext
;
...
@@ -33,6 +33,6 @@ public class GalaxyUserServiceImpl implements IGalaxyUserService {
...
@@ -33,6 +33,6 @@ public class GalaxyUserServiceImpl implements IGalaxyUserService {
@Override
@Override
public
ResponseDto
<
GalaxyUserBindStatusQueryRespDto
>
userBindStatusQuery
(
GalaxyUserBindStatusQueryReqDto
reqDto
)
{
public
ResponseDto
<
GalaxyUserBindStatusQueryRespDto
>
userBindStatusQuery
(
GalaxyUserBindStatusQueryReqDto
reqDto
)
{
return
null
;
return
galaxyRouterStrategyContext
.
getUserStrategy
(
reqDto
.
getRouteType
()).
userBindStatusQuery
(
reqDto
)
;
}
}
}
}
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