feat(wxapi): 随官方更新短剧小程序剧目相关接口模型

This commit is contained in:
Fu Diwei
2024-11-05 19:06:11 +08:00
parent 60d80194ff
commit a55b20a8bd
46 changed files with 751 additions and 74 deletions

View File

@@ -0,0 +1,77 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
{
/// <summary>
/// <para>表示 EVENT.secvod_audit_event 事件的数据。</para>
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_7-2-%E5%AE%A1%E6%A0%B8%E7%8A%B6%E6%80%81%E4%BA%8B%E4%BB%B6 </para>
/// </summary>
public class SecVodAuditEvent : WechatApiEvent
{
public static class Types
{
public class EventData
{
public static class Types
{
public class AuditDetail
{
/// <summary>
/// 获取或设置审核类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("audit_type")]
[System.Text.Json.Serialization.JsonPropertyName("audit_type")]
[System.Xml.Serialization.XmlElement("audit_type")]
public int AuditType { get; set; }
/// <summary>
/// 获取或设置审核状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
[System.Xml.Serialization.XmlElement("status")]
public int Status { get; set; }
/// <summary>
/// 获取或设置提审时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("create_time")]
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
[System.Xml.Serialization.XmlElement("create_time")]
public long CreateTimestamp { get; set; }
/// <summary>
/// 获取或设置审核时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("audit_time")]
[System.Text.Json.Serialization.JsonPropertyName("audit_time")]
[System.Xml.Serialization.XmlElement("audit_time")]
public long? AuditTimestamp { get; set; }
}
}
/// <summary>
/// 获取或设置剧目 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("drama_id")]
[System.Text.Json.Serialization.JsonPropertyName("drama_id")]
[System.Xml.Serialization.XmlElement("drama_id")]
public string DramaId { get; set; } = default!;
/// <summary>
/// 获取或设置审核信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("audit_detail")]
[System.Text.Json.Serialization.JsonPropertyName("audit_detail")]
[System.Xml.Serialization.XmlElement("audit_detail")]
public Types.AuditDetail AuditDetail { get; set; } = default!;
}
}
/// <summary>
/// 获取或设置事件信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("audit_event")]
[System.Text.Json.Serialization.JsonPropertyName("audit_event")]
[System.Xml.Serialization.XmlElement("audit_event")]
public Types.EventData EventData { get; set; } = default!;
}
}

View File

@@ -0,0 +1,55 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Events
{
/// <summary>
/// <para>表示 EVENT.secvod_upload_event 事件的数据。</para>
/// <para>REF: https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_7-1-%E5%AA%92%E8%B5%84%E4%B8%8A%E4%BC%A0%E5%AE%8C%E6%88%90%E4%BA%8B%E4%BB%B6%20SecVod </para>
/// </summary>
public class SecVodUploadEvent : WechatApiEvent
{
public static class Types
{
public class EventData
{
/// <summary>
/// 获取或设置 MediaId。
/// </summary>
[Newtonsoft.Json.JsonProperty("media_id")]
[System.Text.Json.Serialization.JsonPropertyName("media_id")]
[System.Xml.Serialization.XmlElement("media_id")]
public string MediaId { get; set; } = default!;
/// <summary>
/// 获取或设置来源上下文。
/// </summary>
[Newtonsoft.Json.JsonProperty("source_context")]
[System.Text.Json.Serialization.JsonPropertyName("source_context")]
[System.Xml.Serialization.XmlElement("source_context")]
public string SourceContext { get; set; } = default!;
/// <summary>
/// 获取或设置错误码。
/// </summary>
[Newtonsoft.Json.JsonProperty("errcode")]
[System.Text.Json.Serialization.JsonPropertyName("errcode")]
[System.Xml.Serialization.XmlElement("errcode")]
public int ErrorCode { get; set; }
/// <summary>
/// 获取或设置错误信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("errmsg")]
[System.Text.Json.Serialization.JsonPropertyName("errmsg")]
[System.Xml.Serialization.XmlElement("errmsg", IsNullable = true)]
public string? ErrorMessage { get; set; }
}
}
/// <summary>
/// 获取或设置事件信息。
/// </summary>
[Newtonsoft.Json.JsonProperty("upload_event")]
[System.Text.Json.Serialization.JsonPropertyName("upload_event")]
[System.Xml.Serialization.XmlElement("upload_event")]
public Types.EventData EventData { get; set; } = default!;
}
}

View File

@@ -320,7 +320,99 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
#endregion
#region Vod
#region Vod/App
#region Vod/Authorize
/// <summary>
/// <para>异步调用 [POST] /wxa/sec/vod/authorizedrama 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_5-1-%E5%A2%9E%E5%8A%A0%E5%89%A7%E7%9B%AE%E6%8E%88%E6%9D%83 ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.WxaSecVodAuthorizeDramaResponse> ExecuteWxaSecVodAuthorizeDramaAsync(this WechatApiClient client, Models.WxaSecVodAuthorizeDramaRequest 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
.CreateFlurlRequest(request, HttpMethod.Post, "wxa", "sec", "vod", "authorizedrama")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.WxaSecVodAuthorizeDramaResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /wxa/sec/vod/deauthorizedrama 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_5-2-%E8%A7%A3%E9%99%A4%E5%89%A7%E7%9B%AE%E6%8E%88%E6%9D%83 ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.WxaSecVodDeauthorizeDramaResponse> ExecuteWxaSecVodDeauthorizeDramaAsync(this WechatApiClient client, Models.WxaSecVodDeauthorizeDramaRequest 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
.CreateFlurlRequest(request, HttpMethod.Post, "wxa", "sec", "vod", "deauthorizedrama")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.WxaSecVodDeauthorizeDramaResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /wxa/sec/vod/getauthorizeobjects 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_5-3-%E6%9F%A5%E8%AF%A2%E6%8E%88%E6%9D%83%E4%BF%A1%E6%81%AF ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.WxaSecVodGetAuthorizeObjectsResponse> ExecuteWxaSecVodGetAuthorizeObjectsAsync(this WechatApiClient client, Models.WxaSecVodGetAuthorizeObjectsRequest 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
.CreateFlurlRequest(request, HttpMethod.Post, "wxa", "sec", "vod", "getauthorizeobjects")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.WxaSecVodGetAuthorizeObjectsResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /wxa/sec/vod/getauthorizedobjects 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_5-4-%E6%9F%A5%E8%AF%A2%E8%A2%AB%E6%8E%88%E6%9D%83%E4%BF%A1%E6%81%AF ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.WxaSecVodGetAuthorizedObjectsResponse> ExecuteWxaSecVodGetAuthorizedObjectsAsync(this WechatApiClient client, Models.WxaSecVodGetAuthorizedObjectsRequest 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
.CreateFlurlRequest(request, HttpMethod.Post, "wxa", "sec", "vod", "getauthorizedobjects")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.WxaSecVodGetAuthorizedObjectsResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /wxa/sec/vod/authorizeapp 接口。</para>
/// <para>
@@ -773,95 +865,49 @@ namespace SKIT.FlurlHttpClient.Wechat.Api
}
/// <summary>
/// <para>异步调用 [POST] /wxa/sec/vod/authorizedrama 接口。</para>
/// <para>异步调用 [POST] /wxa/sec/vod/modifydramabasicinfo 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_5-1-%E5%A2%9E%E5%8A%A0%E5%89%A7%E7%9B%AE%E6%8E%88%E6%9D%83 ]]>
/// <![CDATA[ https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_3-6-%E4%BF%AE%E6%94%B9%E5%89%A7%E7%9B%AE%E5%9F%BA%E6%9C%AC%E4%BF%A1%E6%81%AF ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.WxaSecVodAuthorizeDramaResponse> ExecuteWxaSecVodAuthorizeDramaAsync(this WechatApiClient client, Models.WxaSecVodAuthorizeDramaRequest request, CancellationToken cancellationToken = default)
public static async Task<Models.WxaSecVodModifyDramaBasicInfoResponse> ExecuteWxaSecVodModifyDramaBasicInfoAsync(this WechatApiClient client, Models.WxaSecVodModifyDramaBasicInfoRequest 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
.CreateFlurlRequest(request, HttpMethod.Post, "wxa", "sec", "vod", "authorizedrama")
.CreateFlurlRequest(request, HttpMethod.Post, "wxa", "sec", "vod", "modifydramabasicinfo")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.WxaSecVodAuthorizeDramaResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
return await client.SendFlurlRequestAsJsonAsync<Models.WxaSecVodModifyDramaBasicInfoResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /wxa/sec/vod/deauthorizedrama 接口。</para>
/// <para>异步调用 [POST] /wxa/sec/vod/getdramalatestauditinfo 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_5-2-%E8%A7%A3%E9%99%A4%E5%89%A7%E7%9B%AE%E6%8E%88%E6%9D%83 ]]>
/// <![CDATA[ https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_3-7-%E6%9F%A5%E8%AF%A2%E5%89%A7%E7%9B%AE%E5%AE%A1%E6%A0%B8%E4%BF%A1%E6%81%AF ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.WxaSecVodDeauthorizeDramaResponse> ExecuteWxaSecVodDeauthorizeDramaAsync(this WechatApiClient client, Models.WxaSecVodDeauthorizeDramaRequest request, CancellationToken cancellationToken = default)
public static async Task<Models.WxaSecVodGetDramaLatestAuditInfoResponse> ExecuteWxaSecVodGetDramaLatestAuditInfoAsync(this WechatApiClient client, Models.WxaSecVodGetDramaLatestAuditInfoRequest 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
.CreateFlurlRequest(request, HttpMethod.Post, "wxa", "sec", "vod", "deauthorizedrama")
.CreateFlurlRequest(request, HttpMethod.Post, "wxa", "sec", "vod", "getdramalatestauditinfo")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.WxaSecVodDeauthorizeDramaResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /wxa/sec/vod/getauthorizeobjects 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_5-3-%E6%9F%A5%E8%AF%A2%E6%8E%88%E6%9D%83%E4%BF%A1%E6%81%AF ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.WxaSecVodGetAuthorizeObjectsResponse> ExecuteWxaSecVodGetAuthorizeObjectsAsync(this WechatApiClient client, Models.WxaSecVodGetAuthorizeObjectsRequest 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
.CreateFlurlRequest(request, HttpMethod.Post, "wxa", "sec", "vod", "getauthorizeobjects")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.WxaSecVodGetAuthorizeObjectsResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// <para>异步调用 [POST] /wxa/sec/vod/getauthorizedobjects 接口。</para>
/// <para>
/// REF: <br/>
/// <![CDATA[ https://developers.weixin.qq.com/miniprogram/dev/platform-capabilities/industry/mini-drama/mini_drama.html#_5-4-%E6%9F%A5%E8%AF%A2%E8%A2%AB%E6%8E%88%E6%9D%83%E4%BF%A1%E6%81%AF ]]>
/// </para>
/// </summary>
/// <param name="client"></param>
/// <param name="request"></param>
/// <param name="cancellationToken"></param>
/// <returns></returns>
public static async Task<Models.WxaSecVodGetAuthorizedObjectsResponse> ExecuteWxaSecVodGetAuthorizedObjectsAsync(this WechatApiClient client, Models.WxaSecVodGetAuthorizedObjectsRequest 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
.CreateFlurlRequest(request, HttpMethod.Post, "wxa", "sec", "vod", "getauthorizedobjects")
.SetQueryParam("access_token", request.AccessToken);
return await client.SendFlurlRequestAsJsonAsync<Models.WxaSecVodGetAuthorizedObjectsResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
return await client.SendFlurlRequestAsJsonAsync<Models.WxaSecVodGetDramaLatestAuditInfoResponse>(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false);
}
#endregion
#endregion

View File

@@ -25,6 +25,47 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("new")]
public long NewMediaId { get; set; }
}
public class ActorList
{
/// <summary>
/// 获取或设置演员列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("actor")]
[System.Text.Json.Serialization.JsonPropertyName("actor")]
public IList<ActorItem> Items { get; set; } = new List<ActorItem>();
}
public class ActorItem
{
/// <summary>
/// 获取或设置演员姓名。
/// </summary>
[Newtonsoft.Json.JsonProperty("name")]
[System.Text.Json.Serialization.JsonPropertyName("name")]
public string Name { get; set; } = string.Empty;
/// <summary>
/// 获取或设置演员照片 MediaId。
/// </summary>
[Newtonsoft.Json.JsonProperty("photo_material_id")]
[System.Text.Json.Serialization.JsonPropertyName("photo_material_id")]
public string PhotoMediaId { get; set; } = string.Empty;
/// <summary>
/// 获取或设置饰演角色。
/// </summary>
[Newtonsoft.Json.JsonProperty("role")]
[System.Text.Json.Serialization.JsonPropertyName("role")]
public string Role { get; set; } = string.Empty;
/// <summary>
/// 获取或设置演员简介。
/// </summary>
[Newtonsoft.Json.JsonProperty("profile")]
[System.Text.Json.Serialization.JsonPropertyName("profile")]
public string Profile { get; set; } = string.Empty;
}
}
/// <summary>
@@ -62,6 +103,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("media_id_list")]
public IList<long>? MediaIdList { get; set; }
/// <summary>
/// 获取或设置剧目推荐语。
/// </summary>
[Newtonsoft.Json.JsonProperty("recommendations")]
[System.Text.Json.Serialization.JsonPropertyName("recommendations")]
public string? Recommendations { get; set; }
/// <summary>
/// 获取或设置制作方。
/// </summary>
@@ -76,6 +124,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("playwright")]
public string? Playwright { get; set; }
/// <summary>
/// 获取或设置演员列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("actor_list")]
[System.Text.Json.Serialization.JsonPropertyName("actor_list")]
public Types.ActorList? ActorList { get; set; }
/// <summary>
/// 获取或设置封面图片 MediaId。
/// </summary>
@@ -84,11 +139,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public string? CoverMaterialMediaId { get; set; }
/// <summary>
/// 获取或设置广播电视节目制作经营许可证 MediaId。
/// 获取或设置推广海报 MediaId。
/// </summary>
[Newtonsoft.Json.JsonProperty("production_license_material_id")]
[System.Text.Json.Serialization.JsonPropertyName("production_license_material_id")]
public string? ProductionLicenseMaterialMediaId { get; set; }
[Newtonsoft.Json.JsonProperty("promotion_poster_material_id")]
[System.Text.Json.Serialization.JsonPropertyName("promotion_poster_material_id")]
public string? PromotionPosterMaterialMediaId { get; set; }
/// <summary>
/// 获取或设置剧目播放授权材料 MediaId。
@@ -97,6 +152,34 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("authorized_material_id")]
public string? AuthorizationMaterialMediaId { get; set; }
/// <summary>
/// 获取或设置剧目资质类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("qualification_type")]
[System.Text.Json.Serialization.JsonPropertyName("qualification_type")]
public int? QualificationType { get; set; }
/// <summary>
/// 获取或设置剧目资质证明文件 MediaId。
/// </summary>
[Newtonsoft.Json.JsonProperty("qualification_certificate_material_id")]
[System.Text.Json.Serialization.JsonPropertyName("qualification_certificate_material_id")]
public string? QualificationCertificateMaterialMediaId { get; set; }
/// <summary>
/// 获取或设置成本配置比例情况报告 MediaId。
/// </summary>
[Newtonsoft.Json.JsonProperty("cost_commitment_letter_material_id")]
[System.Text.Json.Serialization.JsonPropertyName("cost_commitment_letter_material_id")]
public string? CostCommitmentLetterMaterialMediaId { get; set; }
/// <summary>
/// 获取或设置剧目制作成本(单位:万元)。
/// </summary>
[Newtonsoft.Json.JsonProperty("cost_of_production")]
[System.Text.Json.Serialization.JsonPropertyName("cost_of_production")]
public int? CostOfProduction { get; set; }
/// <summary>
/// 获取或设置剧目备案号。
/// </summary>
@@ -104,6 +187,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("registration_number")]
public string? RegistrationNumber { get; set; }
/// <summary>
/// 获取或设置广播电视节目制作经营许可证编号。
/// </summary>
[Newtonsoft.Json.JsonProperty("production_license")]
[System.Text.Json.Serialization.JsonPropertyName("production_license")]
public string? ProductionLicenseNumber { get; set; }
/// <summary>
/// 获取或设置网络剧片发行许可证编号。
/// </summary>
@@ -112,11 +202,11 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public string? PublishLicenseNumber { get; set; }
/// <summary>
/// 获取或设置网络剧片发行许可证图片 MediaId。
/// 获取或设置其他材料 MediaId。
/// </summary>
[Newtonsoft.Json.JsonProperty("publish_license_material_id")]
[System.Text.Json.Serialization.JsonPropertyName("publish_license_material_id")]
public string? PublishLicenseMaterialMediaId { get; set; }
[Newtonsoft.Json.JsonProperty("other_material_material_id")]
[System.Text.Json.Serialization.JsonPropertyName("other_material_material_id")]
public string? OtherMaterialMediaId { get; set; }
/// <summary>
/// 获取或设置是否加急审核。

