admin
2025-05-29 6ca3d7c61ee8d763f00847d90f4365e348f43078
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
package tech.aiflowy.ai.entity.base;
 
import tech.aiflowy.common.entity.DateTreeEntity;
import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.core.handler.FastjsonTypeHandler;
 
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
import java.util.Map;
 
 
public class AiDocumentBase extends DateTreeEntity implements Serializable {
 
    private static final long serialVersionUID = 1L;
 
    @Id(keyType = KeyType.Generator, value = "snowFlakeId")
    private BigInteger id;
 
    /**
     * 知识库ID
     */
    @Column(comment = "知识库ID")
    private BigInteger knowledgeId;
 
    /**
     * 文档类型 pdf/word/aieditor 等
     */
    @Column(comment = "文档类型 pdf/word/aieditor 等")
    private String documentType;
 
    /**
     * 文档路径
     */
    @Column(comment = "文档路径")
    private String documentPath;
 
    /**
     * 标题
     */
    @Column(comment = "标题")
    private String title;
 
    /**
     * 内容
     */
    @Column(comment = "内容")
    private String content;
 
    /**
     * 内容类型
     */
    @Column(comment = "内容类型")
    private String contentType;
 
    /**
     * URL 别名
     */
    @Column(comment = "URL 别名")
    private String slug;
 
    /**
     * 排序序号
     */
    @Column(comment = "排序序号")
    private Integer orderNo;
 
    /**
     * 其他配置项
     */
    @Column(typeHandler = FastjsonTypeHandler.class, comment = "其他配置项")
    private Map<String, Object> options;
 
    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private Date created;
 
    /**
     * 创建人ID
     */
    @Column(comment = "创建人ID")
    private BigInteger createdBy;
 
    /**
     * 最后的修改时间
     */
    @Column(comment = "最后的修改时间")
    private Date modified;
 
    /**
     * 最后的修改人的ID
     */
    @Column(comment = "最后的修改人的ID")
    private BigInteger modifiedBy;
 
    public BigInteger getId() {
        return id;
    }
 
    public void setId(BigInteger id) {
        this.id = id;
    }
 
    public BigInteger getKnowledgeId() {
        return knowledgeId;
    }
 
    public void setKnowledgeId(BigInteger knowledgeId) {
        this.knowledgeId = knowledgeId;
    }
 
    public String getDocumentType() {
        return documentType;
    }
 
    public void setDocumentType(String documentType) {
        this.documentType = documentType;
    }
 
    public String getDocumentPath() {
        return documentPath;
    }
 
    public void setDocumentPath(String documentPath) {
        this.documentPath = documentPath;
    }
 
    public String getTitle() {
        return title;
    }
 
    public void setTitle(String title) {
        this.title = title;
    }
 
    public String getContent() {
        return content;
    }
 
    public void setContent(String content) {
        this.content = content;
    }
 
    public String getContentType() {
        return contentType;
    }
 
    public void setContentType(String contentType) {
        this.contentType = contentType;
    }
 
    public String getSlug() {
        return slug;
    }
 
    public void setSlug(String slug) {
        this.slug = slug;
    }
 
    public Integer getOrderNo() {
        return orderNo;
    }
 
    public void setOrderNo(Integer orderNo) {
        this.orderNo = orderNo;
    }
 
    public Map<String, Object> getOptions() {
        return options;
    }
 
    public void setOptions(Map<String, Object> options) {
        this.options = options;
    }
 
    public Date getCreated() {
        return created;
    }
 
    public void setCreated(Date created) {
        this.created = created;
    }
 
    public BigInteger getCreatedBy() {
        return createdBy;
    }
 
    public void setCreatedBy(BigInteger createdBy) {
        this.createdBy = createdBy;
    }
 
    public Date getModified() {
        return modified;
    }
 
    public void setModified(Date modified) {
        this.modified = modified;
    }
 
    public BigInteger getModifiedBy() {
        return modifiedBy;
    }
 
    public void setModifiedBy(BigInteger modifiedBy) {
        this.modifiedBy = modifiedBy;
    }
 
}