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

Commit c1494a3e authored by anjiabin's avatar anjiabin

实现zxtnft购买功能

parent 42adfe47
...@@ -25,23 +25,6 @@ public class GalaxyNftUploadReqDto extends GalaxyBaseReqDto implements Serializa ...@@ -25,23 +25,6 @@ public class GalaxyNftUploadReqDto extends GalaxyBaseReqDto implements Serializa
@ApiModelProperty(position = 2, required = true, value = "商品唯一规格ID") @ApiModelProperty(position = 2, required = true, value = "商品唯一规格ID")
private String skuId; private String skuId;
/**
* 系列一共有多少个,0表示没有限制
*/
@ApiModelProperty(position = 2, required = true, value = "商品唯一规格ID")
private Long totalCount;
/**
* 系列封面url,不超过1024个字符
*/
@ApiModelProperty(position = 2, required = true, value = "商品唯一规格ID")
private String coverUrl;
/**
* 系列描述信息,不超过500个字符
*/
@ApiModelProperty(position = 2, required = true, value = "商品唯一规格ID")
private String desc;
@Override @Override
public String toString(){ public String toString(){
return JsonUtils.toJson(this); return JsonUtils.toJson(this);
......
...@@ -19,11 +19,13 @@ import java.io.Serializable; ...@@ -19,11 +19,13 @@ import java.io.Serializable;
@ApiModel(value = "GalaxyUserRegisterRespDto", description = "素材上传") @ApiModel(value = "GalaxyUserRegisterRespDto", description = "素材上传")
@Data @Data
public class GalaxyNftUploadRespDto implements Serializable,Cloneable { public class GalaxyNftUploadRespDto implements Serializable,Cloneable {
@ApiModelProperty(position = 1, required = true, value = "skuId")
private String skuId;
@ApiModelProperty(position = 1, required = true, value = "用户区块链类型") @ApiModelProperty(position = 2, required = true, value = "素材原始地址")
private String blockChainType; private String imageUrl;
@ApiModelProperty(position = 1, required = true, value = "素材访问地址") @ApiModelProperty(position = 3, required = true, value = "素材访问地址")
private String materialAccessUrl; private String materialAccessUrl;
......
...@@ -132,6 +132,9 @@ public class ZxinArtworkBiz { ...@@ -132,6 +132,9 @@ public class ZxinArtworkBiz {
GalaxyNftUploadRespDto galaxyNftUploadRespDto = GalaxyNftUploadRespDto.getNew(); GalaxyNftUploadRespDto galaxyNftUploadRespDto = GalaxyNftUploadRespDto.getNew();
galaxyNftUploadRespDto.setMaterialAccessUrl(fullFilePath); galaxyNftUploadRespDto.setMaterialAccessUrl(fullFilePath);
galaxyNftUploadRespDto.setSkuId(reqDto.getSkuId());
galaxyNftUploadRespDto.setImageUrl(reqDto.getImageUrl());
return ResponseDto.success(galaxyNftUploadRespDto); return ResponseDto.success(galaxyNftUploadRespDto);
// 1.4.4调用查询素材地址接口 -- 非必需 // 1.4.4调用查询素材地址接口 -- 非必需
// Nft021UploadUrlReqDto nft021ReqDto = Nft021UploadUrlReqDto.getNew(); // Nft021UploadUrlReqDto nft021ReqDto = Nft021UploadUrlReqDto.getNew();
...@@ -151,6 +154,20 @@ public class ZxinArtworkBiz { ...@@ -151,6 +154,20 @@ public class ZxinArtworkBiz {
//返回参数 //返回参数
String seriesId = null; String seriesId = null;
String taskId = null; String taskId = null;
GalaxySeriesInfoBo seriesInfoBo = dataUtils.getSeriesInfoBo(reqDto.getRouteType(),reqDto.getSkuId());
if(StringUtil.isNotNull(seriesInfoBo)){
/**
* 如果系列声明成功,则不允许继续声明
*/
if(seriesInfoBo.getPublishStatus().equalsIgnoreCase(GalaxyConstant.SeriesClaimStatusEnum.SUCCESS.getCode())){
GalaxyArtSeriesClaimRespDto seriesClaimRespDto = GalaxyArtSeriesClaimRespDto.getNew();
seriesClaimRespDto.setSkuId(seriesInfoBo.getSkuId());
seriesClaimRespDto.setMaterialAccessUrl(seriesInfoBo.getNftUrl());
seriesClaimRespDto.setSeriesId(seriesInfoBo.getSeriesId());
seriesClaimRespDto.setSeriesName(seriesInfoBo.getSeriesName());
return ResponseDto.success(seriesClaimRespDto);
}
}
/** /**
* 进行系列声明 * 进行系列声明
*/ */
...@@ -209,7 +226,6 @@ public class ZxinArtworkBiz { ...@@ -209,7 +226,6 @@ public class ZxinArtworkBiz {
seriesClaimRespDto.setSeriesId(seriesId); seriesClaimRespDto.setSeriesId(seriesId);
seriesClaimRespDto.setSeriesName(seriesName); seriesClaimRespDto.setSeriesName(seriesName);
GalaxySeriesInfoBo seriesInfoBo = null;
//构造缓存数据 //构造缓存数据
if(seriesInfoBo==null){ if(seriesInfoBo==null){
seriesInfoBo = GalaxySeriesInfoBo.getNew(); seriesInfoBo = GalaxySeriesInfoBo.getNew();
......
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