add
yj
2024-12-05 b9900893177c78fc559223521fe839aa21000017
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package com.iotechn.unimall.data.dto;
 
import com.dobbinsoft.fw.core.annotation.doc.ApiEntity;
import com.dobbinsoft.fw.core.annotation.doc.ApiField;
import com.dobbinsoft.fw.core.entiy.SuperDTO;
import com.iotechn.unimall.data.enums.CategoryLevelType;
import lombok.Data;
 
import java.util.List;
 
/**
 * Created by rize on 2019/7/2.
 */
@Data
@ApiEntity(description = "类目传输实体")
public class CategoryDTO extends SuperDTO {
 
    @ApiField(description = "一级类目ID")
    private Long firstLevelId;
 
    @ApiField(description = "二级类目ID")
    private Long secondLevelId;
 
    @ApiField(description = "父类目ID")
    private Long parentId;
 
    @ApiField(description = "类目标题")
    private String title;
 
    /**
     * 全类目名称:一级类目/二级类目/三级类目
     * 主要用于管理员查看
     */
    @ApiField(description = "类目全名")
    private String fullName;
 
    @ApiField(description = "等级", enums = CategoryLevelType.class)
    private Integer level;
 
    @ApiField(description = "图标URL")
    private String iconUrl;
 
    @ApiField(description = "图片URL")
    private String picUrl;
 
    @ApiField(description = "子类目")
    private List<CategoryDTO> childrenList;
 
}