mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2026-02-14 20:16:20 +08:00
feat(work): 新增获取带参的应用二维码相关接口
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/service/get_app_qrcode 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class CgibinServiceGetAppQrcodeRequest : WechatWorkRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置第三方应用 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("appid")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("appid")]
|
||||
public string? AppId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置安装渠道。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("state")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("state")]
|
||||
public string? State { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置二维码样式选项。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("style")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("style")]
|
||||
public int? Style { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置结果返回方式。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("result_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("result_type")]
|
||||
public int? ResultType { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /cgi-bin/service/get_app_qrcode 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class CgibinServiceGetAppQrcodeResponse : WechatWorkResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置二维码 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("qrcode")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("qrcode")]
|
||||
public string? QrcodeUrl { get; set; }
|
||||
|
||||
public override bool IsSuccessful()
|
||||
{
|
||||
return base.IsSuccessful() && RawBytes?.Length > 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user