Browse Source

Update PmsProductCategoryWithChildrenItem.java

macro 5 years ago
parent
commit
ccec8ba4d4

+ 4 - 8
mall-admin/src/main/java/com/macro/mall/dto/PmsProductCategoryWithChildrenItem.java

@@ -2,6 +2,8 @@ package com.macro.mall.dto;
 
 import com.macro.mall.model.PmsProductCategory;
 import io.swagger.annotations.ApiModelProperty;
+import lombok.Getter;
+import lombok.Setter;
 
 import java.util.List;
 
@@ -9,14 +11,8 @@ import java.util.List;
  * Created by macro on 2018/5/25.
  */
 public class PmsProductCategoryWithChildrenItem extends PmsProductCategory {
+    @Getter
+    @Setter
     @ApiModelProperty("子级分类")
     private List<PmsProductCategory> children;
-
-    public List<PmsProductCategory> getChildren() {
-        return children;
-    }
-
-    public void setChildren(List<PmsProductCategory> children) {
-        this.children = children;
-    }
 }