Refactor brand service and related components
- Removed ListQuestionVersions method and associated types from BrandService and Queries. - Updated PromptRuleGenerationService to change task naming and handling. - Enhanced ScheduleTaskService to support filtering by created date range and keyword. - Introduced InstantTaskService for managing instant tasks with appropriate filtering and response structures. - Added InstantTaskHandler for handling API requests related to instant tasks. - Created InstantTaskTab component for the admin web interface to display and manage instant tasks. - Updated database migrations to rename source types for articles and generation tasks. - Adjusted models and repository queries to reflect the removal of question version handling.
This commit is contained in:
@@ -187,6 +187,7 @@ const enUS = {
|
||||
status: {
|
||||
generate: {
|
||||
draft: "Draft",
|
||||
queued: "Queued",
|
||||
generating: "Generating",
|
||||
running: "Running",
|
||||
completed: "Completed",
|
||||
@@ -202,6 +203,9 @@ const enUS = {
|
||||
},
|
||||
sourceType: {
|
||||
template: "Template generation",
|
||||
custom_generation: "Custom generation",
|
||||
instant_task: "Instant task",
|
||||
schedule_task: "Scheduled task",
|
||||
},
|
||||
},
|
||||
templates: {
|
||||
@@ -568,6 +572,11 @@ const enUS = {
|
||||
selectPlatform: "Target platform",
|
||||
submit: "Generate now",
|
||||
extraParams: "Extra parameters",
|
||||
name: "Task name",
|
||||
executionStatus: "Execution status",
|
||||
executionTime: "Execution time",
|
||||
createdTime: "Created time",
|
||||
empty: "No instant tasks yet.",
|
||||
},
|
||||
filters: {
|
||||
promptRule: "Prompt rule",
|
||||
@@ -575,6 +584,14 @@ const enUS = {
|
||||
generateStatus: "Generation status",
|
||||
title: "Title",
|
||||
generateTime: "Generation time",
|
||||
status: "Status",
|
||||
name: "Name",
|
||||
namePlaceholder: "Search by task name",
|
||||
createdTime: "Created time",
|
||||
},
|
||||
article: {
|
||||
titleColumn: "Article title",
|
||||
titleGenerating: "Generating title",
|
||||
},
|
||||
messages: {
|
||||
ruleCreated: "Rule created.",
|
||||
|
||||
@@ -187,6 +187,7 @@ const zhCN = {
|
||||
status: {
|
||||
generate: {
|
||||
draft: "草稿",
|
||||
queued: "排队中",
|
||||
generating: "生成中",
|
||||
running: "运行中",
|
||||
completed: "已完成",
|
||||
@@ -202,6 +203,9 @@ const zhCN = {
|
||||
},
|
||||
sourceType: {
|
||||
template: "模版单次生成",
|
||||
custom_generation: "自定义生成",
|
||||
instant_task: "即时任务",
|
||||
schedule_task: "定时任务",
|
||||
},
|
||||
},
|
||||
templates: {
|
||||
@@ -577,6 +581,11 @@ const zhCN = {
|
||||
selectPlatform: "目标平台",
|
||||
submit: "立即生成",
|
||||
extraParams: "额外参数",
|
||||
name: "任务名称",
|
||||
executionStatus: "执行状态",
|
||||
executionTime: "执行时间",
|
||||
createdTime: "创建时间",
|
||||
empty: "还未创建即时任务,暂无相关数据~",
|
||||
},
|
||||
filters: {
|
||||
promptRule: "Prompt 规则",
|
||||
@@ -584,6 +593,14 @@ const zhCN = {
|
||||
generateStatus: "生成状态",
|
||||
title: "标题",
|
||||
generateTime: "生成时间",
|
||||
status: "状态",
|
||||
name: "名称",
|
||||
namePlaceholder: "请输入任务名称内搜索",
|
||||
createdTime: "创建时间",
|
||||
},
|
||||
article: {
|
||||
titleColumn: "文章标题",
|
||||
titleGenerating: "标题生成中",
|
||||
},
|
||||
messages: {
|
||||
ruleCreated: "规则创建成功",
|
||||
|
||||
Reference in New Issue
Block a user