😎格式化代码
This commit is contained in:
parent
7d77b148c8
commit
625af173ea
@ -60,15 +60,15 @@
|
|||||||
<PackageReference Include="TencentCloudSDK.Sms" Version="3.0.1273" />
|
<PackageReference Include="TencentCloudSDK.Sms" Version="3.0.1273" />
|
||||||
<PackageReference Include="UAParser" Version="3.1.47" />
|
<PackageReference Include="UAParser" Version="3.1.47" />
|
||||||
<PackageReference Include="Yitter.IdGenerator" Version="1.0.14" />
|
<PackageReference Include="Yitter.IdGenerator" Version="1.0.14" />
|
||||||
<PackageReference Include="microsoft.semantickernel" Version="1.63.0" />
|
<PackageReference Include="microsoft.semantickernel" Version="1.64.0" />
|
||||||
<PackageReference Include="Microsoft.SemanticKernel.Agents.Core" Version="1.63.0" />
|
<PackageReference Include="Microsoft.SemanticKernel.Agents.Core" Version="1.64.0" />
|
||||||
<PackageReference Include="Microsoft.SemanticKernel.Connectors.Amazon" Version="1.56.0-alpha" />
|
<PackageReference Include="Microsoft.SemanticKernel.Connectors.Amazon" Version="1.56.0-alpha" />
|
||||||
<PackageReference Include="Microsoft.SemanticKernel.Connectors.Google" Version="1.54.0-alpha" />
|
<PackageReference Include="Microsoft.SemanticKernel.Connectors.Google" Version="1.54.0-alpha" />
|
||||||
<PackageReference Include="Microsoft.SemanticKernel.Connectors.HuggingFace" Version="1.56.0-preview" />
|
<PackageReference Include="Microsoft.SemanticKernel.Connectors.HuggingFace" Version="1.56.0-preview" />
|
||||||
<PackageReference Include="Microsoft.SemanticKernel.Connectors.Ollama" Version="1.54.0-alpha" />
|
<PackageReference Include="Microsoft.SemanticKernel.Connectors.Ollama" Version="1.54.0-alpha" />
|
||||||
<PackageReference Include="Microsoft.SemanticKernel.Connectors.Qdrant" Version="1.54.0-preview" />
|
<PackageReference Include="Microsoft.SemanticKernel.Connectors.Qdrant" Version="1.54.0-preview" />
|
||||||
<PackageReference Include="Microsoft.SemanticKernel.PromptTemplates.Handlebars" Version="1.63.0" />
|
<PackageReference Include="Microsoft.SemanticKernel.PromptTemplates.Handlebars" Version="1.64.0" />
|
||||||
<PackageReference Include="Microsoft.SemanticKernel.Yaml" Version="1.63.0" />
|
<PackageReference Include="Microsoft.SemanticKernel.Yaml" Version="1.64.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
|
<ItemGroup Condition=" '$(TargetFramework)' == 'net8.0' ">
|
||||||
|
|||||||
@ -9,7 +9,8 @@ namespace Admin.NET.Core;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Http远程服务扩展
|
/// Http远程服务扩展
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static class HttpRemotesExtension {
|
public static class HttpRemotesExtension
|
||||||
|
{
|
||||||
private static readonly HttpRequestOptionsKey<string> HttpNameKey = new("__HTTP_CLIENT_NAME__");
|
private static readonly HttpRequestOptionsKey<string> HttpNameKey = new("__HTTP_CLIENT_NAME__");
|
||||||
private static readonly HttpRequestOptionsKey<HttpRemoteApiAttribute> AttrKey = new(nameof(HttpRemoteApiAttribute));
|
private static readonly HttpRequestOptionsKey<HttpRemoteApiAttribute> AttrKey = new(nameof(HttpRemoteApiAttribute));
|
||||||
private static readonly HttpRequestOptionsKey<string> ReqPlaintextKey = new(nameof(SysLogHttp.RequestBodyPlaintext));
|
private static readonly HttpRequestOptionsKey<string> ReqPlaintextKey = new(nameof(SysLogHttp.RequestBodyPlaintext));
|
||||||
@ -32,7 +33,8 @@ public static class HttpRemotesExtension {
|
|||||||
client.Timeout = TimeSpan.FromSeconds(opt.Timeout);
|
client.Timeout = TimeSpan.FromSeconds(opt.Timeout);
|
||||||
foreach (var kv in opt.Headers) client.DefaultRequestHeaders.Add(kv.Key, kv.Value);
|
foreach (var kv in opt.Headers) client.DefaultRequestHeaders.Add(kv.Key, kv.Value);
|
||||||
})
|
})
|
||||||
.ConfigurePrimaryHttpMessageHandler(() => new HttpClientHandler {
|
.ConfigurePrimaryHttpMessageHandler(() => new HttpClientHandler
|
||||||
|
{
|
||||||
UseCookies = opt.UseCookies
|
UseCookies = opt.UseCookies
|
||||||
})
|
})
|
||||||
.AddHttpMessageHandler<HttpLoggingHandler>();
|
.AddHttpMessageHandler<HttpLoggingHandler>();
|
||||||
|
|||||||
@ -8,7 +8,6 @@ using System.Net.Http.Headers;
|
|||||||
|
|
||||||
namespace Admin.NET.Core;
|
namespace Admin.NET.Core;
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// http日志处理
|
/// http日志处理
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -4,12 +4,11 @@
|
|||||||
//
|
//
|
||||||
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!
|
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动!任何基于本项目二次开发而产生的一切法律纠纷和责任,我们不承担任何责任!
|
||||||
|
|
||||||
|
|
||||||
using System.Reflection;
|
|
||||||
using System.Text;
|
|
||||||
using Admin.NET.Plugin.WorkWeixin.Const;
|
using Admin.NET.Plugin.WorkWeixin.Const;
|
||||||
using Furion.FriendlyException;
|
using Furion.FriendlyException;
|
||||||
using Furion.Logging;
|
using Furion.Logging;
|
||||||
|
using System.Reflection;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
namespace Admin.NET.Plugin.WorkWeixin;
|
namespace Admin.NET.Plugin.WorkWeixin;
|
||||||
|
|
||||||
|
|||||||
@ -91,6 +91,14 @@ export interface PageLogHttpOutput {
|
|||||||
*/
|
*/
|
||||||
requestBody?: string | null;
|
requestBody?: string | null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 请求体(明文)
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof PageLogHttpOutput
|
||||||
|
*/
|
||||||
|
requestBodyPlaintext?: string | null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 响应状态码
|
* 响应状态码
|
||||||
*
|
*
|
||||||
@ -115,6 +123,14 @@ export interface PageLogHttpOutput {
|
|||||||
*/
|
*/
|
||||||
responseBody?: string | null;
|
responseBody?: string | null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 响应体(明文)
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof PageLogHttpOutput
|
||||||
|
*/
|
||||||
|
responseBodyPlaintext?: string | null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 异常信息
|
* 异常信息
|
||||||
*
|
*
|
||||||
|
|||||||
@ -100,6 +100,14 @@ export interface SysLogHttp {
|
|||||||
*/
|
*/
|
||||||
requestBody?: string | null;
|
requestBody?: string | null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 请求体明文
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof SysLogHttp
|
||||||
|
*/
|
||||||
|
requestBodyPlaintext?: string | null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {HttpStatusCode}
|
* @type {HttpStatusCode}
|
||||||
* @memberof SysLogHttp
|
* @memberof SysLogHttp
|
||||||
@ -122,6 +130,14 @@ export interface SysLogHttp {
|
|||||||
*/
|
*/
|
||||||
responseBody?: string | null;
|
responseBody?: string | null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 响应体明文
|
||||||
|
*
|
||||||
|
* @type {string}
|
||||||
|
* @memberof SysLogHttp
|
||||||
|
*/
|
||||||
|
responseBodyPlaintext?: string | null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 异常信息
|
* 异常信息
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user