Bläddra i källkod

Update MemberProductCollection.java

macro 3 år sedan
förälder
incheckning
0a9e5e6964

+ 4 - 80
mall-portal/src/main/java/com/macro/mall/portal/domain/MemberProductCollection.java

@@ -1,5 +1,7 @@
 package com.macro.mall.portal.domain;
 
+import lombok.Getter;
+import lombok.Setter;
 import org.springframework.data.annotation.Id;
 import org.springframework.data.mongodb.core.index.Indexed;
 import org.springframework.data.mongodb.core.mapping.Document;
@@ -10,6 +12,8 @@ import java.util.Date;
  * 会员商品收藏
  * Created by macro on 2018/8/2.
  */
+@Getter
+@Setter
 @Document
 public class MemberProductCollection {
     @Id
@@ -25,84 +29,4 @@ public class MemberProductCollection {
     private String productSubTitle;
     private String productPrice;
     private Date createTime;
-
-    public String getId() {
-        return id;
-    }
-
-    public void setId(String id) {
-        this.id = id;
-    }
-
-    public Long getMemberId() {
-        return memberId;
-    }
-
-    public void setMemberId(Long memberId) {
-        this.memberId = memberId;
-    }
-
-    public String getMemberNickname() {
-        return memberNickname;
-    }
-
-    public void setMemberNickname(String memberNickname) {
-        this.memberNickname = memberNickname;
-    }
-
-    public String getMemberIcon() {
-        return memberIcon;
-    }
-
-    public void setMemberIcon(String memberIcon) {
-        this.memberIcon = memberIcon;
-    }
-
-    public Long getProductId() {
-        return productId;
-    }
-
-    public void setProductId(Long productId) {
-        this.productId = productId;
-    }
-
-    public String getProductName() {
-        return productName;
-    }
-
-    public void setProductName(String productName) {
-        this.productName = productName;
-    }
-
-    public String getProductPic() {
-        return productPic;
-    }
-
-    public void setProductPic(String productPic) {
-        this.productPic = productPic;
-    }
-
-    public String getProductSubTitle() {
-        return productSubTitle;
-    }
-
-    public void setProductSubTitle(String productSubTitle) {
-        this.productSubTitle = productSubTitle;
-    }
-
-    public String getProductPrice() {
-        return productPrice;
-    }
-
-    public void setProductPrice(String productPrice) {
-        this.productPrice = productPrice;
-    }
-
-    public Date getCreateTime() {
-        return createTime;
-    }
-
-    public void setCreateTime(Date createTime) {
-        this.createTime = createTime;
-    }
 }