记得上下班打卡 | git大法好,push需谨慎

Commit 57ba38a5 authored by anjiabin's avatar anjiabin

提交galaxy查询相关功能

parent cc0b5c82
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;
}
...@@ -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
......
...@@ -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
......
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();
}
}
}
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
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();
}
}
}
...@@ -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: GalaxyQueryNftTradeListRespDto
* @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 = "GalaxyQuerySeriesRespDto", description = "系列查询") @ApiModel(value = "GalaxyQueryNftTradeListRespDto", description = "单个NFT交易信息查询")
@Data @Data
public class GalaxyQuerySeriesRespDto implements Serializable,Cloneable { public class GalaxyQueryNftTradeListRespDto 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 GalaxyQuerySeriesRespDto obj = new GalaxyQuerySeriesRespDto(); private static final GalaxyQueryNftTradeListRespDto obj = new GalaxyQueryNftTradeListRespDto();
public static GalaxyQuerySeriesRespDto getNew() { public static GalaxyQueryNftTradeListRespDto getNew() {
try { try {
return (GalaxyQuerySeriesRespDto) obj.clone(); return (GalaxyQueryNftTradeListRespDto) obj.clone();
} catch (CloneNotSupportedException e) { } catch (CloneNotSupportedException e) {
return new GalaxyQuerySeriesRespDto(); return new GalaxyQueryNftTradeListRespDto();
} }
} }
} }
\ No newline at end of file
...@@ -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: GalaxyQuerySeriesInfoReqDto
* @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 = "GalaxyQuerySeriesInfoReqDto", description = "系列查询")
@Data @Data
public class GalaxyQuerySeriesReqDto extends GalaxyBaseReqDto implements Serializable,Cloneable{ public class GalaxyQuerySeriesInfoReqDto 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 GalaxyQuerySeriesReqDto obj = new GalaxyQuerySeriesReqDto(); private static final GalaxyQuerySeriesInfoReqDto obj = new GalaxyQuerySeriesInfoReqDto();
public static GalaxyQuerySeriesReqDto getNew() { public static GalaxyQuerySeriesInfoReqDto getNew() {
try { try {
return (GalaxyQuerySeriesReqDto) obj.clone(); return (GalaxyQuerySeriesInfoReqDto) obj.clone();
} catch (CloneNotSupportedException e) { } catch (CloneNotSupportedException e) {
return new GalaxyQuerySeriesReqDto(); return new GalaxyQuerySeriesInfoReqDto();
} }
} }
} }
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
...@@ -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: GalaxyQuerySeriesReqDto * @class: GalaxyQueryUserSeriesNftListReqDto
* @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 = "GalaxyQueryNftListReqDto", description = "NFT列表查询") @ApiModel(value = "GalaxyQueryUserSeriesNftListReqDto", 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 seriesId; private String skuId;
@Override @Override
public String toString(){ public String toString(){
return JsonUtils.toJson(this); return JsonUtils.toJson(this);
} }
private static final GalaxyQueryNftListReqDto obj = new GalaxyQueryNftListReqDto(); private static final GalaxyQueryUserSeriesNftListReqDto obj = new GalaxyQueryUserSeriesNftListReqDto();
public static GalaxyQueryNftListReqDto getNew() { public static GalaxyQueryUserSeriesNftListReqDto getNew() {
try { try {
return (GalaxyQueryNftListReqDto) obj.clone(); return (GalaxyQueryUserSeriesNftListReqDto) obj.clone();
} catch (CloneNotSupportedException e) { } catch (CloneNotSupportedException e) {
return new GalaxyQueryNftListReqDto(); return new GalaxyQueryUserSeriesNftListReqDto();
} }
} }
} }
...@@ -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: GalaxyQuerySeriesReqDto * @class: GalaxyQueryUserSeriesNftListRespDto
* @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 = "GalaxyQueryNftListRespDto", description = "NFT列表查询") @ApiModel(value = "GalaxyQueryUserSeriesNftListRespDto", description = "用户系列NFT查询")
@Data @Data
public class GalaxyQueryNftListRespDto implements Serializable,Cloneable { public class GalaxyQueryUserSeriesNftListRespDto 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 GalaxyQueryNftListRespDto obj = new GalaxyQueryNftListRespDto(); private static final GalaxyQueryUserSeriesNftListRespDto obj = new GalaxyQueryUserSeriesNftListRespDto();
public static GalaxyQueryNftListRespDto getNew() { public static GalaxyQueryUserSeriesNftListRespDto getNew() {
try { try {
return (GalaxyQueryNftListRespDto) obj.clone(); return (GalaxyQueryUserSeriesNftListRespDto) obj.clone();
} catch (CloneNotSupportedException e) { } catch (CloneNotSupportedException e) {
return new GalaxyQueryNftListRespDto(); return new GalaxyQueryUserSeriesNftListRespDto();
} }
} }
} }
\ No newline at end of file
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();
}
}
}
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
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();
}
}
}
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
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();
}
}
}
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
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);
} }
...@@ -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);
} }
} }
...@@ -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;
......
...@@ -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(reqDto.getSeriesId()); nft037ReqDto.setSeriesId(seriesNftInfoBo.getSeriesId());
nft037ReqDto.setLimit(1000l); nft037ReqDto.setLimit(1000l);
ZxlnftResponseDto<Nft037AddressListRespDto> zxlnftResponseDto = zxlnftSdkUtil.nft037AddressList(nft037ReqDto); ZxlnftResponseDto<Nft037AddressListRespDto> zxlnftResponseDto = zxlnftSdkUtil.nft037AddressList(nft037ReqDto);
GalaxyQueryNftListRespDto queryNftListRespDto = GalaxyQueryNftListRespDto.getNew(); GalaxyQueryUserSeriesNftListRespDto queryNftListRespDto = GalaxyQueryUserSeriesNftListRespDto.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(reqDto.getSeriesId()); queryNftListRespDto.setSeriesId(seriesNftInfoBo.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;
}
} }
...@@ -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);
} }
} }
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);
} }
} }
...@@ -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-这里是配置信息基本值
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment