mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-09-24 04:53:46 +08:00
feat(wxapi): 新增视频号小店直播及预约相关接口
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/finderlive/getfinderlivenoticerecordlist 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ECFinderLiveGetFinderLiveNoticeRecordListRequest : WechatApiRequest, IInferable<ECFinderLiveGetFinderLiveNoticeRecordListRequest, ECFinderLiveGetFinderLiveNoticeRecordListResponse>
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,71 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/finderlive/getfinderlivenoticerecordlist 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ECFinderLiveGetFinderLiveNoticeRecordListResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Notice
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置直播预告 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("notice_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("notice_id")]
|
||||
public string NoticeId { 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("status_wording")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("status_wording")]
|
||||
public string StatusText { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置直播开始时间戳。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("start_time")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("start_time")]
|
||||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)]
|
||||
public long StartTimestamp { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置预约描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("description")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string Description { 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("head_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("head_url")]
|
||||
public string HeadImageUrl { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置直播预告列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("live_notice_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("live_notice_list")]
|
||||
public Types.Notice[] NoticeList { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/finderlive/getfinderliverecordlist 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ECFinderLiveGetFinderLiveRecordListRequest : WechatApiRequest, IInferable<ECFinderLiveGetFinderLiveRecordListRequest, ECFinderLiveGetFinderLiveRecordListResponse>
|
||||
{
|
||||
}
|
||||
}
|
@@ -0,0 +1,56 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/finderlive/getfinderliverecordlist 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ECFinderLiveGetFinderLiveRecordListResponse : WechatApiResponse
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Live
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置直播 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("export_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("export_id")]
|
||||
public string ExportId { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置直播描述。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("description")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("description")]
|
||||
public string Description { get; set; } = default!;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置直播封面 URL。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("cover_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("cover_url")]
|
||||
public string CoverUrl { 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("head_url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("head_url")]
|
||||
public string HeadImageUrl { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置直播列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("live_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("live_list")]
|
||||
public Types.Live[] LiveList { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/sharer/get_shop_finder_live_notice_sharer_url 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECSharerGetShopFinderLiveNoticeSharerUrlRequest : WechatApiRequest, IInferable<ChannelsECSharerGetShopFinderLiveNoticeSharerUrlRequest, ChannelsECSharerGetShopFinderLiveNoticeSharerUrlResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置直播预告 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("notice_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("notice_id")]
|
||||
public string NoticeId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频号 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("finder_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("finder_id")]
|
||||
public string FinderId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/sharer/get_shop_finder_live_notice_sharer_url 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECSharerGetShopFinderLiveNoticeSharerUrlResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分享链接。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("url")]
|
||||
public string Url { get; set; } = default!;
|
||||
}
|
||||
}
|
@@ -0,0 +1,22 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/sharer/get_shop_finder_live_sharer_url 接口的请求。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECSharerGetShopFinderLiveSharerUrlRequest : WechatApiRequest, IInferable<ChannelsECSharerGetShopFinderLiveSharerUrlRequest, ChannelsECSharerGetShopFinderLiveSharerUrlResponse>
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置直播 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("export_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("export_id")]
|
||||
public string ExportId { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置视频号 ID。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("finder_id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("finder_id")]
|
||||
public string FinderId { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@@ -0,0 +1,15 @@
|
||||
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>表示 [POST] /channels/ec/sharer/get_shop_finder_live_sharer_url 接口的响应。</para>
|
||||
/// </summary>
|
||||
public class ChannelsECSharerGetShopFinderLiveSharerUrlResponse : WechatApiResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置分享链接。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("url")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("url")]
|
||||
public string Url { get; set; } = default!;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user