V 3.2.3
1.优化文案处理逻辑,重构界面 2.修复批量导出草稿只能导出一个的bug 3.添加自动 推理人物 场景 方便快速生成标签 4.(聚合推文) 修复删除数据bug 5.新增推理国内转发接口(包括翻译) 6.新增文案导入时导入SRT后可手动校验一遍时间数据,简化简单过程 7.语音服务那边添加字符不生效,格式化不生效 8.优化语音服务(数据结构优化,可设置合成超时时间)
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
import { ipcMain } from 'electron'
|
||||
import { DEFINE_STRING } from '../../define/define_string'
|
||||
import OptionHandle from '../Service/Options/index'
|
||||
import { OptionType } from '@/define/enum/option'
|
||||
|
||||
function OptionsIpc() {
|
||||
|
||||
/**
|
||||
* 获取指定的Option,通过key,不存在返回null
|
||||
*/
|
||||
ipcMain.handle(
|
||||
DEFINE_STRING.OPTIONS.GET_OPTION_BY_KEY,
|
||||
async (_, key: string) => await OptionHandle.GetOptionByKey(key)
|
||||
)
|
||||
|
||||
/**
|
||||
* 修改指定的Option,通过key,不存在则创建
|
||||
*/
|
||||
ipcMain.handle(
|
||||
DEFINE_STRING.OPTIONS.MODIFY_OPTION_BY_KEY,
|
||||
async (_, key: string, value: string, type: OptionType) =>
|
||||
await OptionHandle.ModifyOptionByKey(key, value, type)
|
||||
)
|
||||
|
||||
/**
|
||||
* 同步文案处理中的AI设置旧数据到新的数据表中
|
||||
*/
|
||||
ipcMain.handle(
|
||||
DEFINE_STRING.OPTIONS.INIT_COPY_WRITING_AI_SETTING,
|
||||
async () => await OptionHandle.InitCopyWritingAISetting()
|
||||
)
|
||||
}
|
||||
export { OptionsIpc }
|
||||
Reference in New Issue
Block a user