1. 添加软件高清倍率设置,实现自定义高清倍率(支持两倍、三倍和四倍,默认是两倍) 2. (聚合推文)新增导出草稿。可以依赖做好的草稿文件,只替换图片文件 3. (聚合推文)新增批量生成草稿 4. (聚合推文)修改小说批次任务进行详细界面操作为双击
63 lines
1.8 KiB
TypeScript
63 lines
1.8 KiB
TypeScript
// @ts-ignore
|
|
import Realm from 'realm'
|
|
import { BookType } from '../../../enum/bookEnum'
|
|
|
|
export class BookModel extends Realm.Object<BookModel> {
|
|
id: string
|
|
no: number
|
|
name: string
|
|
bookFolderPath: string
|
|
imageFolder: string | null
|
|
type: BookType
|
|
oldVideoPath: string | null
|
|
srtPath: string | null
|
|
audioPath: string | null
|
|
draftDepend?: string // 草稿依赖
|
|
draftSrtStyle: string | null // 草稿字幕样式
|
|
backgroundMusic: string | null // 背景音乐ID
|
|
friendlyReminder: string | null // 友情提示
|
|
updateTime: Date
|
|
createTime: Date
|
|
version: string
|
|
imageStyle: string[] | null // 软件内置的样式
|
|
autoAnalyzeCharacter: string | null // 自动分析角色设置
|
|
customizeImageStyle: string[] | null // 自定义的样式
|
|
videoConfig: string | null // 合成视频设置
|
|
prefixPrompt: string | null // 前缀
|
|
suffixPrompt: string | null // 后缀
|
|
subtitlePosition: string | null // 字幕位置
|
|
watermarkPosition: string | null // 水印位置,一个json数组字符串
|
|
|
|
static schema: Realm.ObjectSchema = {
|
|
name: 'Book',
|
|
properties: {
|
|
id: 'string',
|
|
no: 'int',
|
|
name: 'string',
|
|
bookFolderPath: 'string',
|
|
type: 'string',
|
|
oldVideoPath: 'string?',
|
|
srtPath: 'string?',
|
|
audioPath: 'string?',
|
|
draftDepend: "string?",
|
|
draftSrtStyle: 'string?',
|
|
backgroundMusic: 'string?',
|
|
friendlyReminder: 'string?',
|
|
imageFolder: 'string?',
|
|
updateTime: 'date',
|
|
createTime: 'date',
|
|
version: 'string',
|
|
imageStyle: 'string?[]',
|
|
autoAnalyzeCharacter: 'string?',
|
|
customizeImageStyle: 'string?[]',
|
|
videoConfig: "string?",
|
|
prefixPrompt: "string?",
|
|
suffixPrompt: "string?",
|
|
subtitlePosition: 'string?',
|
|
watermarkPosition: "string?"
|
|
},
|
|
// 主键为_id
|
|
primaryKey: 'id'
|
|
}
|
|
}
|