Commit 087afef8 authored by tangtuo's avatar tangtuo

纪念版nft相关接口编写

parent b185963f
......@@ -82,6 +82,9 @@ public class Nft extends BaseEntity {
@ApiModelProperty("nft发行时间")
private Date publishTime;
@ApiModelProperty("交易转让hash")
private String transferHash;
@ApiModelProperty("是否置顶 0-否 1-是")
private Integer isTop;
......
......@@ -140,6 +140,7 @@ public class CommemorateNftServiceImpl extends ServiceImpl<CommemorateNftMapper,
// nft编号为BJIFF11+5为顺序编号 : BJIFF1100123
String code = "00000" + availablePermits;
nft.setNftId("BJIFF11" + code.substring(code.length() - 5));
nft.setTransferHash(hash);
nft.setUserId(user.getId());
nft.setCreateDate(new Date());
nft.setUpdateDate(new Date());
......
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