整理代码
This commit is contained in:
parent
76a5adabcc
commit
faa4960821
|
|
@ -1,40 +1,10 @@
|
||||||
using HuanMeng.DotNetCore.Base;
|
namespace HuanMeng.MiaoYu.Code.Chat;
|
||||||
using HuanMeng.MiaoYu.Code.Cache;
|
|
||||||
using HuanMeng.MiaoYu.Code.Chat.Claude;
|
|
||||||
using HuanMeng.MiaoYu.Code.Chat.Claude.Model;
|
|
||||||
using HuanMeng.MiaoYu.Code.Chat.Contract;
|
|
||||||
using HuanMeng.MiaoYu.Code.Chat.Minimax;
|
|
||||||
using HuanMeng.MiaoYu.Code.Users;
|
|
||||||
using HuanMeng.MiaoYu.Model.DbSqlServer.Db_MiaoYu;
|
|
||||||
using HuanMeng.MiaoYu.Model.Dto.Character;
|
|
||||||
using HuanMeng.MiaoYu.Model.Dto.Chat;
|
|
||||||
using HuanMeng.MiaoYu.Model.EnumModel.Chat;
|
|
||||||
using HuanMeng.MiaoYu.Model.EnumModel.User;
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
using Microsoft.AspNetCore.Mvc;
|
/// 聊天类
|
||||||
using Microsoft.EntityFrameworkCore;
|
/// </summary>
|
||||||
using Microsoft.EntityFrameworkCore.Storage;
|
public class ChatBLL : MiaoYuBase
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
|
||||||
using Microsoft.Extensions.Logging;
|
|
||||||
|
|
||||||
using Newtonsoft.Json.Linq;
|
|
||||||
|
|
||||||
using System;
|
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Text.RegularExpressions;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace HuanMeng.MiaoYu.Code.Chat
|
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// 聊天类
|
|
||||||
/// </summary>
|
|
||||||
public class ChatBLL : MiaoYuBase
|
|
||||||
{
|
|
||||||
public ChatBLL(IServiceProvider serviceProvider) : base(serviceProvider)
|
public ChatBLL(IServiceProvider serviceProvider) : base(serviceProvider)
|
||||||
{
|
{
|
||||||
//logger.i
|
//logger.i
|
||||||
|
|
@ -583,5 +553,5 @@ namespace HuanMeng.MiaoYu.Code.Chat
|
||||||
chatHistoryInfos = chatHistoryInfos.OrderByDescending(it => it.LastContactTime).ToList();
|
chatHistoryInfos = chatHistoryInfos.OrderByDescending(it => it.LastContactTime).ToList();
|
||||||
return new BaseResponse<List<ChatHistoryInfo>>(ResonseCode.Success, "", chatHistoryInfos) { };
|
return new BaseResponse<List<ChatHistoryInfo>>(ResonseCode.Success, "", chatHistoryInfos) { };
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,37 @@
|
||||||
global using HuanMeng.MiaoYu.Code.Base;
|
global using HuanMeng.DotNetCore.Base;
|
||||||
global using HuanMeng.MiaoYu.Code.DataAccess;
|
|
||||||
global using HuanMeng.MiaoYu.Model.DbSqlServer.Db_MiaoYu;
|
|
||||||
global using HuanMeng.MiaoYu.Code.Other;
|
|
||||||
global using System.Text.Json;
|
|
||||||
global using System.Text.Json.Serialization;
|
|
||||||
global using HuanMeng.MiaoYu.Model.EnumModel;
|
|
||||||
global using HuanMeng.MiaoYu.Model.EnumModel.User;
|
|
||||||
global using System.Collections.Concurrent;
|
|
||||||
global using HuanMeng.MiaoYu.Code.SysDictionary.Contract;
|
|
||||||
global using HuanMeng.MiaoYu.Code.SysDictionary;
|
|
||||||
global using HuanMeng.MiaoYu.Code.SysDictionary.DictionaryNetwork;
|
|
||||||
global using HuanMeng.DotNetCore.TextCensor;
|
global using HuanMeng.DotNetCore.TextCensor;
|
||||||
global using HuanMeng.DotNetCore.Utility;
|
global using HuanMeng.DotNetCore.Utility;
|
||||||
|
global using HuanMeng.MiaoYu.Code.Base;
|
||||||
|
global using HuanMeng.MiaoYu.Code.Cache;
|
||||||
|
global using HuanMeng.MiaoYu.Code.Chat.Claude;
|
||||||
|
global using HuanMeng.MiaoYu.Code.Chat.Claude.Model;
|
||||||
|
global using HuanMeng.MiaoYu.Code.Chat.Contract;
|
||||||
|
global using HuanMeng.MiaoYu.Code.Chat.Minimax;
|
||||||
|
global using HuanMeng.MiaoYu.Code.DataAccess;
|
||||||
|
global using HuanMeng.MiaoYu.Code.Other;
|
||||||
|
global using HuanMeng.MiaoYu.Code.SysDictionary.Contract;
|
||||||
|
global using HuanMeng.MiaoYu.Code.SysDictionary.DictionaryNetwork;
|
||||||
|
global using HuanMeng.MiaoYu.Code.Users;
|
||||||
|
global using HuanMeng.MiaoYu.Model.DbSqlServer.Db_MiaoYu;
|
||||||
|
global using HuanMeng.MiaoYu.Model.Dto.Character;
|
||||||
|
global using HuanMeng.MiaoYu.Model.Dto.Chat;
|
||||||
|
global using HuanMeng.MiaoYu.Model.EnumModel;
|
||||||
|
global using HuanMeng.MiaoYu.Model.EnumModel.Chat;
|
||||||
|
global using HuanMeng.MiaoYu.Model.EnumModel.User;
|
||||||
|
|
||||||
|
global using Microsoft.EntityFrameworkCore;
|
||||||
|
global using Microsoft.EntityFrameworkCore.Storage;
|
||||||
|
global using Microsoft.Extensions.DependencyInjection;
|
||||||
|
global using Microsoft.Extensions.Logging;
|
||||||
|
|
||||||
|
global using Newtonsoft.Json.Linq;
|
||||||
|
|
||||||
|
global using System;
|
||||||
|
global using System.Collections.Concurrent;
|
||||||
|
global using System.Collections.Generic;
|
||||||
|
global using System.Linq;
|
||||||
|
global using System.Text;
|
||||||
|
global using System.Text.Json;
|
||||||
|
global using System.Text.Json.Serialization;
|
||||||
|
global using System.Text.RegularExpressions;
|
||||||
|
global using System.Threading.Tasks;
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
"AppID": "", //网站的唯一标识
|
|
||||||
"MchID": "", //商户ID
|
|
||||||
"Key": ""
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user