mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-18 09:44:43 +08:00
chore(work): 调整目录结构
This commit is contained in:
@@ -2,7 +2,7 @@ using System;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance
|
||||
{
|
||||
public interface IWechatWorkFinanceClient : IDisposable
|
||||
{
|
@@ -1,7 +1,7 @@
|
||||
using System;
|
||||
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
|
||||
{
|
@@ -2,7 +2,7 @@ using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Security;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.InteropServices
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.InteropServices
|
||||
{
|
||||
internal static partial class FinanceDllWindowsPInvoker
|
||||
{
|
@@ -2,7 +2,7 @@ using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.InteropServices
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.InteropServices
|
||||
{
|
||||
internal static class MarshalerHelper
|
||||
{
|
@@ -1,6 +1,6 @@
|
||||
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
|
||||
{
|
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示会话内容存档之解密会话记录数据接口的请求。</para>
|
@@ -1,6 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示会话内容存档之解密会话记录数据接口的响应。</para>
|
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示会话内容存档之获取会话记录数据接口的请求。</para>
|
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示会话内容存档之获取会话记录数据接口的响应。</para>
|
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示会话内容存档之获取媒体文件分片接口的请求。</para>
|
@@ -1,6 +1,6 @@
|
||||
using System.Linq;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示会话内容存档之获取媒体文件分片接口的响应。</para>
|
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示会话内容存档之获取媒体文件接口的请求。</para>
|
@@ -1,6 +1,6 @@
|
||||
using System.Linq;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Models
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示会话内容存档之获取媒体文件接口的响应。</para>
|
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Settings
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Settings
|
||||
{
|
||||
public class Credentials
|
||||
{
|
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Settings
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Settings
|
||||
{
|
||||
/// <summary>
|
||||
/// 表示一个企业微信会话内容存档的消息加解密密钥实体。
|
@@ -2,7 +2,7 @@ using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Settings
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Settings
|
||||
{
|
||||
/// <summary>
|
||||
/// 企业微信会话内容存档的消息加解密密钥管理器接口。
|
@@ -5,9 +5,9 @@ using System.Text;
|
||||
using System.Threading;
|
||||
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>
|
||||
/// 一个企业微信会话内容存档 API HTTP 客户端。
|
@@ -1,4 +1,4 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance
|
||||
{
|
||||
/// <summary>
|
||||
/// 一个用于构造 <see cref="WechatWorkFinanceClient"/> 时使用的配置项。
|
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance
|
||||
{
|
||||
/// <summary>
|
||||
/// 表示企业微信会话内容存档 API 请求的基类。
|
@@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance
|
||||
{
|
||||
/// <summary>
|
||||
/// 表示企业微信会话内容存档 API 响应的基类。
|
@@ -36,7 +36,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ContentWithTargetPath Include="SDK\Finance\_Libs\*.*">
|
||||
<ContentWithTargetPath Include="ExtendedSDK\Finance\_Libs\*.*">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
<TargetPath>%(Filename)%(Extension)</TargetPath>
|
||||
</ContentWithTargetPath>
|
||||
|
@@ -4,10 +4,11 @@ using Xunit;
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests
|
||||
{
|
||||
using SKIT.FlurlHttpClient;
|
||||
using SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance;
|
||||
using SKIT.FlurlHttpClient.Wechat.Work.SDK.Finance.Models;
|
||||
using SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance;
|
||||
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")]
|
||||
public async Task TestFinanceSdk()
|
||||
@@ -17,7 +18,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests
|
||||
CorpId = TestConfigs.WechatCorpId,
|
||||
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);
|
||||
|
||||
var reqGetChatRecords = new GetChatRecordsRequest();
|
||||
@@ -386,8 +387,8 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.UnitTests
|
||||
|
||||
var model = serializer.Deserialize<DecryptChatRecordResponse>(json);
|
||||
Assert.Equal("location", model.MessageType);
|
||||
Assert.Equal(116.586285899, model.MessageContentAsLocation!.Longitude);
|
||||
Assert.Equal(39.911125799, model.MessageContentAsLocation!.Latitude);
|
||||
Assert.Equal(116.586285899M, model.MessageContentAsLocation!.Longitude);
|
||||
Assert.Equal(39.911125799M, model.MessageContentAsLocation!.Latitude);
|
||||
Assert.Equal("北京市xxx区xxx路xxx大厦x座", model.MessageContentAsLocation.Address);
|
||||
Assert.Equal("xxx管理中心", model.MessageContentAsLocation.Title);
|
||||
Assert.Equal(15, model.MessageContentAsLocation.Zoom);
|
Reference in New Issue
Block a user