本次提交包含多方面更新: 1. 新增消息类型枚举、杂志标题字段与AI提示词状态管理 2. 重构杂志服务,新增创建杂志接口并统一OSS路径命名规范 3. 调整题库任务结构,将答案解析迁移至独立表并优化关联查询 4. 新增AI提示词无分页查询与状态切换接口 5. 精简任务添加输入DTO,移除冗余字段 6. 修复控制器路由命名大小写不一致问题
106 lines
2.7 KiB
C#
106 lines
2.7 KiB
C#
using QYZH.InteractiveMagazine.Models.Enum;
|
||
using SqlSugar;
|
||
using System;
|
||
using System.Linq;
|
||
using System.Text;
|
||
|
||
namespace QYZH.InteractiveMagazine.Models.Entity
|
||
{
|
||
///<summary>
|
||
///杂志任务;
|
||
///</summary>
|
||
[SugarTable("JournalPageTask")]
|
||
public partial class JournalPageTask : SqlSugarBaseEntity
|
||
{
|
||
public JournalPageTask(){
|
||
|
||
|
||
}
|
||
|
||
/// <summary>
|
||
/// Desc:书id
|
||
/// Default:
|
||
/// Nullable:False
|
||
/// </summary>
|
||
public long JournalId {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:书页id
|
||
/// Default:
|
||
/// Nullable:False
|
||
/// </summary>
|
||
public long JournalPageId {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:题号
|
||
/// Default:
|
||
/// Nullable:True
|
||
/// </summary>
|
||
public string No {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:题型
|
||
/// Default:
|
||
/// Nullable:False
|
||
/// </summary>
|
||
public TaskBankTypeEnum Type {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:任务
|
||
/// Default:
|
||
/// Nullable:True
|
||
/// </summary>
|
||
public string Task {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:分组
|
||
/// Default:
|
||
/// Nullable:False
|
||
/// </summary>
|
||
public long GroupId {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:乐观锁
|
||
/// Default:
|
||
/// Nullable:False
|
||
/// </summary>
|
||
public int Revision {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:任务图片地址
|
||
/// Default:
|
||
/// Nullable:True
|
||
/// </summary>
|
||
public string TaskUrl {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:选项
|
||
/// Default:
|
||
/// Nullable:True
|
||
/// </summary>
|
||
public string Options {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:是否需要AI处理
|
||
/// Default:true
|
||
/// Nullable:False
|
||
/// </summary>
|
||
public bool NeedAiProcess {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:基础Prompt配置ID(为空则使用IsDefault=1的模板)
|
||
/// Default:
|
||
/// Nullable:True
|
||
/// </summary>
|
||
public long? BasePromptId {get;set;}
|
||
|
||
/// <summary>
|
||
/// Desc:个性化Prompt(追加到基础Prompt后面,可为空)
|
||
/// Default:
|
||
/// Nullable:True
|
||
/// </summary>
|
||
public string CustomPrompt {get;set;}
|
||
|
||
}
|
||
}
|