mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-03-10 00:13:36 +08:00
feat(wxapi): 新增第三方平台相关 API 封装
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 EVENT.betaapp_authorization_apply_event 事件的数据。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/verify_beta_Mini_Programs/getmpadminauth.html </para>
|
||||
/// </summary>
|
||||
public class BetaAppAuthorizationApplyEvent : WechatApiEvent, WechatApiEvent.Types.IXmlSerializable
|
||||
{
|
||||
public new static class Types
|
||||
{
|
||||
public class EventData
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小程序的 AppId。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("appid")]
|
||||
public string MiniProgramAppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置公众号的 AppId。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("mp_appid")]
|
||||
public string MediaPlatformAppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置错误码。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("status")]
|
||||
public int ErrorCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置错误信息。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("msg")]
|
||||
public string? ErrorMessage { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置事件数据。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("ApplyAuthorizationInfoNoitfy")]
|
||||
public Types.EventData EventData { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 EVENT.betaapp_verify_apply_event 事件的数据。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/verify_beta_Mini_Programs/mpverifybetaweapp.html </para>
|
||||
/// </summary>
|
||||
public class BetaAppVerifyApplyEvent : WechatApiEvent, WechatApiEvent.Types.IXmlSerializable
|
||||
{
|
||||
public new static class Types
|
||||
{
|
||||
public class EventData : BetaAppAuthorizationApplyEvent.Types.EventData
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置事件数据。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("ApplyAuthorizationInfoNoitfy")]
|
||||
public Types.EventData EventData { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 EVENT.betaapp_verify_event 事件的数据。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/verify_beta_Mini_Programs/getmpadminauth.html </para>
|
||||
/// </summary>
|
||||
public class BetaAppVerifyEvent : WechatApiEvent, WechatApiEvent.Types.IXmlSerializable
|
||||
{
|
||||
public new static class Types
|
||||
{
|
||||
public class EventData : BetaAppAuthorizationApplyEvent.Types.EventData
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置事件数据。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("ApplyAuthorizationInfoNoitfy")]
|
||||
public Types.EventData EventData { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -9,18 +9,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
/// </summary>
|
||||
public class ComponentAuthorizedEvent : WechatApiEvent, WechatApiEvent.Types.IXmlSerializable
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置第三方平台 AppId。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("AppId")]
|
||||
public string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置信息类型。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("InfoType")]
|
||||
public string InfoType { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置授权方 AppId。
|
||||
/// </summary>
|
||||
|
||||
@@ -9,18 +9,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
/// </summary>
|
||||
public class ComponentUnauthorizedEvent : WechatApiEvent, WechatApiEvent.Types.IXmlSerializable
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置第三方平台 AppId。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("AppId")]
|
||||
public string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置信息类型。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("InfoType")]
|
||||
public string InfoType { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置授权方 AppId。
|
||||
/// </summary>
|
||||
|
||||
@@ -9,18 +9,6 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
/// </summary>
|
||||
public class ComponentVerifyTicketEvent : WechatApiEvent, WechatApiEvent.Types.IXmlSerializable
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置第三方平台 AppId。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("AppId")]
|
||||
public string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置信息类型。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("InfoType")]
|
||||
public string InfoType { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置验证票据。
|
||||
/// </summary>
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 INFO.notify_third_fastregisterbetaapp 事件的数据。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/beta_Mini_Programs/fastregister.html </para>
|
||||
/// </summary>
|
||||
public class NotifyThirdFastRegisterBetaAppEvent : WechatApiEvent, WechatApiEvent.Types.IXmlSerializable
|
||||
{
|
||||
public new static class Types
|
||||
{
|
||||
public class InfoData
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置请求的唯一标识符。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("unique_id")]
|
||||
public string UnionId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string AuthorizeUrl { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置创建的小程序 AppId。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("appid", IsNullable = true)]
|
||||
public string? MiniProgramAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置消息数据。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("info")]
|
||||
public Types.InfoData InfoData { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置错误码。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("status")]
|
||||
public int ErrorCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置错误信息。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("msg", IsNullable = true)]
|
||||
public string? ErrorMessage { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 INFO.notify_third_fasteregister 事件的数据。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Register_Mini_Programs/Fast_Registration_Interface_document.html </para>
|
||||
/// </summary>
|
||||
public class NotifyThirdFastRegisterEvent : WechatApiEvent, WechatApiEvent.Types.IXmlSerializable
|
||||
{
|
||||
public new static class Types
|
||||
{
|
||||
public class InfoData
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置企业名称。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("name")]
|
||||
public string EnterpriseName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置企业代码类型。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("code_type")]
|
||||
public int LicenseType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置企业代码。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("code")]
|
||||
public string LicenseNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置法人姓名。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("legal_persona_name")]
|
||||
public string LegalPersonName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置法人微信号。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("legal_persona_wechat")]
|
||||
public string LegalPersonWxname { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置第三方联系电话。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("component_phone")]
|
||||
public string? ComponentPhoneNumber { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置创建的小程序 AppId。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("appid", IsNullable = true)]
|
||||
public string? MiniProgramAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置授权码。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("auth_code", IsNullable = true)]
|
||||
public string? AuthCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置消息数据。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("info")]
|
||||
public Types.InfoData InfoData { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置错误码。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("status")]
|
||||
public int ErrorCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置错误信息。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("msg", IsNullable = true)]
|
||||
public string? ErrorMessage { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 INFO.notify_third_fastverifybetaapp 事件的数据。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/beta_Mini_Programs/fastverify.html </para>
|
||||
/// </summary>
|
||||
public class NotifyThirdFastVerifyBetaAppEvent : WechatApiEvent, WechatApiEvent.Types.IXmlSerializable
|
||||
{
|
||||
public new static class Types
|
||||
{
|
||||
public class InfoData
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置企业名称。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("name")]
|
||||
public string EnterpriseName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置企业代码类型。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("code_type")]
|
||||
public int LicenseType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置企业代码。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("code")]
|
||||
public string LicenseNumber { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置法人姓名。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("legal_persona_name")]
|
||||
public string LegalPersonName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置法人微信号。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("legal_persona_wechat")]
|
||||
public string LegalPersonWxname { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置第三方联系电话。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("component_phone")]
|
||||
public string ComponentPhoneNumber { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置创建的小程序 AppId。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("appid", IsNullable = true)]
|
||||
public string? MiniProgramAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置消息数据。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("info")]
|
||||
public Types.InfoData InfoData { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置错误码。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("status")]
|
||||
public int ErrorCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置错误信息。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("msg", IsNullable = true)]
|
||||
public string? ErrorMessage { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 EVENT.weapp_audit_delay 事件的数据。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/audit_event.html </para>
|
||||
/// </summary>
|
||||
public class WeappAuditDelayEvent : WechatApiEvent, WechatApiEvent.Types.IXmlSerializable
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置审核延后时间戳。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("DelayTime")]
|
||||
public long DelayTimestamp { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 EVENT.weapp_audit_fail 事件的数据。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/audit_event.html </para>
|
||||
/// </summary>
|
||||
public class WeappAuditFailEvent : WechatApiEvent, WechatApiEvent.Types.IXmlSerializable
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置审核失败时间戳。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("FailTime")]
|
||||
public long FailTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核失败的原因。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("FailTime", IsNullable = true)]
|
||||
public string? FailReason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置截图 MediaId 列表,使用竖线分隔。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("ScreenShot", IsNullable = true)]
|
||||
public string? ScreenshotMediaIds { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 EVENT.weapp_audit_success 事件的数据。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/audit_event.html </para>
|
||||
/// </summary>
|
||||
public class WeappAuditSuccessEvent : WechatApiEvent, WechatApiEvent.Types.IXmlSerializable
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置审核成功时间戳。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("SuccTime")]
|
||||
public long SuccessTimestamp { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 EVENT.wxa_appeal_record 事件的数据。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/records/record_event.html </para>
|
||||
/// </summary>
|
||||
public class WxaAppealRecordEvent : WechatApiEvent, WechatApiEvent.Types.IXmlSerializable
|
||||
{
|
||||
public new static class Types
|
||||
{
|
||||
public class Material
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置违规材料信息。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("illegal_material", IsNullable = true)]
|
||||
public IllegalMaterial? IllegalMaterial { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置申诉材料信息。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("appeal_material", IsNullable = true)]
|
||||
public AppealMaterial? AppealMaterial { get; set; }
|
||||
}
|
||||
|
||||
public class IllegalMaterial
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置违规内容。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("content")]
|
||||
public string Content { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置违规链接。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("content_url")]
|
||||
public string ContentUrl { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class AppealMaterial
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置申诉理由。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("reason")]
|
||||
public string Reason { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置证明材料 MediaId 列表。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlArray("proof_material_ids")]
|
||||
public string[] ProofMediaIdList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置申诉记录 ID。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("appeal_record_id")]
|
||||
public int AppealRecordId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序的 AppId。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("appid")]
|
||||
public string MiniProgramAppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置申诉次数。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("appeal_count")]
|
||||
public int AppealCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置申诉来源。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("appeal_from")]
|
||||
public int AppealFrom { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置申诉状态。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("appeal_status")]
|
||||
public int AppealStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置申诉材料列表。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlArray("materials", IsNullable = true)]
|
||||
public Types.Material[]? MaterialList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置处罚原因描述。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("punish_description", IsNullable = true)]
|
||||
public string? PunishDescription { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核结果理由。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("audit_reason", IsNullable = true)]
|
||||
public string? AuditReason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置申诉时间戳。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("appeal_time")]
|
||||
public long AppealTimestamp { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 EVENT.wxa_category_audit 事件的数据。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/category/wxa_category_audit.html </para>
|
||||
/// </summary>
|
||||
public class WxaCategoryAuditEvent : WechatApiEvent, WechatApiEvent.Types.IXmlSerializable
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置一级类目 ID。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("first")]
|
||||
public int FirstCategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置二级类目 ID。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("second")]
|
||||
public int SecondCategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核状态。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("ret")]
|
||||
public int AuditStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核拒绝原因。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("reason", IsNullable = true)]
|
||||
public string? AuditRejectReason { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 EVENT.wxa_nickname_audit 事件的数据。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/wxa_nickname_audit.html </para>
|
||||
/// </summary>
|
||||
public class WxaNicknameAuditEvent : WechatApiEvent, WechatApiEvent.Types.IXmlSerializable
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置昵称。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("nickname")]
|
||||
public string Nickname { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核状态。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("ret")]
|
||||
public int AuditStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核拒绝原因。
|
||||
/// </summary>
|
||||
[System.Xml.Serialization.XmlElement("reason", IsNullable = true)]
|
||||
public string? AuditRejectReason { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,119 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Flurl;
|
||||
using Flurl.Http;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
{
|
||||
public static class WechatApiClientExecuteCgibinAccountExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/account/fastregister 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Register_Mini_Programs/fast_registration_of_mini_program.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinAccountFastRegisterResponse> ExecuteCgibinAccountFastRegisterAsync(this WechatApiClient client, Models.CgibinAccountFastRegisterRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "account", "fastregister")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinAccountFastRegisterResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/account/componentrebindadmin 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Register_Mini_Programs/fast_registration_of_mini_program.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinAccountComponentRebindAdminResponse> ExecuteCgibinAccountComponentRebindAdminAsync(this WechatApiClient client, Models.CgibinAccountComponentRebindAdminRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "account", "componentrebindadmin")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinAccountComponentRebindAdminResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /cgi-bin/account/getaccountbasicinfo 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/Mini_Program_Information_Settings.html#%E6%B3%A8%E5%86%8C%E5%9B%BD%E5%AE%B6 </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinAccountGetAccountBasicInfoResponse> ExecuteCgibinAccountGetAccountBasicInfoAsync(this WechatApiClient client, Models.CgibinAccountGetAccountBasicInfoRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Get, "cgi-bin", "account", "getaccountbasicinfo")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestAsync<Models.CgibinAccountGetAccountBasicInfoResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/account/modifyheadimage 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/modifyheadimage.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinAccountModifyHeadImageResponse> ExecuteCgibinAccountModifyHeadImageAsync(this WechatApiClient client, Models.CgibinAccountModifyHeadImageRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "account", "modifyheadimage")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinAccountModifyHeadImageResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/account/modifysignature 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/modifyheadimage.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinAccountModifySignatureResponse> ExecuteCgibinAccountModifySignatureAsync(this WechatApiClient client, Models.CgibinAccountModifySignatureRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "account", "modifysignature")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinAccountModifySignatureResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -230,5 +230,49 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinComponentApiSetAuthorizerOptionResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/component/fastregisterweapp?action=create 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Register_Mini_Programs/Fast_Registration_Interface_document.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinComponentFastRegisterWeappCreateResponse> ExecuteCgibinComponentFastRegisterWeappCreateAsync(this WechatApiClient client, Models.CgibinComponentFastRegisterWeappCreateRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "component", "fastregisterweapp")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("action", "create")
|
||||
.SetQueryParam("component_access_token", request.ComponentAccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinComponentFastRegisterWeappCreateResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/component/fastregisterweapp?action=search 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Register_Mini_Programs/Fast_Registration_Interface_document.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinComponentFastRegisterWeappSearchResponse> ExecuteCgibinComponentFastRegisterWeappSearchAsync(this WechatApiClient client, Models.CgibinComponentFastRegisterWeappSearchRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "component", "fastregisterweapp")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("action", "search")
|
||||
.SetQueryParam("component_access_token", request.ComponentAccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinComponentFastRegisterWeappSearchResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "open", "create")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AuthorizerAccessToken);
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinOpenCreateResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
@@ -48,7 +48,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "open", "bind")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AuthorizerAccessToken);
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinOpenBindResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
@@ -69,7 +69,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "open", "unbind")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AuthorizerAccessToken);
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinOpenUnbindResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
@@ -90,7 +90,7 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "open", "get")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AuthorizerAccessToken);
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinOpenGetResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
@@ -11,6 +11,134 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
{
|
||||
public static class WechatApiClientExecuteCgibinWxopenExtensions
|
||||
{
|
||||
#region Category
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /cgi-bin/wxopen/getallcategories 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/category/getallcategories.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinWxopenGetAllCategoriesResponse> ExecuteCgibinWxopenGetAllCategoriesAsync(this WechatApiClient client, Models.CgibinWxopenGetAllCategoriesRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Get, "cgi-bin", "wxopen", "getallcategories")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestAsync<Models.CgibinWxopenGetAllCategoriesResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /cgi-bin/wxopen/getcategory 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/category/getcategory.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinWxopenGetCategoryResponse> ExecuteCgibinWxopenGetCategoryAsync(this WechatApiClient client, Models.CgibinWxopenGetCategoryRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Get, "cgi-bin", "wxopen", "getcategory")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestAsync<Models.CgibinWxopenGetCategoryResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wxopen/getcategoriesbytype 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/category/getcategorybytype.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinWxopenGetCategoriesByTypeResponse> ExecuteCgibinWxopenGetCategoriesByTypeAsync(this WechatApiClient client, Models.CgibinWxopenGetCategoriesByTypeRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "wxopen", "getcategoriesbytype")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinWxopenGetCategoriesByTypeResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wxopen/addcategory 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/category/addcategory.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinWxopenAddCategoryResponse> ExecuteCgibinWxopenAddCategoryAsync(this WechatApiClient client, Models.CgibinWxopenAddCategoryRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "wxopen", "addcategory")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinWxopenAddCategoryResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wxopen/deletecategory 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/category/deletecategory.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinWxopenDeleteCategoryResponse> ExecuteCgibinWxopenDeleteCategoryAsync(this WechatApiClient client, Models.CgibinWxopenDeleteCategoryRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "wxopen", "deletecategory")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinWxopenDeleteCategoryResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wxopen/modifycategory 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/category/modifycategory.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinWxopenModifyCategoryResponse> ExecuteCgibinWxopenModifyCategoryAsync(this WechatApiClient client, Models.CgibinWxopenModifyCategoryRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "wxopen", "modifycategory")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinWxopenModifyCategoryResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region QrcodeJump
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wxopen/qrcodejumpget 接口。</para>
|
||||
@@ -117,5 +245,114 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinWxopenQrcodeJumpDeleteResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region WeappSupportVersion
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /cgi-bin/wxopen/getweappsupportversion 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/getweappsupportversion.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinWxopenGetWeappSupportVersionResponse> ExecuteCgibinWxopenGetWeappSupportVersionAsync(this WechatApiClient client, Models.CgibinWxopenGetWeappSupportVersionRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Get, "cgi-bin", "wxopen", "getweappsupportversion")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestAsync<Models.CgibinWxopenGetWeappSupportVersionResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wxopen/setweappsupportversion 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/setweappsupportversion.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinWxopenSetWeappSupportVersionResponse> ExecuteCgibinWxopenSetWeappSupportVersionAsync(this WechatApiClient client, Models.CgibinWxopenSetWeappSupportVersionRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "wxopen", "setweappsupportversion")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinWxopenSetWeappSupportVersionResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region WxaMpLink
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wxopen/wxamplinkget 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Official__Accounts/Mini_Program_Management_Permission.html#%E8%8E%B7%E5%8F%96%E5%85%AC%E4%BC%97%E5%8F%B7%E5%85%B3%E8%81%94%E7%9A%84%E5%B0%8F%E7%A8%8B%E5%BA%8F </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinWxopenWxaMpLinkGetResponse> ExecuteCgibinWxopenWxaMpLinkGetAsync(this WechatApiClient client, Models.CgibinWxopenWxaMpLinkGetRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "wxopen", "wxamplinkget")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinWxopenWxaMpLinkGetResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wxopen/wxamplink 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Official__Accounts/Mini_Program_Management_Permission.html#%E5%85%B3%E8%81%94%E5%B0%8F%E7%A8%8B%E5%BA%8F </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinWxopenWxaMpLinkResponse> ExecuteCgibinWxopenWxaMpLinkAsync(this WechatApiClient client, Models.CgibinWxopenWxaMpLinkRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "wxopen", "wxamplink")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinWxopenWxaMpLinkResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wxopen/wxampunlink 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Official__Accounts/Mini_Program_Management_Permission.html#%E8%A7%A3%E9%99%A4%E5%B7%B2%E5%85%B3%E8%81%94%E7%9A%84%E5%B0%8F%E7%A8%8B%E5%BA%8F </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinWxopenWxaMpUnlinkResponse> ExecuteCgibinWxopenWxaMpUnlinkAsync(this WechatApiClient client, Models.CgibinWxopenWxaMpUnlinkRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "wxopen", "wxampunlink")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinWxopenWxaMpUnlinkResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Flurl;
|
||||
using Flurl.Http;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
{
|
||||
public static class WechatApiClientExecuteCgibinWxverifyExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /cgi-bin/wxverify/checkwxverifynickname 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/wxverify_checknickname.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.CgibinWxverifyCheckWxverifyNicknameResponse> ExecuteCgibinWxverifyCheckWxverifyNicknameAsync(this WechatApiClient client, Models.CgibinWxverifyCheckWxverifyNicknameRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "cgi-bin", "wxverify", "checkwxverifynickname")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.CgibinWxverifyCheckWxverifyNicknameResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Flurl;
|
||||
using Flurl.Http;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
{
|
||||
public static class WechatApiClientExecuteScanProductV2Extensions
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /scan/product/v2/add 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Official__Accounts/wechat_goods.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ScanProductV2AddResponse> ExecuteScanProductV2AddAsync(this WechatApiClient client, Models.ScanProductV2AddRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "scan", "product", "v2", "add")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.ScanProductV2AddResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /scan/product/v2/status 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Official__Accounts/wechat_goods.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ScanProductV2StatusResponse> ExecuteScanProductV2StatusAsync(this WechatApiClient client, Models.ScanProductV2StatusRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "scan", "product", "v2", "status")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.ScanProductV2StatusResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /scan/product/v2/getinfobypage 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Official__Accounts/wechat_goods.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.ScanProductV2GetInfoByPageResponse> ExecuteScanProductV2GetInfoByPageAsync(this WechatApiClient client, Models.ScanProductV2GetInfoByPageRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "scan", "product", "v2", "getinfobypage")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.ScanProductV2GetInfoByPageResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,886 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Flurl;
|
||||
using Flurl.Http;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api
|
||||
{
|
||||
public static class WechatApiClientExecuteWxaComponentExtensions
|
||||
{
|
||||
#region Register
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/component/fastregisterbetaweapp 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/beta_Mini_Programs/fastregister.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaComponentFastRegisterBetaWeappResponse> ExecuteWxaComponentFastRegisterBetaWeappAsync(this WechatApiClient client, Models.WxaComponentFastRegisterBetaWeappRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "component", "fastregisterbetaweapp")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.ComponentAccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaComponentFastRegisterBetaWeappResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/verifybetaweapp 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/beta_Mini_Programs/fastverify.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaVerifyBetaWeappResponse> ExecuteWxaVerifyBetaWeappAsync(this WechatApiClient client, Models.WxaVerifyBetaWeappRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "verifybetaweapp")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaVerifyBetaWeappResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/setbetaweappnickname 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/beta_Mini_Programs/fastmodify.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaSetBetaWeappNicknameResponse> ExecuteWxaSetBetaWeappNicknameAsync(this WechatApiClient client, Models.WxaSetBetaWeappNicknameRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "setbetaweappnickname")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaSetBetaWeappNicknameResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/getmpadminauth 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/verify_beta_Mini_Programs/getmpadminauth.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaGetMpAdminAuthResponse> ExecuteWxaGetMpAdminAuthAsync(this WechatApiClient client, Models.WxaGetMpAdminAuthRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "getmpadminauth")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaGetMpAdminAuthResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/mpverifybetaweapp 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/verify_beta_Mini_Programs/mpverifybetaweapp.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaMpVerifyBetaWeappResponse> ExecuteWxaMpVerifyBetaWeappAsync(this WechatApiClient client, Models.WxaMpVerifyBetaWeappRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "mpverifybetaweapp")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaMpVerifyBetaWeappResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Template
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /wxa/gettemplatedraftlist 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/code_template/gettemplatedraftlist.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaGetTemplateDraftListResponse> ExecuteWxaGetTemplateDraftListAsync(this WechatApiClient client, Models.WxaGetTemplateDraftListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Get, "wxa", "gettemplatedraftlist")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.ComponentAccessToken);
|
||||
|
||||
return await client.SendRequestAsync<Models.WxaGetTemplateDraftListResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/addtotemplate 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/code_template/addtotemplate.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaAddToTemplateResponse> ExecuteWxaAddToTemplateAsync(this WechatApiClient client, Models.WxaAddToTemplateRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "addtotemplate")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.ComponentAccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaAddToTemplateResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /wxa/gettemplatelist 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/code_template/gettemplatelist.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaGetTemplateListResponse> ExecuteWxaGetTemplateListAsync(this WechatApiClient client, Models.WxaGetTemplateListRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Get, "wxa", "gettemplatelist")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.ComponentAccessToken);
|
||||
|
||||
return await client.SendRequestAsync<Models.WxaGetTemplateListResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/deletetemplate 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/ThirdParty/code_template/deletetemplate.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaDeleteTemplateResponse> ExecuteWxaDeleteTemplateAsync(this WechatApiClient client, Models.WxaDeleteTemplateRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "deletetemplate")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.ComponentAccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaDeleteTemplateResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Basic
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/modify_domain 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/Server_Address_Configuration.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaModifyDomainResponse> ExecuteWxaModifyDomainAsync(this WechatApiClient client, Models.WxaModifyDomainRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "modify_domain")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaModifyDomainResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/setwebviewdomain 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/setwebviewdomain.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaSetWebviewDomainResponse> ExecuteWxaSetWebviewDomainAsync(this WechatApiClient client, Models.WxaSetWebviewDomainRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "setwebviewdomain")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaSetWebviewDomainResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/setnickname 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/setnickname.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaSetNicknameResponse> ExecuteWxaSetNicknameAsync(this WechatApiClient client, Models.WxaSetNicknameRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "setnickname")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaSetNicknameResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/api_wxa_querynickname 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/api_wxa_querynickname.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaApiWxaQueryNicknameResponse> ExecuteWxaApiWxaQueryNicknameAsync(this WechatApiClient client, Models.WxaApiWxaQueryNicknameRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "api_wxa_querynickname")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaApiWxaQueryNicknameResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /wxa/getwxasearchstatus 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/getwxasearchstatus.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaGetWxaSearchStatusResponse> ExecuteWxaGetWxaSearchStatusAsync(this WechatApiClient client, Models.WxaGetWxaSearchStatusRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Get, "wxa", "getwxasearchstatus")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestAsync<Models.WxaGetWxaSearchStatusResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/changewxasearchstatus 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/changewxasearchstatus.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaChangeWxaSearchStatusResponse> ExecuteWxaChangeWxaSearchStatusAsync(this WechatApiClient client, Models.WxaChangeWxaSearchStatusRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "changewxasearchstatus")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaChangeWxaSearchStatusResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/fetchdatasetting 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/get_fetchdatasetting.html </para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/set_pre_fetchdatasetting.html </para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_Basic_Info/set_period_fetchdatasetting.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaFetchDataSettingResponse> ExecuteWxaFetchDataSettingAsync(this WechatApiClient client, Models.WxaFetchDataSettingRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "fetchdatasetting")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaFetchDataSettingResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Category
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /wxa/get_category 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/category/get_category.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaGetCategoryResponse> ExecuteWxaGetCategoryAsync(this WechatApiClient client, Models.WxaGetCategoryRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Get, "wxa", "get_category")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestAsync<Models.WxaGetCategoryResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Member
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/bind_tester 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_AdminManagement/Admin.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaBindTesterResponse> ExecuteWxaBindTesterAsync(this WechatApiClient client, Models.WxaBindTesterRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "bind_tester")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaBindTesterResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/unbind_tester 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_AdminManagement/unbind_tester.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaUnbindTesterResponse> ExecuteWxaUnbindTesterAsync(this WechatApiClient client, Models.WxaUnbindTesterRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "unbind_tester")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaUnbindTesterResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/memberauth?action=get_experiencer 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/Mini_Program_AdminManagement/memberauth.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaMemberAuthGetExperiencerResponse> ExecuteWxaMemberAuthGetExperiencerAsync(this WechatApiClient client, Models.WxaMemberAuthGetExperiencerRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
request.Action = "get_experiencer";
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "memberauth")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaMemberAuthGetExperiencerResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Code
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/commit 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/commit.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaCommitResponse> ExecuteWxaCommitAsync(this WechatApiClient client, Models.WxaCommitRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "commit")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaCommitResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /wxa/get_page 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/get_page.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaGetPageResponse> ExecuteWxaGetPageAsync(this WechatApiClient client, Models.WxaGetPageRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Get, "wxa", "get_page")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestAsync<Models.WxaGetPageResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /wxa/get_qrcode 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/get_page.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaGetQrcodeResponse> ExecuteWxaGetQrcodeAsync(this WechatApiClient client, Models.WxaGetQrcodeRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Get, "wxa", "get_qrcode")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
if (!string.IsNullOrEmpty(request.PagePath))
|
||||
flurlReq.SetQueryParam("path", request.PagePath);
|
||||
|
||||
return await client.SendRequestAsync<Models.WxaGetQrcodeResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/submit_audit 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/commit.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaSubmitAuditResponse> ExecuteWxaSubmitAuditAsync(this WechatApiClient client, Models.WxaSubmitAuditRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "submit_audit")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaSubmitAuditResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/get_auditstatus 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/get_auditstatus.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaGetAuditStatusResponse> ExecuteWxaGetAuditStatusAsync(this WechatApiClient client, Models.WxaGetAuditStatusRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "get_auditstatus")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaGetAuditStatusResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /wxa/get_latest_auditstatus 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/get_latest_auditstatus.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaGetLatestAuditStatusResponse> ExecuteWxaGetLatestAuditStatusAsync(this WechatApiClient client, Models.WxaGetLatestAuditStatusRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Get, "wxa", "get_latest_auditstatus")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestAsync<Models.WxaGetLatestAuditStatusResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /wxa/undocodeaudit 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/undocodeaudit.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaUndoCodeAuditResponse> ExecuteWxaUndoCodeAuditAsync(this WechatApiClient client, Models.WxaUndoCodeAuditRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Get, "wxa", "undocodeaudit")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestAsync<Models.WxaUndoCodeAuditResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/release 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/release.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaReleaseResponse> ExecuteWxaReleaseAsync(this WechatApiClient client, Models.WxaReleaseRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "release")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaReleaseResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /wxa/revertcoderelease 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/revertcoderelease.html </para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/get_history_version.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaRevertCodeReleaseResponse> ExecuteWxaRevertCodeReleaseAsync(this WechatApiClient client, Models.WxaRevertCodeReleaseRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Get, "wxa", "revertcoderelease")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
if (!string.IsNullOrEmpty(request.Action))
|
||||
flurlReq.SetQueryParam("action", request.Action);
|
||||
|
||||
if (request.AppVersion.HasValue)
|
||||
flurlReq.SetQueryParam("app_version", request.AppVersion.Value);
|
||||
|
||||
return await client.SendRequestAsync<Models.WxaRevertCodeReleaseResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/grayrelease 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/grayrelease.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaGrayReleaseResponse> ExecuteWxaGrayReleaseAsync(this WechatApiClient client, Models.WxaGrayReleaseRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "grayrelease")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaGrayReleaseResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /wxa/getgrayreleaseplan 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/getgrayreleaseplan.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaGetGrayReleasePlanResponse> ExecuteWxaGetGrayReleasePlanAsync(this WechatApiClient client, Models.WxaGetGrayReleasePlanRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Get, "wxa", "getgrayreleaseplan")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestAsync<Models.WxaGetGrayReleasePlanResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /wxa/revertgrayrelease 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/revertgrayrelease.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaRevertGrayReleaseResponse> ExecuteWxaRevertGrayReleaseAsync(this WechatApiClient client, Models.WxaRevertGrayReleaseRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Get, "wxa", "revertgrayrelease")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestAsync<Models.WxaRevertGrayReleaseResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/change_visitstatus 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/change_visitstatus.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaChangeVisitStatusResponse> ExecuteWxaChangeVisitStatusAsync(this WechatApiClient client, Models.WxaChangeVisitStatusRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "change_visitstatus")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaChangeVisitStatusResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /wxa/queryquota 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/query_quota.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaQueryQuotaResponse> ExecuteWxaQueryQuotaAsync(this WechatApiClient client, Models.WxaQueryQuotaRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Get, "wxa", "queryquota")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestAsync<Models.WxaQueryQuotaResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/speedupaudit 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/code/speedup_audit.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaSpeedupAuditResponse> ExecuteWxaSpeedupAuditAsync(this WechatApiClient client, Models.WxaSpeedupAuditRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "speedupaudit")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaSpeedupAuditResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Record
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/getillegalrecords 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/records/getillegalrecords.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaGetIllegalRecordsResponse> ExecuteWxaGetIllegalRecordsAsync(this WechatApiClient client, Models.WxaGetIllegalRecordsRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "getillegalrecords")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaGetIllegalRecordsResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/getappealrecords 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/records/getappealrecords.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaGetAppealRecordsResponse> ExecuteWxaGetAppealRecordsAsync(this WechatApiClient client, Models.WxaGetAppealRecordsRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "getappealrecords")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaGetAppealRecordsResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Subscribe
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /wxa/getshowwxaitem 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/subscribe_component/getshowwxaitem.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaGetShowWxaItemResponse> ExecuteWxaGetShowWxaItemAsync(this WechatApiClient client, Models.WxaGetShowWxaItemRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Get, "wxa", "getshowwxaitem")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestAsync<Models.WxaGetShowWxaItemResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [GET] /wxa/getwxamplinkforshow 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/subscribe_component/getwxamplinkforshow.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaGetWxaMpLinkForShowResponse> ExecuteWxaGetWxaMpLinkForShowAsync(this WechatApiClient client, Models.WxaGetWxaMpLinkForShowRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Get, "wxa", "getwxamplinkforshow")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken)
|
||||
.SetQueryParam("page", request.Page)
|
||||
.SetQueryParam("num", request.Limit);
|
||||
|
||||
return await client.SendRequestAsync<Models.WxaGetWxaMpLinkForShowResponse>(flurlReq, cancellationToken: cancellationToken);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>异步调用 [POST] /wxa/updateshowwxaitem 接口。</para>
|
||||
/// <para>REF: https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/2.0/api/subscribe_component/updateshowwxaitem.html </para>
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
public static async Task<Models.WxaUpdateShowWxaItemResponse> ExecuteWxaUpdateShowWxaItemAsync(this WechatApiClient client, Models.WxaUpdateShowWxaItemRequest request, CancellationToken cancellationToken = default)
|
||||
{
|
||||
if (client is null) throw new ArgumentNullException(nameof(client));
|
||||
if (request is null) throw new ArgumentNullException(nameof(request));
|
||||
|
||||
IFlurlRequest flurlReq = client
|
||||
.CreateRequest(HttpMethod.Post, "wxa", "updateshowwxaitem")
|
||||
.SetOptions(request)
|
||||
.SetQueryParam("access_token", request.AccessToken);
|
||||
|
||||
return await client.SendRequestWithJsonAsync<Models.WxaUpdateShowWxaItemResponse>(flurlReq, data: request, cancellationToken: cancellationToken);
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/account/componentrebindadmin 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinAccountComponentRebindAdminRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置换绑管理员任务序列号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("taskid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("taskid")]
|
||||
public string TaskId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/account/componentrebindadmin 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinAccountComponentRebindAdminResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/account/fastregister 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinAccountFastRegisterRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置公众号扫码授权的凭证。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ticket")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ticket")]
|
||||
public string Ticket { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/account/fastregister 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinAccountFastRegisterResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置新创建的 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置新创建小程序的授权码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("authorization_code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("authorization_code")]
|
||||
public string AuthCode { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否小程序微信认证成功。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_wx_verify_succ")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_wx_verify_succ")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.StringTypedBooleanConverter))]
|
||||
public bool IsVerifySuccessful { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否和公众号关联成功。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_link_succ")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_link_succ")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.StringTypedBooleanConverter))]
|
||||
public bool IsLinkSuccessful { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/account/getaccountbasicinfo 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinAccountGetAccountBasicInfoRequest : WechatApiRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,201 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/account/getaccountbasicinfo 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinAccountGetAccountBasicInfoResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Nickname
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置账号昵称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("nickname")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
|
||||
public string Value { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置已使用修改次数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("modify_used_count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("modify_used_count")]
|
||||
public int UsedModifyCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置修改次数总额度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("modify_quota")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("modify_quota")]
|
||||
public int MaxModifyCount { get; set; }
|
||||
}
|
||||
|
||||
public class HeadImage
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置账号头像 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("head_image_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("head_image_url")]
|
||||
public string Value { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置已使用修改次数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("modify_used_count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("modify_used_count")]
|
||||
public int UsedModifyCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置修改次数总额度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("modify_quota")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("modify_quota")]
|
||||
public int MaxModifyCount { get; set; }
|
||||
}
|
||||
|
||||
public class Signature
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置账号介绍。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("signature")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("signature")]
|
||||
public string Value { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置已使用修改次数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("modify_used_count")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("modify_used_count")]
|
||||
public int UsedModifyCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置修改次数总额度。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("modify_quota")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("modify_quota")]
|
||||
public int MaxModifyCount { get; set; }
|
||||
}
|
||||
|
||||
public class Verification
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置是否资质认证。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("qualification_verify")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("qualification_verify")]
|
||||
public bool IsQualificationVerified { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否名称认证。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("naming_verify")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("naming_verify")]
|
||||
public bool IsNamingVerified { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否需要年审。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("annual_review")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("annual_review")]
|
||||
public bool? IsAnnualReviewing { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置年审开始时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("annual_review_begin_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("annual_review_begin_time")]
|
||||
public long? AnnualReviewBeginTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置年审截止时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("annual_review_end_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("annual_review_end_time")]
|
||||
public long? AnnualReviewEndTimestamp { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置帐号类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("account_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("account_type")]
|
||||
public int AccountType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置主体类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("principal_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("principal_type")]
|
||||
public int PrincipalType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置主体名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("principal_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("principal_name")]
|
||||
public string PrincipalName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置主体标识。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("credential")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("credential")]
|
||||
public string PrincipalCredential { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置实名认证状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("realname_status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("realname_status")]
|
||||
public int RealNameStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置注册国家代码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("registered_country")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("registered_country")]
|
||||
public int? RegisteredCountry { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置昵称信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("nickname_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("nickname_info")]
|
||||
public Types.Nickname Nickname { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置头像信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("head_image_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("head_image_info")]
|
||||
public Types.HeadImage HeadImage { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置介绍信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("signature_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("signature_info")]
|
||||
public Types.Signature Signature { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置认证信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wx_verify_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wx_verify_info")]
|
||||
public Types.Verification Verification { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/account/modifyheadimage 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinAccountModifyHeadImageRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置头像的 MediaId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("head_img_media_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("head_img_media_id")]
|
||||
public string HeadImageMediaId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置裁剪框左上角 X 坐标(范围:0~1)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("x1")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("x1")]
|
||||
public double X1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置裁剪框左上角 Y 坐标(范围:0~1)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("y1")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("y1")]
|
||||
public double Y1 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置裁剪框右下角 X 坐标(范围:0~1)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("x2")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("x2")]
|
||||
public double X2 { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置裁剪框右下角 Y 坐标(范围:0~1)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("y2")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("y2")]
|
||||
public double Y2 { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/account/modifyheadimage 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinAccountModifyHeadImageResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/account/modifysignature 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinAccountModifySignatureRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小程序简介。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("signature")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("signature")]
|
||||
public string Signature { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/account/modifysignature 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinAccountModifySignatureResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/component/fastregisterweapp?action=create 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinComponentFastRegisterWeappCreateRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置第三方平台 AccessToken。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string ComponentAccessToken { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置企业名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string EnterpriseName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置企业代码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("code")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("code")]
|
||||
public string LicenseNumber { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置企业代码类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("code_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("code_type")]
|
||||
public int LicenseType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置法人姓名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("legal_persona_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("legal_persona_name")]
|
||||
public string LegalPersonName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置法人微信号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("legal_persona_wechat")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("legal_persona_wechat")]
|
||||
public string LegalPersonWxname { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置第三方联系电话。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("component_phone")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("component_phone")]
|
||||
public string? ComponentPhoneNumber { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/component/fastregisterweapp?action=create 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinComponentFastRegisterWeappCreateResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/component/fastregisterweapp?action=search 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinComponentFastRegisterWeappSearchRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置第三方平台 AccessToken。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string ComponentAccessToken { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置企业名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string EnterpriseName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置法人姓名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("legal_persona_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("legal_persona_name")]
|
||||
public string LegalPersonName { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置法人微信号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("legal_persona_wechat")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("legal_persona_wechat")]
|
||||
public string LegalPersonWxname { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/component/fastregisterweapp?action=search 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinComponentFastRegisterWeappSearchResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -8,18 +8,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
/// </summary>
|
||||
public class CgibinOpenCreateRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置授权方 AccessToken。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string AuthorizerAccessToken { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置授权方的 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = string.Empty;
|
||||
public string AuthorizerAppId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/wxopen/addcategory 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenAddCategoryRequest : WechatApiRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Category
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Qualification
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置资质名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("key")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("key")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置资质图片 MediaId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("value")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("value")]
|
||||
public string PictureMediaId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置一级类目 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("first")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("first")]
|
||||
public int FirstCategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置二级类目 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("second")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("second")]
|
||||
public int SecondCategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置资质证明列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("certicates")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("certicates")]
|
||||
public IList<Types.Qualification>? QualificationList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置类目列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("categories")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("categories")]
|
||||
public IList<Types.Category> CategoryList { get; set; } = new List<Types.Category>();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/wxopen/addcategory 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenAddCategoryResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/wxopen/deletecategory 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenDeleteCategoryRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置一级类目 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("first")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("first")]
|
||||
public int FirstCategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置二级类目 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("second")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("second")]
|
||||
public int SecondCategoryId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/wxopen/deletecategory 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenDeleteCategoryResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/wxopen/getallcategories 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenGetAllCategoriesRequest : WechatApiRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/wxopen/getallcategories 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenGetAllCategoriesResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class CategoryList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置类目列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("categories")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("categories")]
|
||||
public CategoryItem[] Items { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class CategoryItem
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Qualification
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class File
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Example
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置资质文件名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string Name { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置资质文件示例 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("url")]
|
||||
public string ExampleUrl { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置资质文件示例列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("inner_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("inner_list")]
|
||||
public Types.Example[] ExampleList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置资质文件列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("exter_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("exter_list")]
|
||||
public Types.File[] FileList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置资质备注。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("remark")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("remark")]
|
||||
public string? Remark { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置类目 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("id")]
|
||||
public int CategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置类目名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string? Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置类目层级。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("level")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("level")]
|
||||
public int? Level { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置上级类目 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("father")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("father")]
|
||||
public int? ParentCategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置下级类目 ID 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("children")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("children")]
|
||||
public int[]? SubCategoryIdList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置敏感类目类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sensitive_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sensitive_type")]
|
||||
public int? SensitiveType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置资质信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("qualify")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("qualify")]
|
||||
public Types.Qualification? Qualification { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置类目列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("categories_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("categories_list")]
|
||||
public Types.CategoryList CategoryList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/wxopen/getcategoriesbytype 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenGetCategoriesByTypeRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置主体类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("verify_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("verify_type")]
|
||||
public int? VerifyType { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/wxopen/getcategoriesbytype 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenGetCategoriesByTypeResponse : CgibinWxopenGetAllCategoriesResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/wxopen/getcategory 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenGetCategoryRequest : WechatApiRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/wxopen/getcategory 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenGetCategoryResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Category
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置一级类目 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("first")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("first")]
|
||||
public int FirstCategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置一级类目名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("first_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("first_name")]
|
||||
public string FirstCategoryName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置二级类目 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("second")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("second")]
|
||||
public int SecondCategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置二级类目名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("second_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("second_name")]
|
||||
public string SecondCategoryName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_status")]
|
||||
public int AuditStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核拒绝原因。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_reason")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_reason")]
|
||||
public string? AuditRejectReason { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置类目列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("categories")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("categories")]
|
||||
public Types.Category[] CategoryList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置一个更改周期内可以添加类目的次数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("limit")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("limit")]
|
||||
public int ModifyLimit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置本更改周期内还可以添加类目的次数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("quota")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("quota")]
|
||||
public int ModifyQuota { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置最多可以设置的类目数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("category_limit")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("category_limit")]
|
||||
public int MaxCategoryCount { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/wxopen/modifycategory 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenModifyCategoryRequest : WechatApiRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Qualification : CgibinWxopenAddCategoryRequest.Types.Category.Types.Qualification
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置一级类目 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("first")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("first")]
|
||||
public int FirstCategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置二级类目 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("second")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("second")]
|
||||
public int SecondCategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置资质证明列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("certicates")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("certicates")]
|
||||
public IList<Types.Qualification> QualificationList { get; set; } = new List<Types.Qualification>();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/wxopen/modifycategory 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenModifyCategoryResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/wxopen/getweappsupportversion 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenGetWeappSupportVersionRequest : CgibinOpenCreateRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /cgi-bin/wxopen/getweappsupportversion 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenGetWeappSupportVersionResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class SdkVersionList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置基础库版本列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("items")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("items")]
|
||||
public SdkVersionItem[] Items { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class SdkVersionItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置基础库版本。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("version")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("version")]
|
||||
public string SdkVersion { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户分布百分比。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("percentage")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("percentage")]
|
||||
public double Percentage { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置当前基础库版本。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("now_version")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("now_version")]
|
||||
public string NowSdkVersion { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置基础库版本列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("uv_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("uv_info")]
|
||||
public Types.SdkVersionList SdkVersionList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/wxopen/setweappsupportversion 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenSetWeappSupportVersionRequest : CgibinOpenCreateRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置基础库版本。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("version")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("version")]
|
||||
public string SdkVersion { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/wxopen/setweappsupportversion 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenSetWeappSupportVersionResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/wxopen/wxamplinkget 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenWxaMpLinkGetRequest : WechatApiRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,144 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/wxopen/wxamplinkget 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenWxaMpLinkGetResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class MiniProgramList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置关联的小程序列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("items")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("items")]
|
||||
public MiniProgramItem[] Items { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class MiniProgramItem
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Function
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置功能 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("id")]
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置功能名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("name")]
|
||||
public string Name { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置开通状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string AppId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序原始账号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("username")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("username")]
|
||||
public string UserName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序昵称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("nickname")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
|
||||
public string Nickname { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序头像 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("headimg_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("headimg_url")]
|
||||
public string HeadImageUrl { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序邮箱。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("email")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("email")]
|
||||
public string? Email { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联来源。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("source")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("source")]
|
||||
public string Source { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否在公众号管理页展示中。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("selected")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumberTypedNullableBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("selected")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumberTypedNullableBooleanConverter))]
|
||||
public bool? IsSelected { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否展示在附近的小程序中。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("nearby_display_status")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumberTypedNullableBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("nearby_display_status")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumberTypedNullableBooleanConverter))]
|
||||
public bool? IsNearby { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否已经发布。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("released")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumberTypedNullableBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("released")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumberTypedNullableBooleanConverter))]
|
||||
public bool? IsReleased { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置功能列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("func_infos")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("func_infos")]
|
||||
public Types.Function[]? FunctionList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联的小程序列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wxopens")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wxopens")]
|
||||
public Types.MiniProgramList MiniProgramList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/wxopen/wxamplink 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenWxaMpLinkRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string MiniProgramAppId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否发送模板消息通知公众号粉丝。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("notify_users")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumberTypedBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("notify_users")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumberTypedBooleanConverter))]
|
||||
public bool RequireNotifyUsers { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否展示公众号主页中。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("show_profile")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumberTypedBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("show_profile")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumberTypedBooleanConverter))]
|
||||
public bool RequireShowInProfile { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/wxopen/wxamplink 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenWxaMpLinkResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/wxopen/wxampunlink 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenWxaMpUnlinkRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string MiniProgramAppId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/wxopen/wxampunlink 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxopenWxaMpUnlinkResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/wxverify/checkwxverifynickname 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxverifyCheckWxverifyNicknameRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小程序昵称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("nick_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("nick_name")]
|
||||
public string Nickname { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/wxverify/checkwxverifynickname 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinWxverifyCheckWxverifyNicknameResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置是否命中关键字策略。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("hit_condition")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("hit_condition")]
|
||||
public bool IsHinted { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置命中关键字的说明描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wording")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wording")]
|
||||
public string? Wording { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,422 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /scan/product/v2/add 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ScanProductV2AddRequest : WechatApiRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Product
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class ImageList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置图片列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("main_image_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("main_image_list")]
|
||||
public IList<ImageItem> Items { get; set; } = new List<ImageItem>();
|
||||
}
|
||||
|
||||
public class ImageItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置图片 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("url")]
|
||||
public string Url { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class CategoryList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分类列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("category_item")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("category_item")]
|
||||
public IList<CategoryItem> Items { get; set; } = new List<CategoryItem>();
|
||||
}
|
||||
|
||||
public class CategoryItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分类名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("category_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("category_name")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class TagList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置标签列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("tag_item")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tag_item")]
|
||||
public IList<TagItem> Items { get; set; } = new List<TagItem>();
|
||||
}
|
||||
|
||||
public class TagItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置标签名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("tag_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tag_name")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class AttributeList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置属性列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("attribute_item")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("attribute_item")]
|
||||
public IList<AttributeItem> Items { get; set; } = new List<AttributeItem>();
|
||||
}
|
||||
|
||||
public class AttributeItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置属性的 Key。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("attribute_key")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("attribute_key")]
|
||||
public string Key { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置属性的值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("attribute_value")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("attribute_value")]
|
||||
public string Value { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class CustomList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置自定义属性列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("custom_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("custom_list")]
|
||||
public IList<CustomItem> Items { get; set; } = new List<CustomItem>();
|
||||
}
|
||||
|
||||
public class CustomItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置自定义属性的 Key。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("key")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("key")]
|
||||
public string Key { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置自定义属性的值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("value")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("value")]
|
||||
public string Value { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
public class Link
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置关联类型。
|
||||
/// <para>默认值:wxa</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("link_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("link_type")]
|
||||
public string LinkType { get; set; } = "wxa";
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wxa_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wxa_appid")]
|
||||
public string? MiniProgramAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序页面路径。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("url")]
|
||||
public string? PagePath { get; set; }
|
||||
}
|
||||
|
||||
public class Shop
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商品来源。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("source")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("source")]
|
||||
public int? Source { get; set; }
|
||||
}
|
||||
|
||||
public class Price
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置现价最低价(单位:元)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("min_price")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("min_price")]
|
||||
public double MinPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置现价最高价(单位:元)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("max_price")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("max_price")]
|
||||
public double MaxPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置原价最低价(单位:元)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("min_ori_price")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("min_ori_price")]
|
||||
public double? MinOriginalPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置原价最高价(单位:元)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("max_ori_price")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("max_ori_price")]
|
||||
public double? MaxOriginalPrice { get; set; }
|
||||
}
|
||||
|
||||
public class Sale
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置销售状态。
|
||||
/// <para>默认值:off</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sale_status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sale_status")]
|
||||
public string SaleStatus { get; set; } = "off";
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品库存。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("stock")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("stock")]
|
||||
public int? Stock { get; set; }
|
||||
}
|
||||
|
||||
public class SKUList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置 SKU 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sku_item")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sku_item")]
|
||||
public IList<SKUItem> Items { get; set; } = new List<SKUItem>();
|
||||
}
|
||||
|
||||
public class SKUItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置 SKU ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sku_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sku_id")]
|
||||
public string? SKUId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品条码类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("barcode_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("barcode_type")]
|
||||
public string? BarCodeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品条码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("barcode")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("barcode")]
|
||||
public string? BarCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品来源。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("source")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("source")]
|
||||
public int? Source { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品图片信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("image_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("image_info")]
|
||||
public ImageList? Image { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联的小程序页面路径。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("link_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("link_url")]
|
||||
public string? LinkMiniProgramPagePath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品价格信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("price_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("price_info")]
|
||||
public Price? Price { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品销售信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sale_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sale_info")]
|
||||
public Sale? Sale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置店铺信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_info")]
|
||||
public Shop? Shop { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置属性信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("attribute_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("attribute_info")]
|
||||
public AttributeList? Attribute { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pid")]
|
||||
public string ProductId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品图片信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("image_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("image_info")]
|
||||
public Types.ImageList? Image { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户商品分类信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("category_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("category_info")]
|
||||
public Types.CategoryList? Category { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信商品分类信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("official_category_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("official_category_info")]
|
||||
public Types.CategoryList? OfficialCategory { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品标签信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("tag_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tag_info")]
|
||||
public Types.TagList? Tag { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("link_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("link_info")]
|
||||
public Types.Link? Link { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品标题。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品附标题。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_title")]
|
||||
public string? SubTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品品牌。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("brand")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("brand")]
|
||||
public string? Brand { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置店铺信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_info")]
|
||||
public Types.Shop? Shop { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("desc")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("desc")]
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置价格信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("price_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("price_info")]
|
||||
public Types.Price? Price { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置售卖信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sale_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sale_info")]
|
||||
public Types.Sale? Sale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 SKU 信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sku_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sku_info")]
|
||||
public Types.SKUList? SKU { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置自定义属性信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("custom_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("custom_info")]
|
||||
public Types.CustomList? Custom { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否增量更新。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("partial_update")]
|
||||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.NumberTypedNullableBooleanConverter))]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("partial_update")]
|
||||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Converters.NumberTypedNullableBooleanConverter))]
|
||||
public bool? IsPartialUpdate { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product")]
|
||||
public IList<Types.Product> ProductList { get; set; } = new List<Types.Product>();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /scan/product/v2/add 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ScanProductV2AddResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置用于获取导入结果的票据。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status_ticket")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status_ticket")]
|
||||
public string Ticket { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /scan/product/v2/getinfobypage 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ScanProductV2GetInfoByPageRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置翻页标记。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page_context")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_context")]
|
||||
public string? NextPageContext { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页页数(从 1 开始)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page_num")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_num")]
|
||||
public int Page { get; set; } = 1;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分页每页数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page_size")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
|
||||
public int Limit { get; set; } = 10;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /scan/product/v2/getinfobypage 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ScanProductV2GetInfoByPageResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Product : ScanProductV2GetInfoResponse.Types.Product
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product")]
|
||||
public Types.Product[] ProductList { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置翻页标记。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page_context")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_context")]
|
||||
public string? NextPageContext { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /scan/product/v2/getinfo 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ScanProductV2GetInfoRequest : WechatApiRequest
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Product
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商品 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pid")]
|
||||
public string ProductId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product")]
|
||||
public Types.Product Product { get; set; } = new Types.Product();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,413 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /scan/product/v2/getinfo 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ScanProductV2GetInfoResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Product
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class ImageList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置图片列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("main_image_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("main_image_list")]
|
||||
public ImageItem[] Items { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class ImageItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置图片 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("url")]
|
||||
public string Url { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class CategoryList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分类列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("category_item")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("category_item")]
|
||||
public CategoryItem[] Items { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class CategoryItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分类名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("category_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("category_name")]
|
||||
public string Name { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class TagList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置标签列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("tag_item")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tag_item")]
|
||||
public TagItem[] Items { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class TagItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置标签名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("tag_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tag_name")]
|
||||
public string Name { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class AttributeList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置属性列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("attribute_item")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("attribute_item")]
|
||||
public AttributeItem[] Items { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class AttributeItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置属性的 Key。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("attribute_key")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("attribute_key")]
|
||||
public string Key { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置属性的值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("attribute_value")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("attribute_value")]
|
||||
public string Value { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class CustomList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置自定义属性列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("custom_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("custom_list")]
|
||||
public CustomItem[] Items { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class CustomItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置自定义属性的 Key。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("key")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("key")]
|
||||
public string Key { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置自定义属性的值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("value")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("value")]
|
||||
public string Value { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class Link
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置关联类型。
|
||||
/// <para>默认值:wxa</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("link_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("link_type")]
|
||||
public string LinkType { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序 AppId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wxa_appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wxa_appid")]
|
||||
public string? MiniProgramAppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置小程序页面路径。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("url")]
|
||||
public string? PagePath { get; set; }
|
||||
}
|
||||
|
||||
public class Shop
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商品来源。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("source")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("source")]
|
||||
public int? Source { get; set; }
|
||||
}
|
||||
|
||||
public class Price
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置现价最低价(单位:元)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("min_price")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("min_price")]
|
||||
public double MinPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置现价最高价(单位:元)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("max_price")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("max_price")]
|
||||
public double MaxPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置原价最低价(单位:元)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("min_ori_price")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("min_ori_price")]
|
||||
public double? MinOriginalPrice { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置原价最高价(单位:元)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("max_ori_price")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("max_ori_price")]
|
||||
public double? MaxOriginalPrice { get; set; }
|
||||
}
|
||||
|
||||
public class Sale
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置销售状态。
|
||||
/// <para>默认值:off</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sale_status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sale_status")]
|
||||
public string SaleStatus { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品库存。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("stock")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("stock")]
|
||||
public int? Stock { get; set; }
|
||||
}
|
||||
|
||||
public class SKUList
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置 SKU 列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sku_item")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sku_item")]
|
||||
public SKUItem[] Items { get; set; } = default!;
|
||||
}
|
||||
|
||||
public class SKUItem
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置 SKU ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sku_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sku_id")]
|
||||
public string SKUId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品条码类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("barcode_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("barcode_type")]
|
||||
public string? BarCodeType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品条码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("barcode")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("barcode")]
|
||||
public string? BarCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品来源。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("source")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("source")]
|
||||
public int? Source { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品图片信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("image_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("image_info")]
|
||||
public ImageList Image { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联的小程序页面路径。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("link_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("link_url")]
|
||||
public string LinkMiniProgramPagePath { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品价格信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("price_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("price_info")]
|
||||
public Price Price { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品销售信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sale_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sale_info")]
|
||||
public Sale Sale { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置店铺信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_info")]
|
||||
public Shop Shop { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置属性信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("attribute_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("attribute_info")]
|
||||
public AttributeList Attribute { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pid")]
|
||||
public string ProductId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品图片信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("image_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("image_info")]
|
||||
public Types.ImageList Image { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商户商品分类信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("category_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("category_info")]
|
||||
public Types.CategoryList Category { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置微信商品分类信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("official_category_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("official_category_info")]
|
||||
public Types.CategoryList OfficialCategory { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品标签信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("tag_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("tag_info")]
|
||||
public Types.TagList Tag { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置关联信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("link_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("link_info")]
|
||||
public Types.Link Link { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品标题。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("title")]
|
||||
public string Title { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品附标题。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sub_title")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sub_title")]
|
||||
public string SubTitle { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品品牌。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("brand")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("brand")]
|
||||
public string Brand { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置店铺信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("shop_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("shop_info")]
|
||||
public Types.Shop Shop { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("desc")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("desc")]
|
||||
public string Description { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置价格信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("price_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("price_info")]
|
||||
public Types.Price Price { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置售卖信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sale_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sale_info")]
|
||||
public Types.Sale Sale { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 SKU 信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("sku_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("sku_info")]
|
||||
public Types.SKUList SKU { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置自定义属性信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("custom_info")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("custom_info")]
|
||||
public Types.CustomList Custom { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置商品信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("product")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("product")]
|
||||
public Types.Product Product { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /scan/product/v2/status 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ScanProductV2StatusRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置用于获取导入结果的票据。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status_ticket")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status_ticket")]
|
||||
public string Ticket { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /scan/product/v2/status 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ScanProductV2StatusResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Result
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Product
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置商品 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pid")]
|
||||
public string ProductId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置错误状态码。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ret")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ret")]
|
||||
public int ErrorCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置错误状态描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("err_msg")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("err_msg")]
|
||||
public string? ErrorMessage { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置总共导入的数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("total_cnt")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("total_cnt")]
|
||||
public int TotalCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置成功导入的数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("succ_cnt")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("succ_cnt")]
|
||||
public int SuccessCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置导入失败的数量。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("fail_cnt")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fail_cnt")]
|
||||
public int FailCount { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置整体导入的进度字符串。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("progress")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("progress")]
|
||||
public string ProgressString { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置导入商品列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("statuses")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("statuses")]
|
||||
public Types.Product[] ProductList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置导入结果信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("result")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("result")]
|
||||
public Types.Result Result { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/api_wxa_querynickname 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaApiWxaQueryNicknameRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置审核单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_id")]
|
||||
public int? AuditId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/api_wxa_querynickname 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaApiWxaQueryNicknameResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小程序昵称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("nickname")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("nickname")]
|
||||
public string Nickname { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_stat")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_stat")]
|
||||
public int AuditStatus { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核拒绝原因。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("fail_reason")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("fail_reason")]
|
||||
public string? AuditRejectReason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核完成时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_time")]
|
||||
public long? AuditTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核提交时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("create_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
|
||||
public long CreateTimestamp { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/changewxasearchstatus 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaChangeWxaSearchStatusRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置搜索状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int SearchStatus { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/changewxasearchstatus 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaChangeWxaSearchStatusResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置搜索状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int SearchStatus { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/fetchdatasetting 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaFetchDataSettingRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置操作类型。
|
||||
/// <para>默认值:get</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("action")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("action")]
|
||||
public string Action { get; set; } = "get";
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启数据预拉取。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_pre_fetch_open")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_pre_fetch_open")]
|
||||
public bool? IsPreFetchOpen { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置数据预拉取数据来源。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pre_fetch_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pre_fetch_type")]
|
||||
public int? PreFetchType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置数据预拉取数据来源 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pre_fetch_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pre_fetch_url")]
|
||||
public string? PreFetchUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置数据预拉取云环境 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pre_env")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pre_env")]
|
||||
public string? PreFetchEnvId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置数据预拉取云函数名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pre_function_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pre_function_name")]
|
||||
public string? PreFetchFunctionName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启数据周期性拉取。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_period_fetch_open")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_period_fetch_open")]
|
||||
public bool? IsPeriodFetchOpen { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置数据周期性拉取数据来源。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("period_fetch_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("period_fetch_type")]
|
||||
public int? PeriodFetchType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置数据周期性拉取数据来源 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("period_fetch_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("period_fetch_url")]
|
||||
public string? PeriodFetchUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置数据周期性拉取云环境 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("period_env")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("period_env")]
|
||||
public string? PeriodFetchEnvId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置数据周期性拉取云函数名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("period_function_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("period_function_name")]
|
||||
public string? PeriodFetchFunctionName { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/fetchdatasetting 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaFetchDataSettingResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启数据预拉取。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_pre_fetch_open")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_pre_fetch_open")]
|
||||
public bool? IsPreFetchOpen { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置数据预拉取数据来源。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pre_fetch_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pre_fetch_type")]
|
||||
public int? PreFetchType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置数据预拉取数据来源 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pre_fetch_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pre_fetch_url")]
|
||||
public string? PreFetchUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置数据预拉取云环境 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pre_env")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pre_env")]
|
||||
public string? PreFetchEnvId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置数据预拉取云函数名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("pre_function_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("pre_function_name")]
|
||||
public string? PreFetchFunctionName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否开启数据周期性拉取。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_period_fetch_open")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_period_fetch_open")]
|
||||
public bool? IsPeriodFetchOpen { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置数据周期性拉取数据来源。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("period_fetch_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("period_fetch_type")]
|
||||
public int? PeriodFetchType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置数据周期性拉取数据来源 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("period_fetch_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("period_fetch_url")]
|
||||
public string? PeriodFetchUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置数据周期性拉取云环境 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("period_env")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("period_env")]
|
||||
public string? PeriodFetchEnvId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置数据周期性拉取云函数名。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("period_function_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("period_function_name")]
|
||||
public string? PeriodFetchFunctionName { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /wxa/getwxasearchstatus 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaGetWxaSearchStatusRequest : WechatApiRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /wxa/getwxasearchstatus 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaGetWxaSearchStatusResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置搜索状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int SearchStatus { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/modify_domain 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaModifyDomainRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置操作类型。
|
||||
/// <para>默认值:get</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("action")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("action")]
|
||||
public string Action { get; set; } = "get";
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 Request 合法域名列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("requestdomain")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("requestdomain")]
|
||||
public IList<string>? RequestDomainList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 Socket 合法域名列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wsrequestdomain")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wsrequestdomain")]
|
||||
public IList<string>? WebSocketDomainList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 UploadFile 合法域名列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("uploaddomain")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("uploaddomain")]
|
||||
public IList<string>? UploadDomainList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 DownloadFile 合法域名列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("downloaddomain")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("downloaddomain")]
|
||||
public IList<string>? DownloadDomainList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 UDP 合法域名列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("udpdomain")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("udpdomain")]
|
||||
public IList<string>? UdpDomainList { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/modify_domain 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaModifyDomainResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置 Request 合法域名列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("requestdomain")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("requestdomain")]
|
||||
public string[]? RequestDomainList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 Socket 合法域名列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wsrequestdomain")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wsrequestdomain")]
|
||||
public string[]? WebSocketDomainList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 UploadFile 合法域名列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("uploaddomain")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("uploaddomain")]
|
||||
public string[]? UploadDomainList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 DownloadFile 合法域名列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("downloaddomain")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("downloaddomain")]
|
||||
public string[]? DownloadDomainList { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 UDP 合法域名列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("udpdomain")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("udpdomain")]
|
||||
public string[]? UdpDomainList { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/setnickname 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaSetNicknameRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置小程序昵称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("nick_name")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("nick_name")]
|
||||
public string Nickname { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置身份证照片的 MediaId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("id_card")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("id_card")]
|
||||
public string? IdCardPictureMediaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置组织机构代码证或营业执照照片的 MediaId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("license")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("license")]
|
||||
public string? LicensePictureMediaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置其他证明材料的 MediaId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("naming_other_stuff_1")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("naming_other_stuff_1")]
|
||||
public string? OtherStuff1MediaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置其他证明材料的 MediaId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("naming_other_stuff_2")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("naming_other_stuff_2")]
|
||||
public string? OtherStuff2MediaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置其他证明材料的 MediaId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("naming_other_stuff_3")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("naming_other_stuff_3")]
|
||||
public string? OtherStuff3MediaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置其他证明材料的 MediaId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("naming_other_stuff_4")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("naming_other_stuff_4")]
|
||||
public string? OtherStuff4MediaId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置其他证明材料的 MediaId。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("naming_other_stuff_5")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("naming_other_stuff_5")]
|
||||
public string? OtherStuff5MediaId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/setnickname 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaSetNicknameResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置审核单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("audit_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("audit_id")]
|
||||
public int? AuditId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置材料说明。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("wording")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("wording")]
|
||||
public string? Wording { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/setwebviewdomain 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaSetWebviewDomainRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置操作类型。
|
||||
/// <para>默认值:get</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("action")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("action")]
|
||||
public string Action { get; set; } = "get";
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置业务域名列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("webviewdomain")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("webviewdomain")]
|
||||
public IList<string>? WebviewDomainList { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/setwebviewdomain 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaSetWebviewDomainResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置业务域名列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("webviewdomain")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("webviewdomain")]
|
||||
public string[]? WebviewDomainList { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /wxa/get_category 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaGetCategoryRequest : WechatApiRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /wxa/get_category 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaGetCategoryResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Category
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置一级类目 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("first_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("first_id")]
|
||||
public int FirstCategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置一级类目名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("first_class")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("first_class")]
|
||||
public string FirstCategoryName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置二级类目 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("second_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("second_id")]
|
||||
public int SecondCategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置二级类目名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("second_class")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("second_class")]
|
||||
public string SecondCategoryName { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置三级类目 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("third_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("third_id")]
|
||||
public int? ThirdCategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置三级类目名称。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("third_class")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("third_class")]
|
||||
public string? ThirdCategoryName { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置类目列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("category_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("category_list")]
|
||||
public Types.Category[] CategoryList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/change_visitstatus 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaChangeVisitStatusRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置操作类型。
|
||||
/// <para>默认值:open</para>
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("action")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("action")]
|
||||
public string Action { get; set; } = "open";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/change_visitstatus 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaChangeVisitStatusResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/commit 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaCommitRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置代码模板 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("template_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("template_id")]
|
||||
public string TemplateId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置 JSON 格式的扩展参数。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ext_json")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ext_json")]
|
||||
public string JsonExtra { get; set; } = "{}";
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户自定义版本号。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_version")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_version")]
|
||||
public string UserVersion { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置用户自定义版本描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("user_desc")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("user_desc")]
|
||||
public string UserDescription { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/commit 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaCommitResponse : WechatApiResponse
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/get_auditstatus 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaGetAuditStatusRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置审核单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("auditid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("auditid")]
|
||||
public int AuditId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/get_auditstatus 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaGetAuditStatusResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置审核状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核失败原因。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("reason")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("reason")]
|
||||
public string? FailReason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置截图 MediaId 列表,使用竖线分隔。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("screenshot")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("screenshot")]
|
||||
public string? ScreenshotMediaIds { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /wxa/getgrayreleaseplan 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaGetGrayReleasePlanRequest : WechatApiRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /wxa/getgrayreleaseplan 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaGetGrayReleasePlanResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class GrayRelease
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置发布状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置当前灰度百分比。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("gray_percentage")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("gray_percentage")]
|
||||
public int GrayPercentage { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置创建时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("create_timestamp")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("create_timestamp")]
|
||||
public long CreateTimestamp { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置分阶段发布计划信息。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("gray_release_plan")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("gray_release_plan")]
|
||||
public Types.GrayRelease GrayRelease { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /wxa/get_latest_auditstatus 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaGetLatestAuditStatusRequest : WechatApiRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /wxa/get_latest_auditstatus 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaGetLatestAuditStatusResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置审核单 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("auditid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("auditid")]
|
||||
public int AuditId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核状态。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("status")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status")]
|
||||
public int Status { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置审核失败原因。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("reason")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("reason")]
|
||||
public string? FailReason { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置截图 MediaId 列表,使用竖线分隔。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("ScreenShot")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("ScreenShot")]
|
||||
public string? ScreenshotMediaIds { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /wxa/get_page 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaGetPageRequest : WechatApiRequest
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /wxa/get_page 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaGetPageResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置页面列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("page_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("page_list")]
|
||||
public string[] PageList { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /wxa/get_qrcode 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaGetQrcodeRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置页面路径。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonIgnore]
|
||||
[System.Text.Json.Serialization.JsonIgnore]
|
||||
public string? PagePath { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [GET] /wxa/get_qrcode 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class WxaGetQrcodeResponse : WechatApiResponse
|
||||
{
|
||||
public override bool IsSuccessful()
|
||||
{
|
||||
return base.IsSuccessful() && RawBytes?.Length > 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /wxa/grayrelease 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class WxaGrayReleaseRequest : WechatApiRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置灰度百分比(范围:1~100)。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("gray_percentage")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("gray_percentage")]
|
||||
public int GrayPercentage { get; set; }
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user