chore(work): 调整目录结构

This commit is contained in:
Fu Diwei
2024-01-31 13:36:08 +08:00
committed by RHQYZ
parent bf39f8dd83
commit 5eed125d49
28 changed files with 29 additions and 29 deletions

View File

@@ -2,7 +2,7 @@ using System;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance
{ {
public interface IWechatWorkFinanceClient : IDisposable public interface IWechatWorkFinanceClient : IDisposable
{ {

View File

@@ -1,7 +1,7 @@
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.InteropServices namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.InteropServices
{ {
internal static partial class FinanceDllLinuxPInvoker internal static partial class FinanceDllLinuxPInvoker
{ {

View File

@@ -2,7 +2,7 @@ using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Security; using System.Security;
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.InteropServices namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.InteropServices
{ {
internal static partial class FinanceDllWindowsPInvoker internal static partial class FinanceDllWindowsPInvoker
{ {

View File

@@ -2,7 +2,7 @@ using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Text; using System.Text;
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.InteropServices namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.InteropServices
{ {
internal static class MarshalerHelper internal static class MarshalerHelper
{ {

View File

@@ -1,6 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Models.Abstractions namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models.Abstractions
{ {
public abstract class ChatMessageBase public abstract class ChatMessageBase
{ {

View File

@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Models namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models
{ {
/// <summary> /// <summary>
/// <para>表示会话内容存档之解密会话记录数据接口的请求。</para> /// <para>表示会话内容存档之解密会话记录数据接口的请求。</para>

View File

@@ -1,6 +1,6 @@
using System.Collections.Generic; using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Models namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models
{ {
/// <summary> /// <summary>
/// <para>表示会话内容存档之解密会话记录数据接口的响应。</para> /// <para>表示会话内容存档之解密会话记录数据接口的响应。</para>

View File

@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Models namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models
{ {
/// <summary> /// <summary>
/// <para>表示会话内容存档之获取会话记录数据接口的请求。</para> /// <para>表示会话内容存档之获取会话记录数据接口的请求。</para>

View File

@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Models namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models
{ {
/// <summary> /// <summary>
/// <para>表示会话内容存档之获取会话记录数据接口的响应。</para> /// <para>表示会话内容存档之获取会话记录数据接口的响应。</para>

View File

@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Models namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models
{ {
/// <summary> /// <summary>
/// <para>表示会话内容存档之获取媒体文件分片接口的请求。</para> /// <para>表示会话内容存档之获取媒体文件分片接口的请求。</para>

View File

@@ -1,6 +1,6 @@
using System.Linq; using System.Linq;
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Models namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models
{ {
/// <summary> /// <summary>
/// <para>表示会话内容存档之获取媒体文件分片接口的响应。</para> /// <para>表示会话内容存档之获取媒体文件分片接口的响应。</para>

View File

@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Models namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models
{ {
/// <summary> /// <summary>
/// <para>表示会话内容存档之获取媒体文件接口的请求。</para> /// <para>表示会话内容存档之获取媒体文件接口的请求。</para>

View File

@@ -1,6 +1,6 @@
using System.Linq; using System.Linq;
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Models namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models
{ {
/// <summary> /// <summary>
/// <para>表示会话内容存档之获取媒体文件接口的响应。</para> /// <para>表示会话内容存档之获取媒体文件接口的响应。</para>

View File

@@ -1,6 +1,6 @@
using System; using System;
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Settings namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Settings
{ {
public class Credentials public class Credentials
{ {

View File

@@ -1,6 +1,6 @@
using System; using System;
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Settings namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Settings
{ {
/// <summary> /// <summary>
/// 表示一个企业微信会话内容存档的消息加解密密钥实体。 /// 表示一个企业微信会话内容存档的消息加解密密钥实体。

View File

@@ -2,7 +2,7 @@ using System.Collections.Concurrent;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Settings namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Settings
{ {
/// <summary> /// <summary>
/// 企业微信会话内容存档的消息加解密密钥管理器接口。 /// 企业微信会话内容存档的消息加解密密钥管理器接口。

View File

@@ -5,9 +5,9 @@ using System.Text;
using System.Threading; using System.Threading;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance
{ {
using SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.InteropServices; using SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.InteropServices;
/// <summary> /// <summary>
/// 一个企业微信会话内容存档 API HTTP 客户端。 /// 一个企业微信会话内容存档 API HTTP 客户端。

View File

@@ -1,4 +1,4 @@
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance
{ {
/// <summary> /// <summary>
/// 一个用于构造 <see cref="WechatWorkFinanceClient"/> 时使用的配置项。 /// 一个用于构造 <see cref="WechatWorkFinanceClient"/> 时使用的配置项。

View File

@@ -1,6 +1,6 @@
using System; using System;
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance
{ {
/// <summary> /// <summary>
/// 表示企业微信会话内容存档 API 请求的基类。 /// 表示企业微信会话内容存档 API 请求的基类。

View File

@@ -1,7 +1,6 @@
using System; using System;
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance
{ {
/// <summary> /// <summary>
/// 表示企业微信会话内容存档 API 响应的基类。 /// 表示企业微信会话内容存档 API 响应的基类。

View File

@@ -36,7 +36,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ContentWithTargetPath Include="SDK\Finance\_Libs\*.*"> <ContentWithTargetPath Include="ExtendedSDK\Finance\_Libs\*.*">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>%(Filename)%(Extension)</TargetPath> <TargetPath>%(Filename)%(Extension)</TargetPath>
</ContentWithTargetPath> </ContentWithTargetPath>

View File

@@ -4,10 +4,11 @@ using Xunit;
namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests
{ {
using SKIT.FlurlHttpClient; using SKIT.FlurlHttpClient;
using SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance; using SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance;
using SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Models; using SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models;
using SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Settings;
public class TestCase_FinanceSdkTests public class TestCase_ExtendedSDKFinanceTests
{ {
[Fact(DisplayName = "测试用例:聊天记录 - 会话内容存档 SDK")] [Fact(DisplayName = "测试用例:聊天记录 - 会话内容存档 SDK")]
public async Task TestFinanceSdk() public async Task TestFinanceSdk()
@@ -17,7 +18,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests
CorpId = TestConfigs.WechatCorpId, CorpId = TestConfigs.WechatCorpId,
SecretKey = TestConfigs.WechatFinanceSecretKey SecretKey = TestConfigs.WechatFinanceSecretKey
}; };
options.EncryptionKeyManager.AddEntry(new SDK.Finance.Settings.EncryptionKeyEntry(1, TestConfigs.WechatFinanceEncryptionPrivateKey)); options.EncryptionKeyManager.AddEntry(new EncryptionKeyEntry(1, TestConfigs.WechatFinanceEncryptionPrivateKey));
using var client = new WechatWorkFinanceClient(options); using var client = new WechatWorkFinanceClient(options);
var reqGetChatRecords = new GetChatRecordsRequest(); var reqGetChatRecords = new GetChatRecordsRequest();
@@ -386,8 +387,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests
var model = serializer.Deserialize<DecryptChatRecordResponse>(json); var model = serializer.Deserialize<DecryptChatRecordResponse>(json);
Assert.Equal("location", model.MessageType); Assert.Equal("location", model.MessageType);
Assert.Equal(116.586285899, model.MessageContentAsLocation!.Longitude); Assert.Equal(116.586285899M, model.MessageContentAsLocation!.Longitude);
Assert.Equal(39.911125799, model.MessageContentAsLocation!.Latitude); Assert.Equal(39.911125799M, model.MessageContentAsLocation!.Latitude);
Assert.Equal("北京市xxx区xxx路xxx大厦x座", model.MessageContentAsLocation.Address); Assert.Equal("北京市xxx区xxx路xxx大厦x座", model.MessageContentAsLocation.Address);
Assert.Equal("xxx管理中心", model.MessageContentAsLocation.Title); Assert.Equal("xxx管理中心", model.MessageContentAsLocation.Title);
Assert.Equal(15, model.MessageContentAsLocation.Zoom); Assert.Equal(15, model.MessageContentAsLocation.Zoom);