View File

@@ -0,0 +1,22 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /wxa/sec/vod/getdramalatestauditinfo 接口的请求。</para>
/// </summary>
public class WxaSecVodGetDramaLatestAuditInfoRequest : WechatApiRequest, IInferable<WxaSecVodGetDramaLatestAuditInfoRequest, WxaSecVodGetDramaLatestAuditInfoResponse>
{
/// <summary>
/// 获取或设置剧目 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("drama_id")]
[System.Text.Json.Serialization.JsonPropertyName("drama_id")]
public long DramaId { get; set; }
/// <summary>
/// 获取或设置审核类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("audit_type")]
[System.Text.Json.Serialization.JsonPropertyName("audit_type")]
public int AuditType { get; set; }
}
}

View File

@@ -0,0 +1,42 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /wxa/sec/vod/getdramalatestauditinfo 接口的响应。</para>
/// </summary>
public class WxaSecVodGetDramaLatestAuditInfoResponse : WechatApiResponse
{
public static class Types
{
public class AuditDetail
{
/// <summary>
/// 获取或设置审核状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public int Status { get; set; }
/// <summary>
/// 获取或设置提审时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("create_time")]
[System.Text.Json.Serialization.JsonPropertyName("create_time")]
public long CreateTimestamp { 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("audit_detail")]
[System.Text.Json.Serialization.JsonPropertyName("audit_detail")]
public Types.AuditDetail AuditDetail { get; set; } = default!;
}
}

View File

@@ -18,6 +18,20 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public class AuditDetail : WxaSecVodListDramasResponse.Types.DramaInfo.Types.AuditDetail
{
}
public class ActorList : WxaSecVodListDramasResponse.Types.DramaInfo.Types.ActorList
{
/// <summary>
/// 获取或设置演员列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("actor")]
[System.Text.Json.Serialization.JsonPropertyName("actor")]
public new ActorItem[] Items { get; set; } = default!;
}
public class ActorItem : WxaSecVodListDramasResponse.Types.DramaInfo.Types.ActorItem
{
}
}
/// <summary>
@@ -27,6 +41,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("media_list")]
public new Types.Media[] MediaList { get; set; } = default!;
/// <summary>
/// 获取或设置演员列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("actor_list")]
[System.Text.Json.Serialization.JsonPropertyName("actor_list")]
public new Types.ActorList? ActorList { get; set; }
/// <summary>
/// 获取或设置审核详细信息。
/// </summary>

