diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/ChatAdminDbContext.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/ChatAdminDbContext.cs
deleted file mode 100644
index d4c89e7..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/ChatAdminDbContext.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-using MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-namespace MiaoYu.Repository.ChatAI.Admin
-{
- ///
- /// 后台管理系统数据库上下文
- ///
- [DbContextConfig($"Repository.*.Entities.*")]
- public class ChatAdminDbContext : DbContext, IBaseDbContext
- {
- ///
- /// 工作单元
- ///
- public IUnitOfWork UnitOfWork { get; }
-
- public ChatAdminDbContext(DbContextOptions dbContextOptions) : base(dbContextOptions)
- {
- UnitOfWork = new UnitOfWorkImpl(this);
- }
-
- ///
- /// 模型创建
- ///
- ///
- protected override void OnModelCreating(ModelBuilder modelBuilder)
- {
- #region 自动迁移种子数据
-
- //OnModelCreatingPartial(modelBuilder);
- //ModelBuilderExtensions.Seed(modelBuilder);
-
- #endregion
- var dbContextConfigAttribute = GetType().GetCustomAttribute()!;
- var t = dbContextConfigAttribute.GetModelTypes(GetType());
- dbContextConfigAttribute!.OnModelCreating(modelBuilder, t);
-
-
- }
-
-
- }
-}
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/ChatAdminRepositoryStartup.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/ChatAdminRepositoryStartup.cs
deleted file mode 100644
index 15527b2..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/ChatAdminRepositoryStartup.cs
+++ /dev/null
@@ -1,139 +0,0 @@
-
-using MiaoYu.Repository.ChatAI.Admin.Models;
-
-namespace MiaoYu.Repository.ChatAI.Admin
-{
- ///
- /// 程序启动器
- ///
- [ImportStartupModule]
- public class ChatAdminRepositoryStartup : StartupModule
- {
- ///
- /// 程序启动器
- ///
- ///
- public override void ConfigureServices(WebApplicationBuilder webApplicationBuilder)
- {
- var configuration = webApplicationBuilder.Configuration;
- var services = webApplicationBuilder.Services;
- var webHostEnvironment = webApplicationBuilder.Environment;
-
- var repositoriesOptions = configuration
- .GetSection(nameof(ChatAdminRepositoryOptions))
- .Get() ?? throw new Exception("配置对象 空 异常!");
-
- var connectionString = repositoriesOptions?.ConnectionString;
-
- connectionString = string.IsNullOrWhiteSpace(connectionString) ?
- configuration["ConnectionStrings:" + repositoriesOptions!.DefaultDatabaseType.ToString()] :
- connectionString;
-
- services.AddDbContextFactory(optionsBuilder =>
- {
- switch (repositoriesOptions.DefaultDatabaseType)
- {
- case DefaultDatabaseType.SqlServer:
- optionsBuilder
- .UseSqlServer(connectionString, w => w.MinBatchSize(1).MaxBatchSize(1000))
- ;
- break;
- case DefaultDatabaseType.MySql:
- optionsBuilder
- .UseMySql(connectionString, MySqlServerVersion.LatestSupportedServerVersion, w => w.MinBatchSize(1).MaxBatchSize(1000))
- ;
- break;
- case DefaultDatabaseType.PostgreSql:
- //EnableLegacyTimestampBehavior 启动旧行为,避免时区问题,存储时间报错
- AppContext.SetSwitch("Npgsql.EnableLegacyTimestampBehavior", true);
- optionsBuilder
- .UseNpgsql(connectionString, w => w.MinBatchSize(1).MaxBatchSize(1000))
- ;
- break;
- case DefaultDatabaseType.Oracle:
- optionsBuilder
- .UseOracle(connectionString, w => w.MinBatchSize(1).MaxBatchSize(1000))
- ;
- break;
- default:
- break;
- }
-
- if (webHostEnvironment.IsDevelopment())
- {
- var loggerFactory = LoggerFactory.Create(builder => builder.AddConsole());
- // sql 日志写入控制台
- optionsBuilder.UseLoggerFactory(loggerFactory);
- }
-
- // 懒加载代理
- //options.UseLazyLoadingProxies();
- //添加 EFCore 监控 和 动态表名
- optionsBuilder.AddEntityFrameworkMonitor(repositoriesOptions.IsMonitorEFCore);
- optionsBuilder.AddInterceptors(new AuditInterceptor());
- });
-
- services.AddEntityFrameworkRepositories(repositoriesOptions, (auditOptions) =>
- {
- // 你的自定义审计字段 ...
- //auditOptions.Add(new AuditOptions()
- //{
- // CreationTimeFieldName = nameof(ICreateEntityV2.CreateTime),
- // CreatorUserIdFieldName = "",
- // LastModificationTimeFieldName = nameof(IUpdateEntityV2.UpdateTime),
- // LastModifierUserIdFieldName = "",
- // DeletionTimeFieldName = "UpdateTime",
- // DeleterUserIdFieldName = "UpdateBy",
- // IsDeletedFieldName = "DelFlag",
- //});
- }, (freesqlOptions) =>
- {
- freesqlOptions.FreeSqlAuditAopList?.Add(new FreeSqlAuditAop());
- freesqlOptions.FreeSqlAction = (freeSql) =>
- {
- freeSql.Aop.CurdAfter += (object? sender, FreeSql.Aop.CurdAfterEventArgs curdAfter) =>
- {
- var stringBuilder = new StringBuilder();
- stringBuilder.Append($"\r\n====[FreeSql 开始 耗时: {curdAfter.ElapsedMilliseconds} ms]=========");
- stringBuilder.Append($"\r\n{curdAfter.Sql}");
- stringBuilder.Append($"\r\n====[FreeSql 结束 线程Id:{Environment.CurrentManagedThreadId}]=========");
- LogUtil.Log.Warning(stringBuilder.ToString());
- };
- };
- });
- }
-
- ///
- /// Configure
- ///
- ///
- public override void Configure(WebApplication webApplication)
- {
- // 使用 DbContext
- #region 开发环境检测是否需要数据库迁移
-
- //if (webApplication.Environment.IsDevelopment())
- //{
- // // 自动迁移 (如果迁移文件有变动)
- // using var scope = webApplication.Services.CreateScope();
- // using var adminDbContext = scope.ServiceProvider.GetService();
- // if (adminDbContext!.Database.GetPendingMigrations().Count() > 0)
- // {
- // try
- // {
- // adminDbContext.Database.Migrate();
- // }
- // catch (Exception ex)
- // {
- // LogUtil.Log.Error(ex.Message, ex);
- // }
- // }
- //}
-
- #endregion
-
- }
-
-
- }
-}
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/M_MusicGenres.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/M_MusicGenres.cs
deleted file mode 100644
index a823636..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/M_MusicGenres.cs
+++ /dev/null
@@ -1,36 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 存储不同音乐风格的信息。
-///
-[EntityDescription(FieldIgnored = true)]
-[Table("M_MusicGenres")]
-public class M_MusicGenres : DefaultEntityV4
-{
-
-
- ///
- /// 音乐风格名称 => 备注: 音乐风格名称
- ///
- public string? GenreName { get; set; }
-
-
- ///
- /// 音乐风格描述 => 备注: 音乐风格描述
- ///
- public string? Description { get; set; }
-
-
- ///
- /// 排序 => 备注: 排序
- ///
- public Int32 OrderId { get; set; }
-
-
- ///
- /// 是否启用 => 备注: 是否启用
- ///
- public Boolean IsEnabled { get; set; }
-
-
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/M_Songs.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/M_Songs.cs
deleted file mode 100644
index 3734cc4..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/M_Songs.cs
+++ /dev/null
@@ -1,90 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 存储所有生成的歌曲的信息。
-///
-[EntityDescription(FieldIgnored = true)]
-[Table("M_Songs")]
-public class M_Songs : DefaultEntityV4
-{
-
-
- ///
- /// 歌曲名称 => 备注: 歌曲名称
- ///
- public string? Title { get; set; }
-
-
- ///
- /// 用户Id => 备注: 歌曲作者ID
- ///
- public Int32 AuthorId { get; set; }
-
-
- ///
- /// 音乐风格 => 备注: 音乐风格
- ///
- public string? Genre { get; set; }
-
-
- ///
- /// 歌词内容 => 备注: 歌词内容
- ///
- public string? Lyrics { get; set; }
-
-
- ///
- /// 歌曲是否公开展示 => 备注: 歌曲是否公开展示
- ///
- public Boolean IsPublic { get; set; }
-
-
- ///
- /// 歌曲创建时间 => 备注: 歌曲创建时间
- ///
- public DateTime CreationTimestamp { get; set; }
-
-
- ///
- /// 歌曲时长 => 备注: 歌曲时长
- ///
- public TimeSpan? Duration { get; set; }
-
-
- ///
- /// 播放次数 => 备注: 播放次数
- ///
- public Int32 PlayCount { get; set; }
-
-
- ///
- /// 点赞次数 => 备注: 点赞次数
- ///
- public Int32 LikeCount { get; set; }
-
-
- ///
- /// 下载次数 => 备注: 下载次数
- ///
- public Int32 DownloadCount { get; set; }
-
-
- ///
- /// 音乐下载地址 => 备注: 音乐下载地址
- ///
- public string? MusicAddress { get; set; }
-
-
- ///
- /// 封面图 => 备注: 封面图
- ///
- public string? CoverImage { get; set; }
-
-
- ///
- /// 音乐风格Id => 备注: 音乐风格Id
- ///
- public Int32? GenreId { get; set; }
-
-
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Category_Child_Menu.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Category_Child_Menu.cs
deleted file mode 100644
index ef96ef4..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Category_Child_Menu.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 发现页类别菜单
-///
-[EntityDescription(FieldIgnored = true)]
-public class T_Category_Child_Menu : DefaultEntityV4
-{
-
-
- ///
- /// 菜单类型 => 备注: 菜单类型(banner,热门推荐,热门小说)
- ///
- public string? Type { get; set; }
-
-
- ///
- /// 名称 => 备注: 名称
- ///
- public string? Name { get; set; }
-
-
- ///
- /// 动作I => 备注: 动作Id
- ///
- public string? ActionId { get; set; }
-
-
- ///
- /// 动作类型 => 备注: 动作类型
- ///
- public string? ActionType { get; set; }
-
-
- ///
- /// 图片Id => 备注: 图片Id
- ///
- public Int32 ImageId { get; set; }
-
-
- ///
- /// 排序 => 备注: 排序
- ///
- public Int32 OrderById { get; set; }
-
-
- ///
- /// 图片补位 => 备注: 图片补位
- ///
- public string? ImageUrl { get; set; }
-
-
- ///
- /// 是否启用 => 备注: IsEnabled
- ///
- public Boolean IsEnabled { get; set; }
-
-
- ///
- /// 副标题 => 备注: SubTitle
- ///
- public string? SubTitle { get; set; }
-
-
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Character.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Character.cs
deleted file mode 100644
index 8100095..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Character.cs
+++ /dev/null
@@ -1,95 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 人物表
-///
-[EntityDescription(FieldIgnored = true)]
-public class T_Character : DefaultEntityV4
-{
-
-
- ///
- /// 人物名字 => 备注: 人物名字
- ///
- public string? Name { get; set; }
-
-
- ///
- /// 人物简介 => 备注: 人物简介
- ///
- public string? Biography { get; set; }
-
-
- ///
- /// 开场白,剧情 => 备注: 开场白,剧情
- ///
- public string? Prologue { get; set; }
-
-
- ///
- /// 模型Id => 备注: 模型Id
- ///
- public Int32 ModelConfigId { get; set; }
-
-
- ///
- /// 公开/私密 0公开 1私密 => 备注: 公开/私密 0公开 1私密
- ///
- public Boolean Visibility { get; set; }
-
-
- ///
- /// 创建时间 => 备注: 创建时间
- ///
- public DateTime? CreateTime { get; set; }
-
-
- ///
- /// 更新时间 => 备注: 更新时间
- ///
- public DateTime? UpdateTime { get; set; }
-
-
- ///
- /// 性别0男1女2其他 => 备注: 性别0男1女2其他
- ///
- public Int32 Gender { get; set; }
-
-
- ///
- /// 人物初始设定 => 备注: 人物初始设定
- ///
- public string? System { get; set; }
-
-
- ///
- /// 背景图片 => 备注: 背景图片
- ///
- public Int32? BgImg { get; set; }
-
-
- ///
- /// 角色头像(是id) => 备注: 角色头像(是id)
- ///
- public Int32? IconImg { get; set; }
-
-
- ///
- /// 对话名字 => 备注: 对话名字
- ///
- public string? UserName { get; set; }
-
-
- ///
- /// 对话性别 => 备注: 对话性别
- ///
- public string? UserSex { get; set; }
-
-
- ///
- /// system最大的token数 => 备注: system最大的token数
- ///
- public Int32? Token { get; set; }
-
-
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Character_Label.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Character_Label.cs
deleted file mode 100644
index 9859739..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Character_Label.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 角色标签表
-///
-[EntityDescription(FieldIgnored = true)]
-public class T_Character_Label : DefaultEntityV4
-{
-
-
- ///
- /// 标签名称 => 备注: 标签名称
- ///
- public string? LabelName { get; set; }
-
-
- ///
- /// 创建时间 => 备注: 创建时间
- ///
- public DateTime CreateTime { get; set; }
-
-
- ///
- /// 更新时间 => 备注: 更新时间
- ///
- public DateTime UpdateTime { get; set; }
-
-
- ///
- /// 标签值 => 备注: 标签值
- ///
- public string? LabelValue { get; set; }
-
-
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Character_Label_Relation.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Character_Label_Relation.cs
deleted file mode 100644
index eb4c0e7..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Character_Label_Relation.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 关联角色和标签
-///
-[EntityDescription(FieldIgnored = true)]
-public class T_Character_Label_Relation : DefaultEntityV4
-{
-
-
- ///
- /// 人物Id => 备注: 人物Id
- ///
- public Int32 CharacterId { get; set; }
-
-
- ///
- /// 人物标签id => 备注: 人物标签id
- ///
- public Int32 CharacterLabelId { get; set; }
-
-
- ///
- /// 创建时间 => 备注: 创建时间
- ///
- public DateTime CreateTime { get; set; }
-
-
- ///
- /// 更新时间 => 备注: 更新时间
- ///
- public DateTime UpdateTime { get; set; }
-
-
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Character_Personality.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Character_Personality.cs
deleted file mode 100644
index c4c31f7..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Character_Personality.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 角色性格表
-///
-[EntityDescription(FieldIgnored = true)]
-public class T_Character_Personality : DefaultEntityV4
-{
-
-
- ///
- /// 性格名称 => 备注: 性格名称
- ///
- public string? Name { get; set; }
-
-
- ///
- /// 性格值 => 备注: 性格值
- ///
- public string? Value { get; set; }
-
-
- ///
- /// 创建时间 => 备注: 创建时间
- ///
- public DateTime CreateTime { get; set; }
-
-
- ///
- /// 修改时间 => 备注: 修改时间
- ///
- public DateTime UpdateTime { get; set; }
-
-
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Character_Personality_Relation.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Character_Personality_Relation.cs
deleted file mode 100644
index c8b97dd..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Character_Personality_Relation.cs
+++ /dev/null
@@ -1,29 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 角色和性格关联表
-///
-[EntityDescription(FieldIgnored = true)]
-public class T_Character_Personality_Relation : DefaultEntityV4
-{
-
-
- ///
- /// 性格Id => 备注: 性格Id
- ///
- public Int32 PersonalityId { get; set; }
-
-
- ///
- /// 角色Id => 备注: 角色Id
- ///
- public Int32 CharacterId { get; set; }
-
-
- ///
- /// 创建时间 => 备注: 创建时间
- ///
- public DateTime CreateTime { get; set; }
-
-
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Character_Type.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Character_Type.cs
deleted file mode 100644
index 5510280..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Character_Type.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 发现页类型分类
-///
-[EntityDescription(FieldIgnored = true)]
-public class T_Character_Type : DefaultEntityV4
-{
-
-
- ///
- /// 类型名称 => 备注: 类型名称
- ///
- public string? Name { get; set; }
-
-
- ///
- /// 创建时间 => 备注: 创建时间
- ///
- public DateTime CreateTime { get; set; }
-
-
- ///
- /// 更新时间 => 备注: 更新时间
- ///
- public DateTime UpdateTime { get; set; }
-
-
- ///
- /// 分类页不显示 => 备注: 分类页不显示
- ///
- public Boolean IsNotCategoryShow { get; set; }
-
-
- ///
- /// 序号 => 备注: 序号
- ///
- public Int32 OrderBy { get; set; }
-
-
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Character_Type_Intimacy.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Character_Type_Intimacy.cs
deleted file mode 100644
index 7b3b63e..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Character_Type_Intimacy.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 角色和角色类型关联表
-///
-[EntityDescription(FieldIgnored = true)]
-public class T_Character_Type_Intimacy : DefaultEntityV4
-{
-
-
- ///
- /// 列表Id => 备注: 列表Id
- ///
- public Int32 TypeId { get; set; }
-
-
- ///
- /// 角色Id => 备注: 角色Id
- ///
- public Int32 CharacterId { get; set; }
-
-
- ///
- /// 修改时间 => 备注: 修改时间
- ///
- public DateTime UpdateTIme { get; set; }
-
-
- ///
- /// 创建时间 => 备注: 创建时间
- ///
- public DateTime CreateTime { get; set; }
-
-
- ///
- /// 类别表排序 => 备注: 类别表排序
- ///
- public Int32 OrderBy { get; set; }
-
-
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Chat.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Chat.cs
deleted file mode 100644
index 5f06258..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Chat.cs
+++ /dev/null
@@ -1,113 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 聊天记录表
-///
-[EntityDescription(FieldIgnored = true)]
-public class T_Chat : DefaultEntityV4
-{
-
-
- ///
- /// 聊天内容 => 备注: 聊天内容
- ///
- public Int32 UserId { get; set; }
-
-
- ///
- /// 消息内容 => 备注: 消息内容
- ///
- public string? Content { get; set; }
-
-
- ///
- /// 发送时间 => 备注: 发送时间
- ///
- public DateTime TimeStamp { get; set; }
-
-
- ///
- /// 创建时间 => 备注: 创建时间
- ///
- public DateTime CreateTime { get; set; }
-
-
- ///
- /// 更新时间 => 备注: 更新时间
- ///
- public DateTime UpdateTime { get; set; }
-
-
- ///
- /// 输入token => 备注: 输入token
- ///
- public Int32 Input_tokens { get; set; }
-
-
- ///
- /// 输出token => 备注: 输出token
- ///
- public Int32 Output_tokens { get; set; }
-
-
- ///
- /// 人物表Id => 备注: 人物表Id
- ///
- public Int32 CharacterId { get; set; }
-
-
- ///
- /// 角色 => 备注: user/assistant
- ///
- public string? Role { get; set; }
-
-
- ///
- /// 会话Id => 备注: SessionId
- ///
- public Guid SessionId { get; set; }
-
-
- ///
- /// 发送消息 => 备注: 发送消息,天
- ///
- public Int64 SendDateDay { get; set; }
-
-
- ///
- /// 发送消息时间戳 => 备注: 发送消息时间戳
- ///
- public Int64 SendMessageDay { get; set; }
-
-
- ///
- /// 消息状态 => 备注: 0正常,1重新生成,2 删除
- ///
- public Int32 Type { get; set; }
-
-
- ///
- /// 消息类型 => 备注: 聊天返回的消息的类型
- ///
- public string? ClaudeType { get; set; }
-
-
- ///
- /// ClaudeId => 备注: 聊天返回的Id
- ///
- public string? ClaudeId { get; set; }
-
-
- ///
- /// 人物模型 => 备注: 人物模型,聊天返回的模型
- ///
- public string? ClaudeModel { get; set; }
-
-
- ///
- /// 总Tokens => 备注: 消耗的token
- ///
- public Int32? Tokens { get; set; }
-
-
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Image_Config.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Image_Config.cs
deleted file mode 100644
index d84007e..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Image_Config.cs
+++ /dev/null
@@ -1,28 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 图片表
-///
-public class T_Image_Config : DefaultEntityV4
-{
-
-
- ///
- /// 图片Id => 备注: 图片Id
- ///
- public Int32 ImageId { get; set; }
-
-
- ///
- /// 图片名称 => 备注: 图片名称
- ///
- public string? Name { get; set; }
-
-
- ///
- /// 图片地址 => 备注: 图片地址
- ///
- public string? Url { get; set; }
-
-
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Model_Config.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Model_Config.cs
deleted file mode 100644
index fc389ab..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Model_Config.cs
+++ /dev/null
@@ -1,92 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 模型配置表
-///
-[EntityDescription(FieldIgnored = true)]
-public class T_Model_Config : DefaultEntityV4
-{
-
-
- ///
- /// 模型名称 => 备注: 模型名称
- ///
- public string? ModelName { get; set; }
-
-
- ///
- /// 模型model => 备注: 模型model
- ///
- public string? Model { get; set; }
-
-
- ///
- /// max_tokens => 备注: 模型运行最大的max_tokens
- ///
- public Int32 MaxTokens { get; set; }
-
-
- ///
- /// key x-api-key => 备注: 模型key x-api-key
- ///
- public string? ApiKey { get; set; }
-
-
- ///
- /// 模型请求地址 => 备注: 模型请求地址
- ///
- public string? Url { get; set; }
-
-
- ///
- /// 模型版本 => 备注: 模型版本 anthropic-version
- ///
- public string? AnthropicVersion { get; set; }
-
-
- ///
- /// 创建时间 => 备注: 创建时间
- ///
- public DateTime CreateTime { get; set; }
-
-
- ///
- /// 修改时间 => 备注: 修改时间
- ///
- public DateTime UpdateTime { get; set; }
-
-
- ///
- /// 上下文模板 => 备注: system上下文模板
- ///
- public string? SystemTemplate { get; set; }
-
-
- ///
- /// 请求模板 => 备注: 请求模板
- ///
- public string? RequestTemplate { get; set; }
-
-
- ///
- /// headers对象 => 备注: headers对象
- ///
- public string? HeadersTemplate { get; set; }
-
-
- ///
- /// 返回数据模板 => 备注: 返回数据模板
- ///
- public string? ResponseTemplate { get; set; }
-
-
- ///
- /// 是否默认 => 备注: 是否默认
- ///
- public Boolean? IsDefabult { get; set; }
-
- ///
- /// 其它的模板
- ///
- public virtual string? OtherTemplate { get; set; }
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Order.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Order.cs
deleted file mode 100644
index 0bd064e..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Order.cs
+++ /dev/null
@@ -1,77 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 订单完成表
-///
-[EntityDescription(FieldIgnored = true)]
-public class T_Order : DefaultEntityV4
-{
-
-
- ///
- /// 订单编号 => 备注: 订单编号
- ///
- public string? OrderId { get; set; }
-
-
- ///
- /// 用户Id => 备注: 用户Id
- ///
- public Int32 UserId { get; set; }
-
-
- ///
- /// 订单创建时间 => 备注: 订单创建时间
- ///
- public DateTime OrderDate { get; set; }
-
-
- ///
- /// 订单支付时间 => 备注: 订单支付时间
- ///
- public DateTime PaymentDate { get; set; }
-
-
- ///
- /// 订单支付方式 => 备注: 订单支付方式
- ///
- public string? PaymentMethod { get; set; }
-
-
- ///
- /// 购买的产品Id => 备注: 购买的产品Id
- ///
- public string? ProductId { get; set; }
-
-
- ///
- /// 价格 => 备注: 价格
- ///
- public Decimal TotalPrice { get; set; }
-
-
- ///
- /// 订单状态 => 备注: 订单状态
- ///
- public Int32 Status { get; set; }
-
-
- ///
- /// 创建时间 => 备注: 创建时间
- ///
- public DateTime CreatedAt { get; set; }
-
-
- ///
- /// 修改时间 => 备注: 修改时间
- ///
- public DateTime UpdatedAt { get; set; }
-
-
- ///
- /// 订单创建天 => 备注: 订单创建天
- ///
- public DateTime PaymentDay { get; set; }
-
-
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_OrderItems.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_OrderItems.cs
deleted file mode 100644
index 7fa7593..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_OrderItems.cs
+++ /dev/null
@@ -1,54 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 订单详情表
-///
-[EntityDescription(FieldIgnored = true)]
-[Table("T_OrderItems")]
-public class T_OrderItems : DefaultEntityV4
-{
-
-
- ///
- /// 产品id => 备注: 产品id
- ///
- public string? ProductId { get; set; }
-
-
- ///
- /// 订单id => 备注: 订单id
- ///
- public string? OrderId { get; set; }
-
-
- ///
- /// 发放奖励信息 => 备注: 发放奖励信息
- ///
- public string? RewardInfo { get; set; }
-
-
- ///
- /// 产品id、主键 => 备注: 产品id、主键
- ///
- public Int32 Product { get; set; }
-
-
- ///
- /// 支付信息 => 备注: 支付信息
- ///
- public string? PaymentInfo { get; set; }
-
-
- ///
- /// 发放奖励提示 => 备注: 发放奖励提示
- ///
- public string? RewardTips { get; set; }
-
-
- ///
- /// 支付地址 => 备注: 支付地址
- ///
- public string? PayUrl { get; set; }
-
-
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Products.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Products.cs
deleted file mode 100644
index 928f8dc..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Products.cs
+++ /dev/null
@@ -1,86 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 商城表
-///
-[EntityDescription(FieldIgnored = true)]
-public class T_Products : DefaultEntityV4
-{
-
-
- ///
- /// 道具Id => 备注: 道具Id
- ///
- public string? ProductId { get; set; }
-
-
- ///
- /// 道具名称 => 备注: 道具名称
- ///
- public string? ProductName { get; set; }
-
-
- ///
- /// 道具类型 => 备注: 道具类型,0商城,1商店
- ///
- public Int32 ProductType { get; set; }
-
-
- ///
- /// 道具描述 => 备注: 道具描述
- ///
- public string? ProductDesc { get; set; }
-
-
- ///
- /// 价格 => 备注: 价格
- ///
- public Decimal Price { get; set; }
-
-
- ///
- /// 道具图片 => 备注: 道具图片配置 图片id
- ///
- public Int32 ProductImgId { get; set; }
-
-
- ///
- /// 商品状态 => 备注: 商品是否下架 0否1是
- ///
- public Int32 IsProductDelisting { get; set; }
-
-
- ///
- /// 首充 => 备注: 是否有首充
- ///
- public Boolean IsFirstCharge { get; set; }
-
-
- ///
- /// 首充图片 => 备注: 首充图片
- ///
- public Int32? FirstChargeImgId { get; set; }
-
-
- ///
- /// 首充价格 => 备注: 首充价格
- ///
- public Decimal? FirstChargePrice { get; set; }
-
-
- ///
- /// 创建时间 => 备注: 创建时间
- ///
- public DateTime CreateTime { get; set; }
-
-
- ///
- /// 更新时间 => 备注: 更新时间
- ///
- public DateTime? UpdateTime { get; set; }
-
- ///
- /// 排序 => 备注: 排序
- ///
- public Int32? OrderById { get; set; }
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Products_Reward.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Products_Reward.cs
deleted file mode 100644
index caffbd0..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Products_Reward.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 产品表奖励
-///
-[EntityDescription(FieldIgnored = true)]
-public class T_Products_Reward : DefaultEntityV4
-{
-
-
- ///
- /// 奖励类型 => 备注: 奖励类型
- ///
- public Int32 CurrencyType { get; set; }
-
-
- ///
- /// 送多少奖励 => 备注: 送多少奖励
- ///
- public Int32 Money { get; set; }
-
-
- ///
- /// 所属商品 => 备注: 所属商品
- ///
- public Int32 T_ProductId { get; set; }
-
-
- ///
- /// 首充送多少奖励 => 备注: 首充送多少奖励
- ///
- public Int32? FirstChargeMoney { get; set; }
-
-
- ///
- /// 所属商品 => 备注: 所属商品
- ///
- public string? ProductId { get; set; }
-
-
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_User.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_User.cs
deleted file mode 100644
index 03a18cc..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_User.cs
+++ /dev/null
@@ -1,86 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 用户表
-///
-[EntityDescription(FieldIgnored = true)]
-public class T_User : DefaultEntityV4
-{
-
-
- ///
- /// 用户昵称 => 备注: 用户昵称
- ///
- public string? NickName { get; set; }
-
-
- ///
- /// 用户姓名 => 备注: 用户姓名
- ///
- public string? UserName { get; set; }
-
-
- ///
- /// 手机号 => 备注: 绑定的手机号
- ///
- public string? PhoneNum { get; set; }
-
-
- ///
- /// 邮箱 => 备注: 绑定的邮箱
- ///
- public string? Email { get; set; }
-
-
- ///
- /// 是否活跃 => 备注: 是否活跃
- ///
- public Boolean IsActive { get; set; }
-
-
- ///
- /// 创建时间 => 备注: 创建时间
- ///
- public DateTime CreatedAt { get; set; }
-
-
- ///
- /// 最后一次登录方式,1手机号 => 备注: 最后一次登录方式,1手机号
- ///
- public Int32 LastLoginTypeAt { get; set; }
-
-
- ///
- /// 登录时间 => 备注: 最后一次登录时间
- ///
- public DateTime LastLoginAt { get; set; }
-
-
- ///
- /// 修改时间 => 备注: 修改时间
- ///
- public DateTime UpdatedAt { get; set; }
-
-
- ///
- /// 首次注册方式 => 备注: 首次注册方式
- ///
- public Int32 RegisterType { get; set; }
-
-
- ///
- /// Ip地址 => 备注: Ip地址
- ///
- public string? Ip { get; set; }
-
-
- ///
- /// 0正常,1注销
- ///
- public virtual int State { get; set; }
-
- ///
- /// 是否是测试账号
- ///
- public virtual bool? IsTest { get; set; }
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_User_Currency.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_User_Currency.cs
deleted file mode 100644
index 4d60fbf..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_User_Currency.cs
+++ /dev/null
@@ -1,47 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 用户货币表
-///
-[EntityDescription(FieldIgnored = true)]
-public class T_User_Currency : DefaultEntityV4
-{
-
-
- ///
- /// 货币类型 => 备注: 货币类型
- ///
- public Int32 CurrencyType { get; set; }
-
-
- ///
- /// 货币名称 => 备注: 货币名称
- ///
- public string? CurrencyName { get; set; }
-
-
- ///
- /// 货币余额 => 备注: 货币余额
- ///
- public Decimal CurrencyMoney { get; set; }
-
-
- ///
- /// 修改时间 => 备注: 修改时间
- ///
- public DateTime UpdateAt { get; set; }
-
-
- ///
- /// 创建时间 => 备注: 创建时间
- ///
- public DateTime CreateAt { get; set; }
-
-
- ///
- /// 用户Id => 备注: 用户Id
- ///
- public Int32 UserId { get; set; }
-
-
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_User_Currency_Log.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_User_Currency_Log.cs
deleted file mode 100644
index 1e2d679..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_User_Currency_Log.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 用户金额记录表
-///
-[EntityDescription(FieldIgnored = true)]
-public class T_User_Currency_Log : DefaultEntityV4
-{
-
-
- ///
- /// 用户 => 备注: 用户
- ///
- public Int32 UserId { get; set; }
-
-
- ///
- /// 金额类型 => 备注: 金额类型
- ///
- public Int32 CurrencyType { get; set; }
-
-
- ///
- /// 金额 => 备注: 金额
- ///
- public Decimal Consume { get; set; }
-
-
- ///
- /// 消耗类型 => 备注: 消耗类型,0消耗,1增加
- ///
- public Int32 ConsumeType { get; set; }
-
-
- ///
- /// 备注 => 备注: 备注
- ///
- public string? Remarks { get; set; }
-
-
- ///
- /// 创建时间 => 备注: 创建时间
- ///
- public DateTime CreateTime { get; set; }
-
-
- ///
- /// 修改时间 => 备注: 修改时间
- ///
- public DateTime UpdateTime { get; set; }
-
-
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_User_IntentOrder.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_User_IntentOrder.cs
deleted file mode 100644
index 03383f6..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_User_IntentOrder.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 意向订单表
-///
-[EntityDescription(FieldIgnored = true)]
-[Table("T_User_IntentOrder")]
-public class T_User_IntentOrder : DefaultEntityV4
-{
-
-
- ///
- /// 用户Id => 备注: 用户Id
- ///
- public Int32 UserId { get; set; }
-
-
- ///
- /// 产品id => 备注: 产品id
- ///
- public string? ProductId { get; set; }
-
-
- ///
- /// 支付方式 => 备注: 支付方式
- ///
- public string? Method { get; set; }
-
-
- ///
- /// 价格 => 备注: 价格
- ///
- public Decimal Price { get; set; }
-
-
- ///
- /// 数量 => 备注: 数量
- ///
- public Int32 Quantity { get; set; }
-
-
- ///
- /// 状态 => 备注: 状态
- ///
- public Int32 Status { get; set; }
-
-
- ///
- /// 备注 => 备注: 备注
- ///
- public string? Notes { get; set; }
-
-
- ///
- /// 订单创建时间 => 备注: 订单创建时间
- ///
- public DateTime IntentDate { get; set; }
-
-
- ///
- /// 创建时间 => 备注: 创建时间
- ///
- public DateTime CreatedAt { get; set; }
-
-
- ///
- /// 修改时间 => 备注: 修改时间
- ///
- public DateTime UpdatedAt { get; set; }
-
-
- ///
- /// 订单Id => 备注: 订单Id
- ///
- public string? OrderId { get; set; }
-
-
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_User_Phone_Account.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_User_Phone_Account.cs
deleted file mode 100644
index 5074d85..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_User_Phone_Account.cs
+++ /dev/null
@@ -1,55 +0,0 @@
-using MiaoYu.Core.EntityFramework.Models;
-
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 手机号登录表
-///
-[EntityDescription(FieldIgnored = true)]
-public class T_User_Phone_Account : DefaultEntityV4
-{
-
-
- ///
- /// 用户Id => 备注: 用户Id
- ///
- public Int32 UserId { get; set; }
-
-
- ///
- /// 手机号 => 备注: 手机号
- ///
- public string? PhoneNum { get; set; }
-
-
- ///
- /// 验证码 => 备注: 验证码
- ///
- public string? VerificationCode { get; set; }
-
-
- ///
- /// 最后一次登录时间 => 备注: 最后一次登录时间
- ///
- public DateTime LastLoginAt { get; set; }
-
-
- ///
- /// 修改时间 => 备注: 修改时间
- ///
- public DateTime CreatedAt { get; set; }
-
-
- ///
- /// 创建时间 => 备注: 创建时间
- ///
- public DateTime UpdatedAt { get; set; }
-
-
- ///
- /// 用户昵称 => 备注: 用户昵称
- ///
- public string? NikeName { get; set; }
-
-
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Verification_Code.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Verification_Code.cs
deleted file mode 100644
index 06e4cef..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/Apps/T_Verification_Code.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
-
-///
-/// 验证码表
-///
-[EntityDescription(FieldIgnored = true)]
-public class T_Verification_Code : DefaultEntityV4
-{
-
-
- ///
- /// 手机号或者邮箱 => 备注: 手机号或者邮箱
- ///
- public string? Key { get; set; }
-
-
- ///
- /// 验证码 => 备注: 验证码
- ///
- public string? Code { get; set; }
-
-
- ///
- /// 创建天 => 备注: 创建天
- ///
- public Int32 CreateDay { get; set; }
-
-
- ///
- /// 过期时间 => 备注: 过期时间
- ///
- public DateTime ExpireAt { get; set; }
-
-
- ///
- /// 创建时间 => 备注: 创建时间
- ///
- public DateTime CreateAt { get; set; }
-
-
- ///
- /// 备注 => 备注: 备注
- ///
- public string? Remarks { get; set; }
-
-
- ///
- /// 0手机,1邮箱 => 备注: 0手机,1邮箱
- ///
- public Int32 VerificationType { get; set; }
-
-
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/T_Image_Config.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/T_Image_Config.cs
deleted file mode 100644
index 3ad8ac2..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/T_Image_Config.cs
+++ /dev/null
@@ -1,72 +0,0 @@
-using FreeSql.DatabaseModel;
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using System.Linq;
-using System.Reflection;
-using System.Threading.Tasks;
-using Newtonsoft.Json;
-using FreeSql.DataAnnotations;
-using MiaoYu.Core.EntityFramework.Models;
-
-namespace MiaoYu.Repository.ChatAI.Admin.Entities
-{
-
- ///
- /// 图片表
- ///
- [EntityDescription(FieldIgnored = true)]
- public partial class T_Image_Config : DefaultEntityV4
- {
-
-
-
-
- ///
- /// 图片Id
- ///
- public int ImageId { get; set; }
-
- ///
- /// 图片名称
- ///
- public string Name { get; set; } = null!;
-
- ///
- /// 图片地址
- ///
- public string Url { get; set; } = null!;
-
- ///
- /// 创建时间
- ///
- public DateTime CreateAt { get; set; }
-
- ///
- /// 修改时间
- ///
- public DateTime UpdateAt { get; set; }
-
- ///
- /// oss存放路径
- ///
- public string? OssPath { get; set; }
-
- ///
- /// 存储桶
- ///
- public string? Bucket { get; set; }
-
- ///
- /// 地域
- ///
- public string? Region { get; set; }
-
- ///
- /// 图片类型
- ///
- public int ImageType { get; set; }
-
- }
-
-}
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/__razor.cshtml.txt b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/__razor.cshtml.txt
deleted file mode 100644
index 8997b3b..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/__razor.cshtml.txt
+++ /dev/null
@@ -1,67 +0,0 @@
-using FreeSql.DatabaseModel;@{
-var gen = Model as RazorModel;
-
-Func GetAttributeString = attr => {
- if (string.IsNullOrEmpty(attr)) return "";
- return string.Concat(", ", attr.Trim('[', ']'));
-};
-Func GetDefaultValue = defval => {
- if (string.IsNullOrEmpty(defval)) return "";
- return " = " + defval + ";";
-};
-}@{
-switch (gen.fsql.Ado.DataType) {
- case FreeSql.DataType.PostgreSQL:
-@:using System;
-@:using System.Collections;
-@:using System.Collections.Generic;
-@:using System.Linq;
-@:using System.Reflection;
-@:using System.Threading.Tasks;
-@:using Newtonsoft.Json;
-@:using FreeSql.DataAnnotations;
-@:using System.Net;
-@:using Newtonsoft.Json.Linq;
-@:using System.Net.NetworkInformation;
-@:using NpgsqlTypes;
-@:using Npgsql.LegacyPostgis;
- break;
- case FreeSql.DataType.SqlServer:
- case FreeSql.DataType.MySql:
- default:
-@:using System;
-@:using System.Collections;
-@:using System.Collections.Generic;
-@:using System.Linq;
-@:using System.Reflection;
-@:using System.Threading.Tasks;
-@:using Newtonsoft.Json;
-@:using FreeSql.DataAnnotations;
- break;
-}
-}
-
-namespace @gen.NameSpace {
-
-@if (string.IsNullOrEmpty(gen.table.Comment) == false) {
- @:///
- @:/// @gen.table.Comment.Replace("\r\n", "\n").Replace("\n", "\r\n /// ")
- @:///
-}
- [JsonObject(MemberSerialization.OptIn)@GetAttributeString(gen.GetTableAttribute())]
- public partial class @gen.GetCsName(gen.FullTableName) {
-
- @foreach (var col in gen.columns) {
-
- if (string.IsNullOrEmpty(col.Comment) == false) {
- @:///
- @:/// @col.Comment.Replace("\r\n", "\n").Replace("\n", "\r\n /// ")
- @:///
- }
- @:@("[JsonProperty" + GetAttributeString(gen.GetColumnAttribute(col, true)) + "]")
- @:public @gen.GetCsType(col) @gen.GetCsName(col.Name) { get; set; }@GetDefaultValue(gen.GetColumnDefaultValue(col, false))
-@:
- }
- }
-@gen.GetMySqlEnumSetDefine()
-}
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/__重新生成.bat b/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/__重新生成.bat
deleted file mode 100644
index db5a665..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Entities/__重新生成.bat
+++ /dev/null
@@ -1,2 +0,0 @@
-
-FreeSql.Generator -Razor "__razor.cshtml.txt" -NameOptions 1,0,0,0 -NameSpace MiaoYu.Repository.ChatAI.Admin.Entities -DB "SqlServer,data source=192.168.195.2;initial catalog=MiaoYu;User Id=zpc;Password=zpc;TrustServerCertificate=true;pooling=true;max pool size=2" -FileName "{name}.cs"
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/FodyWeavers.xml b/admin-server/MiaoYu.Repository.ChatAI.Admin/FodyWeavers.xml
deleted file mode 100644
index a6a2edf..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/FodyWeavers.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/FodyWeavers.xsd b/admin-server/MiaoYu.Repository.ChatAI.Admin/FodyWeavers.xsd
deleted file mode 100644
index f35a69b..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/FodyWeavers.xsd
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed.
-
-
-
-
- A comma-separated list of error codes that can be safely ignored in assembly verification.
-
-
-
-
- 'false' to turn off automatic generation of the XML Schema file.
-
-
-
-
-
\ No newline at end of file
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/MiaoYu.Repository.ChatAI.Admin.csproj b/admin-server/MiaoYu.Repository.ChatAI.Admin/MiaoYu.Repository.ChatAI.Admin.csproj
deleted file mode 100644
index e44d366..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/MiaoYu.Repository.ChatAI.Admin.csproj
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
- net8.0
- enable
- enable
- True
- $(MSBuildProjectName).xml
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/MiaoYu.Repository.ChatAI.Admin.xml b/admin-server/MiaoYu.Repository.ChatAI.Admin/MiaoYu.Repository.ChatAI.Admin.xml
deleted file mode 100644
index cc03e50..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/MiaoYu.Repository.ChatAI.Admin.xml
+++ /dev/null
@@ -1,1121 +0,0 @@
-
-
-
- MiaoYu.Repository.ChatAI.Admin
-
-
-
-
- 后台管理系统数据库上下文
-
-
-
-
- 工作单元
-
-
-
-
- 模型创建
-
-
-
-
-
- 程序启动器
-
-
-
-
- 程序启动器
-
-
-
-
-
- Configure
-
-
-
-
-
- 存储不同音乐风格的信息。
-
-
-
-
- 音乐风格名称 => 备注: 音乐风格名称
-
-
-
-
- 音乐风格描述 => 备注: 音乐风格描述
-
-
-
-
- 排序 => 备注: 排序
-
-
-
-
- 是否启用 => 备注: 是否启用
-
-
-
-
- 存储所有生成的歌曲的信息。
-
-
-
-
- 歌曲名称 => 备注: 歌曲名称
-
-
-
-
- 用户Id => 备注: 歌曲作者ID
-
-
-
-
- 音乐风格 => 备注: 音乐风格
-
-
-
-
- 歌词内容 => 备注: 歌词内容
-
-
-
-
- 歌曲是否公开展示 => 备注: 歌曲是否公开展示
-
-
-
-
- 歌曲创建时间 => 备注: 歌曲创建时间
-
-
-
-
- 歌曲时长 => 备注: 歌曲时长
-
-
-
-
- 播放次数 => 备注: 播放次数
-
-
-
-
- 点赞次数 => 备注: 点赞次数
-
-
-
-
- 下载次数 => 备注: 下载次数
-
-
-
-
- 音乐下载地址 => 备注: 音乐下载地址
-
-
-
-
- 封面图 => 备注: 封面图
-
-
-
-
- 音乐风格Id => 备注: 音乐风格Id
-
-
-
-
- 发现页类别菜单
-
-
-
-
- 菜单类型 => 备注: 菜单类型(banner,热门推荐,热门小说)
-
-
-
-
- 名称 => 备注: 名称
-
-
-
-
- 动作I => 备注: 动作Id
-
-
-
-
- 动作类型 => 备注: 动作类型
-
-
-
-
- 图片Id => 备注: 图片Id
-
-
-
-
- 排序 => 备注: 排序
-
-
-
-
- 图片补位 => 备注: 图片补位
-
-
-
-
- 是否启用 => 备注: IsEnabled
-
-
-
-
- 副标题 => 备注: SubTitle
-
-
-
-
- 人物表
-
-
-
-
- 人物名字 => 备注: 人物名字
-
-
-
-
- 人物简介 => 备注: 人物简介
-
-
-
-
- 开场白,剧情 => 备注: 开场白,剧情
-
-
-
-
- 模型Id => 备注: 模型Id
-
-
-
-
- 公开/私密 0公开 1私密 => 备注: 公开/私密 0公开 1私密
-
-
-
-
- 创建时间 => 备注: 创建时间
-
-
-
-
- 更新时间 => 备注: 更新时间
-
-
-
-
- 性别0男1女2其他 => 备注: 性别0男1女2其他
-
-
-
-
- 人物初始设定 => 备注: 人物初始设定
-
-
-
-
- 背景图片 => 备注: 背景图片
-
-
-
-
- 角色头像(是id) => 备注: 角色头像(是id)
-
-
-
-
- 对话名字 => 备注: 对话名字
-
-
-
-
- 对话性别 => 备注: 对话性别
-
-
-
-
- system最大的token数 => 备注: system最大的token数
-
-
-
-
- 角色标签表
-
-
-
-
- 标签名称 => 备注: 标签名称
-
-
-
-
- 创建时间 => 备注: 创建时间
-
-
-
-
- 更新时间 => 备注: 更新时间
-
-
-
-
- 标签值 => 备注: 标签值
-
-
-
-
- 关联角色和标签
-
-
-
-
- 人物Id => 备注: 人物Id
-
-
-
-
- 人物标签id => 备注: 人物标签id
-
-
-
-
- 创建时间 => 备注: 创建时间
-
-
-
-
- 更新时间 => 备注: 更新时间
-
-
-
-
- 角色性格表
-
-
-
-
- 性格名称 => 备注: 性格名称
-
-
-
-
- 性格值 => 备注: 性格值
-
-
-
-
- 创建时间 => 备注: 创建时间
-
-
-
-
- 修改时间 => 备注: 修改时间
-
-
-
-
- 角色和性格关联表
-
-
-
-
- 性格Id => 备注: 性格Id
-
-
-
-
- 角色Id => 备注: 角色Id
-
-
-
-
- 创建时间 => 备注: 创建时间
-
-
-
-
- 发现页类型分类
-
-
-
-
- 类型名称 => 备注: 类型名称
-
-
-
-
- 创建时间 => 备注: 创建时间
-
-
-
-
- 更新时间 => 备注: 更新时间
-
-
-
-
- 分类页不显示 => 备注: 分类页不显示
-
-
-
-
- 序号 => 备注: 序号
-
-
-
-
- 角色和角色类型关联表
-
-
-
-
- 列表Id => 备注: 列表Id
-
-
-
-
- 角色Id => 备注: 角色Id
-
-
-
-
- 修改时间 => 备注: 修改时间
-
-
-
-
- 创建时间 => 备注: 创建时间
-
-
-
-
- 类别表排序 => 备注: 类别表排序
-
-
-
-
- 聊天记录表
-
-
-
-
- 聊天内容 => 备注: 聊天内容
-
-
-
-
- 消息内容 => 备注: 消息内容
-
-
-
-
- 发送时间 => 备注: 发送时间
-
-
-
-
- 创建时间 => 备注: 创建时间
-
-
-
-
- 更新时间 => 备注: 更新时间
-
-
-
-
- 输入token => 备注: 输入token
-
-
-
-
- 输出token => 备注: 输出token
-
-
-
-
- 人物表Id => 备注: 人物表Id
-
-
-
-
- 角色 => 备注: user/assistant
-
-
-
-
- 会话Id => 备注: SessionId
-
-
-
-
- 发送消息 => 备注: 发送消息,天
-
-
-
-
- 发送消息时间戳 => 备注: 发送消息时间戳
-
-
-
-
- 消息状态 => 备注: 0正常,1重新生成,2 删除
-
-
-
-
- 消息类型 => 备注: 聊天返回的消息的类型
-
-
-
-
- ClaudeId => 备注: 聊天返回的Id
-
-
-
-
- 人物模型 => 备注: 人物模型,聊天返回的模型
-
-
-
-
- 总Tokens => 备注: 消耗的token
-
-
-
-
- 模型配置表
-
-
-
-
- 模型名称 => 备注: 模型名称
-
-
-
-
- 模型model => 备注: 模型model
-
-
-
-
- max_tokens => 备注: 模型运行最大的max_tokens
-
-
-
-
- key x-api-key => 备注: 模型key x-api-key
-
-
-
-
- 模型请求地址 => 备注: 模型请求地址
-
-
-
-
- 模型版本 => 备注: 模型版本 anthropic-version
-
-
-
-
- 创建时间 => 备注: 创建时间
-
-
-
-
- 修改时间 => 备注: 修改时间
-
-
-
-
- 上下文模板 => 备注: system上下文模板
-
-
-
-
- 请求模板 => 备注: 请求模板
-
-
-
-
- headers对象 => 备注: headers对象
-
-
-
-
- 返回数据模板 => 备注: 返回数据模板
-
-
-
-
- 是否默认 => 备注: 是否默认
-
-
-
-
- 其它的模板
-
-
-
-
- 订单完成表
-
-
-
-
- 订单编号 => 备注: 订单编号
-
-
-
-
- 用户Id => 备注: 用户Id
-
-
-
-
- 订单创建时间 => 备注: 订单创建时间
-
-
-
-
- 订单支付时间 => 备注: 订单支付时间
-
-
-
-
- 订单支付方式 => 备注: 订单支付方式
-
-
-
-
- 购买的产品Id => 备注: 购买的产品Id
-
-
-
-
- 价格 => 备注: 价格
-
-
-
-
- 订单状态 => 备注: 订单状态
-
-
-
-
- 创建时间 => 备注: 创建时间
-
-
-
-
- 修改时间 => 备注: 修改时间
-
-
-
-
- 订单创建天 => 备注: 订单创建天
-
-
-
-
- 订单详情表
-
-
-
-
- 产品id => 备注: 产品id
-
-
-
-
- 订单id => 备注: 订单id
-
-
-
-
- 发放奖励信息 => 备注: 发放奖励信息
-
-
-
-
- 产品id、主键 => 备注: 产品id、主键
-
-
-
-
- 支付信息 => 备注: 支付信息
-
-
-
-
- 发放奖励提示 => 备注: 发放奖励提示
-
-
-
-
- 支付地址 => 备注: 支付地址
-
-
-
-
- 商城表
-
-
-
-
- 道具Id => 备注: 道具Id
-
-
-
-
- 道具名称 => 备注: 道具名称
-
-
-
-
- 道具类型 => 备注: 道具类型,0商城,1商店
-
-
-
-
- 道具描述 => 备注: 道具描述
-
-
-
-
- 价格 => 备注: 价格
-
-
-
-
- 道具图片 => 备注: 道具图片配置 图片id
-
-
-
-
- 商品状态 => 备注: 商品是否下架 0否1是
-
-
-
-
- 首充 => 备注: 是否有首充
-
-
-
-
- 首充图片 => 备注: 首充图片
-
-
-
-
- 首充价格 => 备注: 首充价格
-
-
-
-
- 创建时间 => 备注: 创建时间
-
-
-
-
- 更新时间 => 备注: 更新时间
-
-
-
-
- 排序 => 备注: 排序
-
-
-
-
- 产品表奖励
-
-
-
-
- 奖励类型 => 备注: 奖励类型
-
-
-
-
- 送多少奖励 => 备注: 送多少奖励
-
-
-
-
- 所属商品 => 备注: 所属商品
-
-
-
-
- 首充送多少奖励 => 备注: 首充送多少奖励
-
-
-
-
- 所属商品 => 备注: 所属商品
-
-
-
-
- 用户表
-
-
-
-
- 用户昵称 => 备注: 用户昵称
-
-
-
-
- 用户姓名 => 备注: 用户姓名
-
-
-
-
- 手机号 => 备注: 绑定的手机号
-
-
-
-
- 邮箱 => 备注: 绑定的邮箱
-
-
-
-
- 是否活跃 => 备注: 是否活跃
-
-
-
-
- 创建时间 => 备注: 创建时间
-
-
-
-
- 最后一次登录方式,1手机号 => 备注: 最后一次登录方式,1手机号
-
-
-
-
- 登录时间 => 备注: 最后一次登录时间
-
-
-
-
- 修改时间 => 备注: 修改时间
-
-
-
-
- 首次注册方式 => 备注: 首次注册方式
-
-
-
-
- Ip地址 => 备注: Ip地址
-
-
-
-
- 0正常,1注销
-
-
-
-
- 是否是测试账号
-
-
-
-
- 用户货币表
-
-
-
-
- 货币类型 => 备注: 货币类型
-
-
-
-
- 货币名称 => 备注: 货币名称
-
-
-
-
- 货币余额 => 备注: 货币余额
-
-
-
-
- 修改时间 => 备注: 修改时间
-
-
-
-
- 创建时间 => 备注: 创建时间
-
-
-
-
- 用户Id => 备注: 用户Id
-
-
-
-
- 用户金额记录表
-
-
-
-
- 用户 => 备注: 用户
-
-
-
-
- 金额类型 => 备注: 金额类型
-
-
-
-
- 金额 => 备注: 金额
-
-
-
-
- 消耗类型 => 备注: 消耗类型,0消耗,1增加
-
-
-
-
- 备注 => 备注: 备注
-
-
-
-
- 创建时间 => 备注: 创建时间
-
-
-
-
- 修改时间 => 备注: 修改时间
-
-
-
-
- 意向订单表
-
-
-
-
- 用户Id => 备注: 用户Id
-
-
-
-
- 产品id => 备注: 产品id
-
-
-
-
- 支付方式 => 备注: 支付方式
-
-
-
-
- 价格 => 备注: 价格
-
-
-
-
- 数量 => 备注: 数量
-
-
-
-
- 状态 => 备注: 状态
-
-
-
-
- 备注 => 备注: 备注
-
-
-
-
- 订单创建时间 => 备注: 订单创建时间
-
-
-
-
- 创建时间 => 备注: 创建时间
-
-
-
-
- 修改时间 => 备注: 修改时间
-
-
-
-
- 订单Id => 备注: 订单Id
-
-
-
-
- 手机号登录表
-
-
-
-
- 用户Id => 备注: 用户Id
-
-
-
-
- 手机号 => 备注: 手机号
-
-
-
-
- 验证码 => 备注: 验证码
-
-
-
-
- 最后一次登录时间 => 备注: 最后一次登录时间
-
-
-
-
- 修改时间 => 备注: 修改时间
-
-
-
-
- 创建时间 => 备注: 创建时间
-
-
-
-
- 用户昵称 => 备注: 用户昵称
-
-
-
-
- 验证码表
-
-
-
-
- 手机号或者邮箱 => 备注: 手机号或者邮箱
-
-
-
-
- 验证码 => 备注: 验证码
-
-
-
-
- 创建天 => 备注: 创建天
-
-
-
-
- 过期时间 => 备注: 过期时间
-
-
-
-
- 创建时间 => 备注: 创建时间
-
-
-
-
- 备注 => 备注: 备注
-
-
-
-
- 0手机,1邮箱 => 备注: 0手机,1邮箱
-
-
-
-
- 图片表
-
-
-
-
- 图片Id
-
-
-
-
- 图片名称
-
-
-
-
- 图片地址
-
-
-
-
- 创建时间
-
-
-
-
- 修改时间
-
-
-
-
- oss存放路径
-
-
-
-
- 存储桶
-
-
-
-
- 地域
-
-
-
-
- 图片类型
-
-
-
-
- MiaoYuChat 数据源提供者
-
-
-
-
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Migrations/ChatAdminDbContextModelSnapshot.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Migrations/ChatAdminDbContextModelSnapshot.cs
deleted file mode 100644
index 9804890..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Migrations/ChatAdminDbContextModelSnapshot.cs
+++ /dev/null
@@ -1,60 +0,0 @@
-
-using MiaoYu.Repository.ChatAI.Admin.Entities;
-
-#nullable disable
-namespace MiaoYu.Repository.ChatAI.Admin.Migrations
-{
- [DbContext(typeof(ChatAdminDbContext))]
- public class ChatAdminDbContextModelSnapshot : ModelSnapshot
- {
- protected override void BuildModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "8.0.2")
- .HasAnnotation("Relational:MaxIdentifierLength", 128);
-
- SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
- modelBuilder.Entity(entity =>
- {
- entity.HasKey(e => e.Id).HasName("PK__T_Image___3214EC072BCFE4E5");
-
- entity.ToTable(tb => tb.HasComment("图片表"));
-
- entity.Property(e => e.Bucket)
- .HasMaxLength(100)
- .HasComment("存储桶");
- entity.Property(e => e.CreateAt)
- .HasComment("创建时间")
- .HasColumnType("datetime");
- entity.Property(e => e.ImageId).HasComment("图片Id");
- entity.Property(e => e.Name)
- .HasMaxLength(50)
- .HasComment("图片名称");
- entity.Property(e => e.OssPath)
- .HasMaxLength(200)
- .HasComment("oss存放路径");
- entity.Property(e => e.Region)
- .HasMaxLength(100)
- .HasComment("地域");
- entity.Property(e => e.TenantId).HasComment("租户");
- entity.Property(e => e.UpdateAt)
- .HasComment("修改时间")
- .HasColumnType("datetime");
- entity.Property(e => e.Url)
- .HasMaxLength(500)
- .HasComment("图片地址");
- //添加全局筛选器
- //if (this.TenantInfo != null)
- //{
- // entity.HasQueryFilter(it => it.TenantId == this.TenantInfo.TenantId);
- //}
- });
-
-
-
-
-#pragma warning restore 612, 618
- }
- }
-}
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Models/ChatAdminRepositoryOptions.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Models/ChatAdminRepositoryOptions.cs
deleted file mode 100644
index eef5233..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Models/ChatAdminRepositoryOptions.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Models;
-
-public class ChatAdminRepositoryOptions : RepositoryOptions
-{
-
-}
-
-
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Providers/MiaoYuChatDataSourceProvider.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Providers/MiaoYuChatDataSourceProvider.cs
deleted file mode 100644
index 66270b8..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Providers/MiaoYuChatDataSourceProvider.cs
+++ /dev/null
@@ -1,78 +0,0 @@
-namespace MiaoYu.Repository.ChatAI.Admin.Providers;
-
-///
-/// MiaoYuChat 数据源提供者
-///
-[Component]
-public class MiaoYuChatDataSourceProvider : IDataSourceProvider, IScopedDependency
-{
- private readonly IRepository _repository;
-
- public MiaoYuChatDataSourceProvider(IRepository repository)
- {
- _repository = repository;
- }
-
- public DataSourceConfig Config => new DataSourceConfig
- {
- DatabaseKey = DataSourceConstants.MiaoYuChat,
- DisplayName = "妙语聊天",
- EntityNamespace = typeof(ChatAdminRepositoryStartup).Namespace!,
- ServiceNamespace = "MiaoYu.Api.Admin.ApplicationServices.Apps",
- ControllerNamespace = "MiaoYu.Api.Admin.Controllers.Apps",
- ClientServiceNamespace = "",
- ModelPathTemplate = "{RootPath}\\{Namespace}\\Entities\\Apps\\{EntityNamePlural}",
- ServicePathTemplate = "{AppPath}\\ApplicationServices\\Apps\\ChatAI\\{EntityNamePlural}",
- ControllerPathTemplate = "{AppPath}\\Controllers\\Apps\\ChatAI\\{EntityNamePlural}",
- ClientIndexPathTemplate = "{RootPath}\\admin-client\\src\\views\\apps\\chatai\\{TableNameLower}s",
- ClientInfoPathTemplate = "{RootPath}\\admin-client\\src\\views\\apps\\chatai\\{TableNameLower}s",
- ClientServicePathTemplate = "{RootPath}\\admin-client\\src\\services\\apps\\chatai\\{TableNameLower}s",
- MenuPathTemplate = "views/apps/chatai/{TableNameLower}s/Index.vue",
- RouterPathTemplate = "/apps/chatai/{TableNameLower}s",
- TemplatePath = "/wwwroot/code_generation/template/",
- NamingStrategy = EntityNamingStrategy.ToPascalCase,
- Order = 2,
- EnableEntityPrefix = false,
- EntityPrefix = "",
- UsesPluralPath = true
- };
-
- public List GetTables()
- {
- var freeSqlTables = _repository.UnitOfWork.FreeSqlOrm.DbFirst.GetTablesByDatabase();
- return ConvertToDbTableInfoList(freeSqlTables);
- }
-
- public object GetDbContext() => _repository.GetContext()!;
-
- private List ConvertToDbTableInfoList(List freeSqlTables)
- {
- var result = new List();
- foreach (var table in freeSqlTables)
- {
- var dbTableInfo = new CoreDbTableInfo
- {
- DataBase = Config.DatabaseKey,
- Schema = table.Schema,
- Name = table.Name,
- Type = table.Type.ToString(),
- Comment = table.Comment,
- Columns = table.Columns?.Select(c => new CoreDbColumnInfo
- {
- Name = c.Name,
- Comment = c.Comment,
- IsPrimary = c.IsPrimary,
- IsIdentity = c.IsIdentity,
- IsNullable = c.IsNullable,
- Position = c.Position,
- DbType = c.DbTypeTextFull,
- CsType = c.CsType?.Name,
- MaxLength = c.MaxLength
- }).ToList()
- };
- result.Add(dbTableInfo);
- }
- return result;
- }
-}
-
diff --git a/admin-server/MiaoYu.Repository.ChatAI.Admin/Usings.cs b/admin-server/MiaoYu.Repository.ChatAI.Admin/Usings.cs
deleted file mode 100644
index cb82a99..0000000
--- a/admin-server/MiaoYu.Repository.ChatAI.Admin/Usings.cs
+++ /dev/null
@@ -1,33 +0,0 @@
-global using MiaoYu.Core.EntityFramework;
-global using MiaoYu.Core.EntityFramework.Interceptors;
-global using MiaoYu.Core.Quartz.Models;
-global using HZY.Framework.Core.AspNetCore;
-global using HZY.Framework.Core.Quartz;
-global using HZY.Framework.Repository.EntityFramework;
-global using HZY.Framework.Repository.EntityFramework.Attributes;
-global using HZY.Framework.Repository.EntityFramework.Models;
-global using HZY.Framework.Repository.EntityFramework.Models.Enums;
-global using HZY.Framework.Repository.EntityFramework.Models.Standard;
-global using HZY.Framework.Repository.EntityFramework.Repositories;
-global using HZY.Framework.Repository.EntityFramework.Repositories.Impl;
-global using Microsoft.AspNetCore.Builder;
-global using Microsoft.AspNetCore.Hosting;
-global using Microsoft.EntityFrameworkCore;
-global using Microsoft.EntityFrameworkCore.Infrastructure;
-global using Microsoft.Extensions.Caching.Memory;
-global using Microsoft.Extensions.Configuration;
-global using Microsoft.Extensions.DependencyInjection;
-global using Microsoft.Extensions.Hosting;
-global using Microsoft.Extensions.Logging;
-global using System.ComponentModel.DataAnnotations;
-global using System.ComponentModel.DataAnnotations.Schema;
-global using System.Reflection;
-global using MiaoYu.Core.Logs;
-global using System.Text;
-global using MiaoYu.Core.EntityFramework.Models;
-global using HZY.Framework.DependencyInjection;
-global using HZY.Framework.DependencyInjection.Attributes;
-global using MiaoYu.Core.CodeGenerator.Abstractions;
-global using CoreDbTableInfo = MiaoYu.Core.CodeGenerator.Models.DbTableInfo;
-global using CoreDbColumnInfo = MiaoYu.Core.CodeGenerator.Models.DbColumnInfo;
-global using MiaoYu.Repository.ChatAI.Admin.Entities.Apps;
\ No newline at end of file