Browse Source

Update ProductAttrInfo.java

macro 4 years ago
parent
commit
3adc0e171b
1 changed files with 4 additions and 16 deletions
  1. 4 16
      mall-admin/src/main/java/com/macro/mall/dto/ProductAttrInfo.java

+ 4 - 16
mall-admin/src/main/java/com/macro/mall/dto/ProductAttrInfo.java

@@ -2,30 +2,18 @@ package com.macro.mall.dto;
 
 
 import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+import lombok.EqualsAndHashCode;
 
 /**
  * 商品分类对应属性信息
  * Created by macro on 2018/5/23.
  */
+@Data
+@EqualsAndHashCode(callSuper = false)
 public class ProductAttrInfo {
     @ApiModelProperty("商品属性ID")
     private Long attributeId;
     @ApiModelProperty("商品属性分类ID")
     private Long attributeCategoryId;
-
-    public Long getAttributeId() {
-        return attributeId;
-    }
-
-    public void setAttributeId(Long attributeId) {
-        this.attributeId = attributeId;
-    }
-
-    public Long getAttributeCategoryId() {
-        return attributeCategoryId;
-    }
-
-    public void setAttributeCategoryId(Long attributeCategoryId) {
-        this.attributeCategoryId = attributeCategoryId;
-    }
 }