1
0

feat: 增加newText字段用于表示优化后正文

This commit is contained in:
2024-12-22 12:14:21 +08:00
parent 5ac0f35976
commit 23b0d56f39
3 changed files with 3 additions and 0 deletions

View File

@@ -89,6 +89,7 @@ class Line(
@Lob
@Column(nullable = false)
var text: String,
var newText: String?,
@ManyToOne(cascade = [CascadeType.DETACH], fetch = FetchType.LAZY)
@JoinColumn(nullable = false, foreignKey = ForeignKey(ConstraintMode.NO_CONSTRAINT))
var chapter: Chapter

View File

@@ -82,6 +82,7 @@ class ChapterController {
lineId = IdUtil.fastSimpleUUID(),
sequence = startIndex + index,
text = line.trim(),
newText = null,
chapter = chapter,
)
}

View File

@@ -53,6 +53,7 @@ class LineController {
lineId = item.lineId ?: IdUtil.fastSimpleUUID(),
sequence = item.sequence,
text = item.text,
newText = null,
chapter = chapter,
)
)