xiaoyong931011
2022-07-07 bc43681f185af1edf833cf6c94833cb1cdd44a8e
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package com.xcong.farmer.cms.modules.system.entity;
 
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xcong.farmer.cms.common.system.base.BaseEntity;
import lombok.Data;
import org.tron.trident.abi.datatypes.Int;
 
import java.util.List;
 
/**
 * 栏目表
 */
@Data
@TableName("t_column")
public class ColumnEntity extends BaseEntity {
    /**
     * 导航栏 - 默认上级类目ID
     */
    public static final Long PARENTID_DEFAULT = 0L;
 
    // 栏目名称
    private String columnName;
    // 栏目编码
    private String columnCode;
    // 描述
    private String remark;
    // 排序
    private Integer orderNum;
    // 图片
    private String pic;
    // 上级类目ID
    private Long parentId;
    // 所属ID
    private Long companyId;
 
    // 列表页模板
    private String listTemplate;
 
    // 文章页模板
    private String articleTemplate;
 
    // 栏目类型 1-普通栏目 2-标题栏目
    private Integer type;
 
    // 目标类型 1-链接到文章 2-链接到栏目 3-外部链接
    private Integer targetType;
 
    // 内容类型 1:文章 2:图片 3:文件 4:音频
    private Integer contentType;
 
    // 目标地址 (外部地址http/https开头 文章ID/栏目ID)
    private String targetUrl;
 
    // 是否为导航 1-是 2-否
    private Integer isNav;
 
    // 栏目目录
    private String path;
 
    @TableField(exist = false)
    private List<Long> ids;
}