fix(work): 修复企业会话存档相关接口模型中 ID 数值溢出的问题

This commit is contained in:
Fu Diwei
2024-04-10 08:19:52 +08:00
parent b82a86aef8
commit 4a689c4d2e
5 changed files with 14 additions and 10 deletions

View File

@@ -14,7 +14,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.InteropServices
public static extern int Init([In] IntPtr sdk, [In] string corpId, [In] string secret); public static extern int Init([In] IntPtr sdk, [In] string corpId, [In] string secret);
[DllImport(DLL_NAME, SetLastError = true, CallingConvention = CallingConvention.Cdecl)] [DllImport(DLL_NAME, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetChatData([In] IntPtr sdk, [In] long seq, [In] long limit, [In] string proxy, [In] string passwd, [In] long timeout, [Out] IntPtr chatData); public static extern int GetChatData([In] IntPtr sdk, [In] ulong seq, [In] long limit, [In] string proxy, [In] string passwd, [In] long timeout, [Out] IntPtr chatData);
[DllImport(DLL_NAME, SetLastError = true, CallingConvention = CallingConvention.Cdecl)] [DllImport(DLL_NAME, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
public static extern int GetMediaData([In] IntPtr sdk, [In] string indexBuf, [In] string fileId, [In] string proxy, [In] string passwd, [In] long timeout, [Out] IntPtr mediaData); public static extern int GetMediaData([In] IntPtr sdk, [In] string indexBuf, [In] string fileId, [In] string proxy, [In] string passwd, [In] long timeout, [Out] IntPtr mediaData);

View File

@@ -18,7 +18,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.InteropServices
[DllImport(DLL_NAME, SetLastError = true, CallingConvention = CallingConvention.Cdecl)] [DllImport(DLL_NAME, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]
public static extern int GetChatData([In] IntPtr sdk, [In] long seq, [In] long limit, [In] string proxy, [In] string passwd, [In] long timeout, [Out] IntPtr chatData); public static extern int GetChatData([In] IntPtr sdk, [In] ulong seq, [In] long limit, [In] string proxy, [In] string passwd, [In] long timeout, [Out] IntPtr chatData);
[DllImport(DLL_NAME, SetLastError = true, CallingConvention = CallingConvention.Cdecl)] [DllImport(DLL_NAME, SetLastError = true, CallingConvention = CallingConvention.Cdecl)]
[SuppressUnmanagedCodeSecurity] [SuppressUnmanagedCodeSecurity]

View File

@@ -444,8 +444,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models.Abstractio
/// 获取或设置表项 ID。 /// 获取或设置表项 ID。
/// </summary> /// </summary>
[Newtonsoft.Json.JsonProperty("id")] [Newtonsoft.Json.JsonProperty("id")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalStringReadOnlyConverter))]
[System.Text.Json.Serialization.JsonPropertyName("id")] [System.Text.Json.Serialization.JsonPropertyName("id")]
public long ID { get; set; } [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public string ID { get; set; } = default!;
/// <summary> /// <summary>
/// 获取或设置表项类型。 /// 获取或设置表项类型。
@@ -543,9 +545,10 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models.Abstractio
/// 获取或设置会议 ID。 /// 获取或设置会议 ID。
/// </summary> /// </summary>
[Newtonsoft.Json.JsonProperty("meetingid")] [Newtonsoft.Json.JsonProperty("meetingid")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalStringReadOnlyConverter))]
[System.Text.Json.Serialization.JsonPropertyName("meetingid")] [System.Text.Json.Serialization.JsonPropertyName("meetingid")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public long MeetingId { get; set; } public string? MeetingId { get; set; }
/// <summary> /// <summary>
/// 获取或设置会议主题。 /// 获取或设置会议主题。
@@ -666,12 +669,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models.Abstractio
public string? WedriveFileName { get; set; } public string? WedriveFileName { get; set; }
/// <summary> /// <summary>
/// 获取或设置会议类型 /// 获取或设置会议 ID
/// </summary> /// </summary>
[Newtonsoft.Json.JsonProperty("meeting_id")] [Newtonsoft.Json.JsonProperty("meeting_id")]
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.NumericalStringReadOnlyConverter))]
[System.Text.Json.Serialization.JsonPropertyName("meeting_id")] [System.Text.Json.Serialization.JsonPropertyName("meeting_id")]
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))]
public long? MeetingId { get; set; } public string? MeetingId { get; set; }
/// <summary> /// <summary>
/// 获取或设置通知类型。 /// 获取或设置通知类型。

View File

@@ -10,7 +10,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models
/// </summary> /// </summary>
[Newtonsoft.Json.JsonIgnore] [Newtonsoft.Json.JsonIgnore]
[System.Text.Json.Serialization.JsonIgnore] [System.Text.Json.Serialization.JsonIgnore]
public long LastSequence { get; set; } public ulong LastSequence { get; set; }
/// <summary> /// <summary>
/// 获取或设置分页每页数量。 /// 获取或设置分页每页数量。

View File

@@ -14,7 +14,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.ExtendedSDK.Finance.Models
/// </summary> /// </summary>
[Newtonsoft.Json.JsonProperty("seq")] [Newtonsoft.Json.JsonProperty("seq")]
[System.Text.Json.Serialization.JsonPropertyName("seq")] [System.Text.Json.Serialization.JsonPropertyName("seq")]
public long Sequence { get; set; } public ulong Sequence { get; set; }
/// <summary> /// <summary>
/// 获取或设置消息 ID。 /// 获取或设置消息 ID。