namespace MiaoJiZhang.Domain.Entities;
///
/// 后台可配置内容(决策:App 名称等品牌位后台配置;性格 Prompt/文案/表情包后台管理)。
/// 统一 key-value + 版本号,客户端按版本增量拉取。
///
public class AppConfig
{
public long Id { get; set; }
/// 如 brand.app_name / brand.logo_url / llm.model / limit.daily_ai_messages
public string Key { get; set; } = null!;
public string Value { get; set; } = null!;
public int Version { get; set; }
public DateTime UpdatedAt { get; set; }
}
/// AI 性格库(后台管理,Prompt 可调不发版)
public class AiPersona
{
public long Id { get; set; }
/// 如 sassy_cat / gentle / strict / meme
public string Key { get; set; } = null!;
public string Name { get; set; } = null!;
public string Description { get; set; } = null!;
public string SampleLine { get; set; } = null!;
/// 系统提示词模板,支持 {avatar_tic} 等占位符
public string PromptTemplate { get; set; } = null!;
public int Version { get; set; }
public bool IsEnabled { get; set; } = true;
}
/// AI 形象库(后台管理;口癖跟随形象——决策 20)
public class AiAvatar
{
public long Id { get; set; }
/// cat / dog / robot ...
public string Key { get; set; } = null!;
public string DefaultName { get; set; } = null!;
/// 口癖后缀,如 喵 / 汪 / 空字符串
public string SpeechTic { get; set; } = "";
public string? ImageUrl { get; set; }
public bool IsEnabled { get; set; } = true;
}
/// 表情包库(后台管理)
public class Sticker
{
public long Id { get; set; }
public string Key { get; set; } = null!;
public string Label { get; set; } = null!;
public string? ImageUrl { get; set; }
/// 分组:ai_exclusive / classic ...
public string GroupKey { get; set; } = "classic";
/// 触发场景标签,逗号分隔:over_budget,salary,forgive
public string? TriggerTags { get; set; }
public bool IsEnabled { get; set; } = true;
}