View File

@@ -45,6 +45,47 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("audit_time")]
public long? AuditTimestamp { get; set; }
}
public class ActorList
{
/// <summary>
/// 获取或设置演员列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("actor")]
[System.Text.Json.Serialization.JsonPropertyName("actor")]
public ActorItem[] Items { get; set; } = default!;
}
public class ActorItem
{
/// <summary>
/// 获取或设置演员姓名。
/// </summary>
[Newtonsoft.Json.JsonProperty("name")]
[System.Text.Json.Serialization.JsonPropertyName("name")]
public string Name { get; set; } = default!;
/// <summary>
/// 获取或设置演员照片 MediaId。
/// </summary>
[Newtonsoft.Json.JsonProperty("photo_material_id")]
[System.Text.Json.Serialization.JsonPropertyName("photo_material_id")]
public string PhotoMediaId { get; set; } = default!;
/// <summary>
/// 获取或设置饰演角色。
/// </summary>
[Newtonsoft.Json.JsonProperty("role")]
[System.Text.Json.Serialization.JsonPropertyName("role")]
public string Role { get; set; } = default!;
/// <summary>
/// 获取或设置演员简介。
/// </summary>
[Newtonsoft.Json.JsonProperty("profile")]
[System.Text.Json.Serialization.JsonPropertyName("profile")]
public string Profile { get; set; } = default!;
}
}
/// <summary>
@@ -83,6 +124,13 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("media_list")]
public Types.Media[] MediaList { get; set; } = default!;
/// <summary>
/// 获取或设置剧目状态。
/// </summary>
[Newtonsoft.Json.JsonProperty("status")]
[System.Text.Json.Serialization.JsonPropertyName("status")]
public int Status { get; set; }
/// <summary>
/// 获取或设置创建时间戳。
/// </summary>
@@ -97,6 +145,20 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
[System.Text.Json.Serialization.JsonPropertyName("cover_url")]
public string? CoverUrl { get; set; }
/// <summary>
/// 获取或设置推广海报临时链接。
/// </summary>
[Newtonsoft.Json.JsonProperty("promotion_poster")]
[System.Text.Json.Serialization.JsonPropertyName("promotion_poster")]
public string? PromotionPosterUrl { get; set; }
/// <summary>
/// 获取或设置剧目推荐语。
/// </summary>
[Newtonsoft.Json.JsonProperty("recommendations")]
[System.Text.Json.Serialization.JsonPropertyName("recommendations")]
public string? Recommendations { get; set; }
/// <summary>
/// 获取或设置制作方。
/// </summary>
@@ -112,11 +174,18 @@ namespace SKIT.FlurlHttpClient.Wechat.Api.Models
public string? Playwright { get; set; }
/// <summary>
/// 获取或设置广播电视节目制作经营许可证 MediaId
/// 获取或设置演员列表
/// </summary>
[Newtonsoft.Json.JsonProperty("actor_list")]
[System.Text.Json.Serialization.JsonPropertyName("actor_list")]
public Types.ActorList? ActorList { get; set; }
/// <summary>
/// 获取或设置广播电视节目制作经营许可证编号。
/// </summary>
[Newtonsoft.Json.JsonProperty("production_license")]
[System.Text.Json.Serialization.JsonPropertyName("production_license")]
public string? ProductionLicenseMaterialMediaId { get; set; }
public string? ProductionLicenseNumber { get; set; }
/// <summary>
/// 获取或设置审核详细信息。

