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
package com.iotechn.unimall.data.domain;
 
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dobbinsoft.fw.core.annotation.doc.ApiEntity;
import com.dobbinsoft.fw.core.annotation.doc.ApiField;
import com.dobbinsoft.fw.support.domain.SuperDO;
import com.iotechn.unimall.data.enums.CategoryLevelType;
import lombok.Data;
 
/**
 * Created by rize on 2019/7/2.
 */
@Data
@ApiEntity(description = "类目领域模型")
@TableName("unimall_category")
public class CategoryDO extends SuperDO {
 
    @ApiField(description = "类目名称")
    private String title;
 
    @ApiField(description = "第三方ERP ID")
    private String thirdId;
 
    /**
     * 存储当前类目所属的一级类目,不存在为空
     */
    @ApiField(description = "一级类目ID")
    @TableField("first_level_id")
    private Long firstLevelId;
 
    @ApiField(description = "父节点")
    @TableField("parent_id")
    private Long parentId;
 
    /**
     * 分类图片
     */
    @ApiField(description = "图片URL")
    @TableField("pic_url")
    private String picUrl;
 
    @ApiField(description = "等级", enums = CategoryLevelType.class)
    private Integer level;
 
}