“xubinhui 3 anni fa
parent
commit
129438251b

+ 4 - 0
src/main/java/com/izouma/nineth/domain/DomainOrder.java

@@ -99,4 +99,8 @@ public class DomainOrder extends BaseEntity {
     @Column(name = "current_owner_id")
     @ApiModelProperty("当前使用nft域名的人的id")
     private Long CurrentOwnerId;
+
+    @ApiModelProperty("展示id")
+    private Long publicCollectionId;
+
 }

+ 12 - 0
src/main/java/com/izouma/nineth/web/DomainOrderController.java

@@ -132,6 +132,18 @@ public class DomainOrderController extends BaseController {
 
     }
 
+
+    //添加超链collectionId
+    @PostMapping("/addHyperLink")
+    public void addHyperLinkWhitId(@RequestParam Long assetId, @RequestParam("openHyperLink") boolean openHyperLink,
+                             @RequestParam("hyperLinkType") HyperLinkType hyperLinkType,
+                             @RequestParam("address") String address,
+                                   @RequestParam Long publicCollectionId) {
+        domainOrderService.addHyperLink(assetId, openHyperLink, hyperLinkType, address);
+
+    }
+
+
     //我的超链
     @GetMapping("/showMyHyperLink")
     public List<Map<String, Object>> showMyHyperLink(){