View File

@@ -0,0 +1,139 @@
using System.Collections.Generic;
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /wxa/sec/vod/modifydramabasicinfo 接口的请求。</para>
/// </summary>
public class WxaSecVodModifyDramaBasicInfoRequest : WechatApiRequest, IInferable<WxaSecVodModifyDramaBasicInfoRequest, WxaSecVodModifyDramaBasicInfoResponse>
{
public static class Types
{
public class ActorList
{
/// <summary>
/// 获取或设置演员列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("actor")]
[System.Text.Json.Serialization.JsonPropertyName("actor")]
public IList<ActorItem> Items { get; set; } = new List<ActorItem>();
}
public class ActorItem : WxaSecVodAuditDramaRequest.Types.ActorItem
{
}
}
/// <summary>
/// 获取或设置剧目 ID。
/// </summary>
[Newtonsoft.Json.JsonProperty("drama_id")]
[System.Text.Json.Serialization.JsonPropertyName("drama_id")]
public long DramaId { get; set; }
/// <summary>
/// 获取或设置备用剧名。
/// </summary>
[Newtonsoft.Json.JsonProperty("alternate_name")]
[System.Text.Json.Serialization.JsonPropertyName("alternate_name")]
public string? AlternateName { get; set; }
/// <summary>
/// 获取或设置描述。
/// </summary>
[Newtonsoft.Json.JsonProperty("description")]
[System.Text.Json.Serialization.JsonPropertyName("description")]
public string? Description { get; set; }
/// <summary>
/// 获取或设置剧目推荐语。
/// </summary>
[Newtonsoft.Json.JsonProperty("recommendations")]
[System.Text.Json.Serialization.JsonPropertyName("recommendations")]
public string? Recommendations { get; set; }
/// <summary>
/// 获取或设置演员列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("actor_list")]
[System.Text.Json.Serialization.JsonPropertyName("actor_list")]
public Types.ActorList? ActorList { get; set; }
/// <summary>
/// 获取或设置封面图片 MediaId。
/// </summary>
[Newtonsoft.Json.JsonProperty("cover_material_id")]
[System.Text.Json.Serialization.JsonPropertyName("cover_material_id")]
public string? CoverMaterialMediaId { get; set; }
/// <summary>
/// 获取或设置推广海报 MediaId。
/// </summary>
[Newtonsoft.Json.JsonProperty("promotion_poster_material_id")]
[System.Text.Json.Serialization.JsonPropertyName("promotion_poster_material_id")]
public string? PromotionPosterMaterialMediaId { get; set; }
/// <summary>
/// 获取或设置剧目播放授权材料 MediaId。
/// </summary>
[Newtonsoft.Json.JsonProperty("authorized_material_id")]
[System.Text.Json.Serialization.JsonPropertyName("authorized_material_id")]
public string? AuthorizationMaterialMediaId { get; set; }
/// <summary>
/// 获取或设置剧目资质类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("qualification_type")]
[System.Text.Json.Serialization.JsonPropertyName("qualification_type")]
public int? QualificationType { get; set; }
/// <summary>
/// 获取或设置剧目资质证明文件 MediaId。
/// </summary>
[Newtonsoft.Json.JsonProperty("qualification_certificate_material_id")]
[System.Text.Json.Serialization.JsonPropertyName("qualification_certificate_material_id")]
public string? QualificationCertificateMaterialMediaId { get; set; }
/// <summary>
/// 获取或设置成本配置比例情况报告 MediaId。
/// </summary>
[Newtonsoft.Json.JsonProperty("cost_commitment_letter_material_id")]
[System.Text.Json.Serialization.JsonPropertyName("cost_commitment_letter_material_id")]
public string? CostCommitmentLetterMaterialMediaId { get; set; }
/// <summary>
/// 获取或设置剧目制作成本(单位:万元)。
/// </summary>
[Newtonsoft.Json.JsonProperty("cost_of_production")]
[System.Text.Json.Serialization.JsonPropertyName("cost_of_production")]
public int? CostOfProduction { get; set; }
/// <summary>
/// 获取或设置剧目备案号。
/// </summary>
[Newtonsoft.Json.JsonProperty("registration_number")]
[System.Text.Json.Serialization.JsonPropertyName("registration_number")]
public string? RegistrationNumber { get; set; }
/// <summary>
/// 获取或设置广播电视节目制作经营许可证编号。
/// </summary>
[Newtonsoft.Json.JsonProperty("production_license")]
[System.Text.Json.Serialization.JsonPropertyName("production_license")]
public string? ProductionLicenseNumber { get; set; }
/// <summary>
/// 获取或设置网络剧片发行许可证编号。
/// </summary>
[Newtonsoft.Json.JsonProperty("publish_license")]
[System.Text.Json.Serialization.JsonPropertyName("publish_license")]
public string? PublishLicenseNumber { get; set; }
/// <summary>
/// 获取或设置其他材料 MediaId。
/// </summary>
[Newtonsoft.Json.JsonProperty("other_material_material_id")]
[System.Text.Json.Serialization.JsonPropertyName("other_material_material_id")]
public string? OtherMaterialMediaId { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace SKIT.FlurlHttpClient.Wechat.Api.Models
{
/// <summary>
/// <para>表示 [POST] /wxa/sec/vod/modifydramabasicinfo 接口的响应。</para>
/// </summary>
public class WxaSecVodModifyDramaBasicInfoResponse : WechatApiResponse
{
}
}

View File

@@ -0,0 +1,16 @@
<xml>
<ToUserName>gh_abcdefg</ToUserName>
<FromUserName>oABCD</FromUserName>
<CreateTime>12344555555</CreateTime>
<MsgType>event</MsgType>
<Event>secvod_audit_event</Event>
<audit_event>
<drama_id>20001</drama_id>
<audit_detail>
<status>3</status>
<audit_type>0</audit_type>
<create_time>168625255</create_time>
<audit_time>168626255</audit_time>
</audit_detail>
</audit_event>
</xml>

View File

@@ -0,0 +1,13 @@
<xml>
<ToUserName>gh_abcdefg</ToUserName>
<FromUserName>oABCD</FromUserName>
<CreateTime>12344555555</CreateTime>
<MsgType>event</MsgType>
<Event>secvod_upload_event</Event>
<upload_event>
<media_id>20001</media_id>
<source_context>abc12232</source_context>
<errcode>0</errcode>
<errmsg>OK</errmsg>
</upload_event>
</xml>

View File

@@ -3,12 +3,29 @@
"media_count": 2,
"media_id_list": [ 20001, 20002 ],
"producer": "制作方名",
"playwright": "编剧名",
"description": "很有意思的一部剧",
"cover_material_id": "1223",
"production_license_material_id": "12233",
"cover_material_id": "xxxxxxxxxx",
"registration_number": "012345678901234",
"authorized_material_id": "122344",
"other_material_material_id": "122355",
"recommendations": "这是这部剧的推荐语。",
"actor_list": {
"actor": [
{
"name": "演员1",
"photo_material_id": "xxxxxxxx",
"role": "角色1",
"profile": "简介"
},
{
"name": "演员2",
"photo_material_id": "xxxxxxxx",
"role": "角色2",
"profile": "简介"
}
]
},
"drama_id": 10001,
"replace_media_list": [
{
"old": 20001,

View File

@@ -0,0 +1,4 @@
{
"drama_id": 10001,
"audit_type": 0
}

View File

@@ -0,0 +1,9 @@
{
"errcode": 0,
"errmsg": "ok",
"audit_detail": {
"status": 3,
"create_time": 1682215878,
"audit_time": 1682235878
}
}

View File

@@ -10,6 +10,10 @@
"production_license": "abd123",
"cover_url": "https://developers.weixin.qq.com/test.jpg",
"media_count": 2,
"recommendations": "这是这部剧的推荐语。",
"description": "剧目的简介。",
"promotion_poster": "xxxxxxxxx",
"status": 0,
"media_list": [
{ "media_id": 10001 },
{ "media_id": 10002 }
@@ -18,6 +22,22 @@
"status": 3,
"create_time": 1682215878,
"audit_time": 1682235878
},
"actor_list": {
"actor": [
{
"name": "演员1",
"photo_material_id": "xxxxxxxx",
"role": "角色1",
"profile": "简介"
},
{
"name": "演员2",
"photo_material_id": "xxxxxxxx",
"role": "角色2",
"profile": "简介"
}
]
}
}
}

View File

@@ -5,7 +5,7 @@
{
"drama_id": 28918028,
"create_time": 1682214878,
"name": "我的中国梦",
"name": "我的演艺",
"playwright": "编剧名",
"producer": "制作方名",
"production_license": "abd123",

View File

@@ -0,0 +1,28 @@
{
"drama_id": 10001,
"description": "新剧目简介",
"cover_material_id": "新剧目海报临时material_id",
"recommendations": "新剧目推荐语",
"promotion_poster_material_id": "新推广海报临时material_id",
"alternate_name": "备用剧名",
"actor_list": {
"actor": [
{
"name": "演员1",
"photo_material_id": "xxxxxxxx",
"role": "角色1",
"profile": "简介"
},
{
"name": "演员2",
"photo_material_id": "xxxxxxxx",
"role": "角色2",
"profile": "简介"
}
]
},
"qualification_type": 1,
"qualification_certificate_material_id": "xxxxxxxx",
"registration_number": "V123456788888888",
"other_material_material_id": "新其他材料临时material_id"
}