refactor: 重构RabbitMQ消费者体系,新增自动铺码功能
1. 新增AutoDotCodeConsumer自动铺码消费者,实现统一的交换机路由绑定 2. 重构RabbitMQ接收方法,支持交换机、路由键配置,添加死信队列处理 3. 重构现有JournalTaskReceiveConsumer,使用标准交换机路由配置 4. 更新JournalPageService,将打印逻辑替换为自动铺码消息发送 5. 调整枚举类型,重构任务类型命名 6. 更新实体和DTO,新增Prompt相关字段 7. 添加PrintToolV2.7配套工具和文档 8. 清理冗余的PrintJournalPageAsync接口
This commit is contained in:
@ -71,6 +71,19 @@ namespace QYZH.InteractiveMagazine.Models.Dto.Journal
|
||||
/// 回答时间秒
|
||||
/// </summary>
|
||||
public int AnswerTime { get; set; }
|
||||
/// <summary>
|
||||
/// Desc:基础Prompt配置ID(为空则使用IsDefault=1的模板)
|
||||
/// Default:
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
public string BasePrompt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:个性化Prompt(追加到基础Prompt后面,可为空)
|
||||
/// Default:
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
public string CustomPrompt { get; set; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -126,7 +126,7 @@ namespace QYZH.InteractiveMagazine.Models.Entity
|
||||
/// Default:
|
||||
/// Nullable:True
|
||||
/// </summary>
|
||||
public long? BasePromptId { get; set; }
|
||||
public string BasePrompt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Desc:个性化Prompt(追加到基础Prompt后面,可为空)
|
||||
|
||||
@ -7,24 +7,14 @@ namespace QYZH.InteractiveMagazine.Models.Enum;
|
||||
/// </summary>
|
||||
public enum JournalPageTaskTypeEnum
|
||||
{
|
||||
/// <summary>
|
||||
/// 单选题
|
||||
/// </summary>
|
||||
[Description("单选题")]
|
||||
SingleChoice = 1,
|
||||
/// <summary>
|
||||
/// 多选题
|
||||
/// </summary>
|
||||
[Description("多选题")]
|
||||
MultipleChoice = 2,
|
||||
/// <summary>
|
||||
/// 填空题
|
||||
/// </summary>
|
||||
[Description("填空题")]
|
||||
FillInBlank = 3,
|
||||
[Description("客观题")]
|
||||
FillInBlank = 1,
|
||||
/// <summary>
|
||||
/// 问答题
|
||||
/// </summary>
|
||||
[Description("问答题")]
|
||||
[Description("主观题")]
|
||||
TaskAnswer = 4
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user