From 0817eda58c92114cc4647aedb9ed9140e7727c81 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Mon, 27 May 2024 13:40:42 +0800 Subject: [PATCH] =?UTF-8?q?feat(microapp):=20=E6=96=B0=E5=A2=9E=E7=9F=AD?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E5=88=86=E6=9E=90=E3=80=81=E7=9B=B4=E6=92=AD?= =?UTF-8?q?=E5=88=86=E6=9E=90=E3=80=81=E5=B0=8F=E6=88=BF=E5=AD=90=E7=9B=B4?= =?UTF-8?q?=E6=92=AD=E5=88=86=E6=9E=90=E3=80=81=E7=95=99=E8=B5=84=E5=88=86?= =?UTF-8?q?=E6=9E=90=E7=AD=89=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ntExecutePlatformDataAnalysisExtensions.cs | 294 ++++++++++ ...AnalysisQueryComponentWithDataV2Request.cs | 61 ++ ...nalysisQueryComponentWithDataV2Response.cs | 42 ++ ...alysisQueryComponentWithDetailV2Request.cs | 61 ++ ...lysisQueryComponentWithDetailV2Response.cs | 253 ++++++++ ...ysisQueryComponentWithOverviewV2Request.cs | 31 + ...sisQueryComponentWithOverviewV2Response.cs | 128 +++++ ...alysisQueryComponentWithSourceV2Request.cs | 31 + ...lysisQueryComponentWithSourceV2Response.cs | 103 ++++ ...taAnalysisQueryLiveWithShortIdV2Request.cs | 54 ++ ...aAnalysisQueryLiveWithShortIdV2Response.cs | 148 +++++ ...nalysisQuerySmallHomeOrderDataV2Request.cs | 38 ++ ...alysisQuerySmallHomeOrderDataV2Response.cs | 138 +++++ ...ysisQuerySmallHomeOverviewDataV2Request.cs | 22 + ...sisQuerySmallHomeOverviewDataV2Response.cs | 166 ++++++ ...AnalysisQuerySmallHomeRoomDataV2Request.cs | 22 + ...nalysisQuerySmallHomeRoomDataV2Response.cs | 210 +++++++ ...ataAnalysisQueryVideoDealDataV2Response.cs | 4 +- ...alysisQueryShortLiveDataWithIdV2Request.cs | 89 +++ ...lysisQueryShortLiveDataWithIdV2Response.cs | 540 ++++++++++++++++++ ...sisQueryShortLiveIdWithAwemeIdV2Request.cs | 52 ++ ...isQueryShortLiveIdWithAwemeIdV2Response.cs | 66 +++ ...formDataAnalysisQueryVideoDataV2Request.cs | 59 ++ ...ormDataAnalysisQueryVideoDataV2Response.cs | 198 +++++++ ...taAnalysisQueryVideoWithSourceV2Request.cs | 38 ++ ...aAnalysisQueryVideoWithSourceV2Response.cs | 96 ++++ ...alysisQueryComponentWithDataV2Request.json | 7 + ...lysisQueryComponentWithDataV2Response.json | 70 +++ ...ysisQueryComponentWithDetailV2Request.json | 9 + ...sisQueryComponentWithDetailV2Response.json | 63 ++ ...isQueryComponentWithOverviewV2Request.json | 5 + ...sQueryComponentWithOverviewV2Response.json | 34 ++ ...ysisQueryComponentWithSourceV2Request.json | 5 + ...sisQueryComponentWithSourceV2Response.json | 45 ++ ...AnalysisQueryLiveWithShortIdV2Request.json | 8 + ...nalysisQueryLiveWithShortIdV2Response.json | 25 + ...ysisQuerySmallHomeOrderDataV2Response.json | 37 ++ ...sQuerySmallHomeOverviewDataV2Response.json | 26 + ...lysisQuerySmallHomeRoomDataV2Response.json | 49 ++ ...ysisQueryShortLiveDataWithIdV2Request.json | 11 + ...sisQueryShortLiveDataWithIdV2Response.json | 107 ++++ ...sQueryShortLiveIdWithAwemeIdV2Request.json | 8 + ...QueryShortLiveIdWithAwemeIdV2Response.json | 17 + ...rmDataAnalysisQueryVideoDataV2Request.json | 9 + ...mDataAnalysisQueryVideoDataV2Response.json | 68 +++ ...AnalysisQueryVideoWithSourceV2Request.json | 6 + ...nalysisQueryVideoWithSourceV2Response.json | 74 +++ 47 files changed, 3625 insertions(+), 2 deletions(-) create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDataV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDataV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDetailV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDetailV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithOverviewV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithOverviewV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithSourceV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithSourceV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Live/PlatformDataAnalysisQueryLiveWithShortIdV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Live/PlatformDataAnalysisQueryLiveWithShortIdV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOrderDataV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOrderDataV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOverviewDataV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOverviewDataV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeRoomDataV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeRoomDataV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveDataWithIdV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveDataWithIdV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveIdWithAwemeIdV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveIdWithAwemeIdV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoDataV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoDataV2Response.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoWithSourceV2Request.cs create mode 100644 src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoWithSourceV2Response.cs create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDataV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDataV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDetailV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDetailV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithOverviewV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithOverviewV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithSourceV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithSourceV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Live/PlatformDataAnalysisQueryLiveWithShortIdV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Live/PlatformDataAnalysisQueryLiveWithShortIdV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOrderDataV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOverviewDataV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeRoomDataV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveDataWithIdV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveDataWithIdV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveIdWithAwemeIdV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveIdWithAwemeIdV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoDataV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoDataV2Response.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoWithSourceV2Request.json create mode 100644 test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoWithSourceV2Response.json diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecutePlatformDataAnalysisExtensions.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecutePlatformDataAnalysisExtensions.cs index bca7e43f..5f572e68 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecutePlatformDataAnalysisExtensions.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Extensions/DouyinMicroAppClientExecutePlatformDataAnalysisExtensions.cs @@ -9,6 +9,204 @@ namespace SKIT.FlurlHttpClient.ByteDance.MicroApp { public static class DouyinMicroAppClientExecutePlatformDataAnalysisExtensions { + #region Component + /// + /// 异步调用 [POST] /api/platform/v2/data_analysis/query_component_with_overview/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecutePlatformDataAnalysisQueryComponentWithOverviewV2Async(this DouyinMicroAppClient client, Models.PlatformDataAnalysisQueryComponentWithOverviewV2Request 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, "api", "platform", "v2", "data_analysis", "query_component_with_overview/") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /api/platform/v2/data_analysis/query_component_with_source/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecutePlatformDataAnalysisQueryComponentWithSourceV2Async(this DouyinMicroAppClient client, Models.PlatformDataAnalysisQueryComponentWithSourceV2Request 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, "api", "platform", "v2", "data_analysis", "query_component_with_source/") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /api/platform/v2/data_analysis/query_component_with_detail/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecutePlatformDataAnalysisQueryComponentWithDetailV2Async(this DouyinMicroAppClient client, Models.PlatformDataAnalysisQueryComponentWithDetailV2Request 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, "api", "platform", "v2", "data_analysis", "query_component_with_detail/") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /api/platform/v2/data_analysis/query_component_with_data/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecutePlatformDataAnalysisQueryComponentWithDataV2Async(this DouyinMicroAppClient client, Models.PlatformDataAnalysisQueryComponentWithDataV2Request 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, "api", "platform", "v2", "data_analysis", "query_component_with_data/") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region Live + /// + /// 异步调用 [POST] /api/platform/v2/data_analysis/query_live_with_short_id/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecutePlatformDataAnalysisQueryLiveWithShortIdV2Async(this DouyinMicroAppClient client, Models.PlatformDataAnalysisQueryLiveWithShortIdV2Request 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, "api", "platform", "v2", "data_analysis", "query_live_with_short_id/") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + + #region SmallRoom + /// + /// 异步调用 [GET] /api/platform/v2/data_analysis/query_small_home_overview_data/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecutePlatformDataAnalysisQuerySmallHomeOverviewDataV2Async(this DouyinMicroAppClient client, Models.PlatformDataAnalysisQuerySmallHomeOverviewDataV2Request 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.Get, "api", "platform", "v2", "data_analysis", "query_small_home_overview_data/") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("start_time", request.StartTimestamp) + .SetQueryParam("end_time", request.EndTimestamp); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /api/platform/v2/data_analysis/query_small_home_room_data/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecutePlatformDataAnalysisQuerySmallHomeRoomDataV2Async(this DouyinMicroAppClient client, Models.PlatformDataAnalysisQuerySmallHomeRoomDataV2Request 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.Get, "api", "platform", "v2", "data_analysis", "query_small_home_room_data/") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("start_time", request.StartTimestamp) + .SetQueryParam("end_time", request.EndTimestamp); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [GET] /api/platform/v2/data_analysis/query_small_home_order_data/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecutePlatformDataAnalysisQuerySmallHomeOrderDataV2Async(this DouyinMicroAppClient client, Models.PlatformDataAnalysisQuerySmallHomeOrderDataV2Request 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.Get, "api", "platform", "v2", "data_analysis", "query_small_home_order_data/") + .WithHeader("access-token", request.AccessToken) + .SetQueryParam("start_time", request.StartTimestamp) + .SetQueryParam("end_time", request.EndTimestamp) + .SetQueryParam("page_num", request.PageNumber) + .SetQueryParam("page_size", request.PageSize); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion + #region Transaction /// /// 异步调用 [GET] /api/platform/v2/data_analysis/query_deal_overview_data/ 接口。 @@ -381,5 +579,101 @@ public static class DouyinMicroAppClientExecutePlatformDataAnalysisExtensions return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); } #endregion + + #region Video + /// + /// 异步调用 [POST] /api/platform/v2/data_analysis/query_short_live_id_with_awemeid/ 接口。 + /// + /// REF:
+ ///
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecutePlatformDataAnalysisQueryShortLiveIdWithAwemeIdV2Async(this DouyinMicroAppClient client, Models.PlatformDataAnalysisQueryShortLiveIdWithAwemeIdV2Request 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, "api", "platform", "v2", "data_analysis", "query_short_live_id_with_awemeid/") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /api/platform/v2/data_analysis/query_video_data/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecutePlatformDataAnalysisQueryVideoDataV2Async(this DouyinMicroAppClient client, Models.PlatformDataAnalysisQueryVideoDataV2Request 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, "api", "platform", "v2", "data_analysis", "query_video_data/") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /api/platform/v2/data_analysis/query_short_live_data_with_id/ 接口。 + /// + /// REF:
+ ///
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecutePlatformDataAnalysisQueryShortLiveDataWithIdV2Async(this DouyinMicroAppClient client, Models.PlatformDataAnalysisQueryShortLiveDataWithIdV2Request 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, "api", "platform", "v2", "data_analysis", "query_short_live_data_with_id/") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + + /// + /// 异步调用 [POST] /api/platform/v2/data_analysis/query_video_with_source/ 接口。 + /// + /// REF:
+ /// + ///
+ ///
+ /// + /// + /// + /// + public static async Task ExecutePlatformDataAnalysisQueryVideoWithSourceV2Async(this DouyinMicroAppClient client, Models.PlatformDataAnalysisQueryVideoWithSourceV2Request 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, "api", "platform", "v2", "data_analysis", "query_video_with_source/") + .WithHeader("access-token", request.AccessToken); + + return await client.SendFlurlRequestAsJsonAsync(flurlReq, data: request, cancellationToken: cancellationToken).ConfigureAwait(false); + } + #endregion } } diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDataV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDataV2Request.cs new file mode 100644 index 00000000..288f1bb3 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDataV2Request.cs @@ -0,0 +1,61 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /api/platform/v2/data_analysis/query_component_with_data/ 接口的请求。 + /// + public class PlatformDataAnalysisQueryComponentWithDataV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("start_time")] + [System.Text.Json.Serialization.JsonPropertyName("start_time")] + public long StartTimestamp { get; set; } + + /// + /// 获取或设置结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("end_time")] + [System.Text.Json.Serialization.JsonPropertyName("end_time")] + public long EndTimestamp { get; set; } + + /// + /// 获取或设置组件配置 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("componentId_list")] + [System.Text.Json.Serialization.JsonPropertyName("componentId_list")] + public IList? ComponentIdList { get; set; } + + /// + /// 获取或设置是否查询短视频维度。 + /// + [Newtonsoft.Json.JsonProperty("is_query_video")] + [System.Text.Json.Serialization.JsonPropertyName("is_query_video")] + public bool IsQueryVideo { get; set; } + + /// + /// 获取或设置是否查询直播维度。 + /// + [Newtonsoft.Json.JsonProperty("is_query_live")] + [System.Text.Json.Serialization.JsonPropertyName("is_query_live")] + public bool IsQueryLive { get; set; } + + /// + /// 获取或设置分页页数。 + /// 默认值:1 + /// + [Newtonsoft.Json.JsonProperty("page_no")] + [System.Text.Json.Serialization.JsonPropertyName("page_no")] + public int PageNumber { get; set; } = 1; + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonProperty("page_size")] + [System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int PageSize { get; set; } = 10; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDataV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDataV2Response.cs new file mode 100644 index 00000000..36f6d65f --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDataV2Response.cs @@ -0,0 +1,42 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /api/platform/v2/data_analysis/query_component_with_data/ 接口的响应。 + /// + public class PlatformDataAnalysisQueryComponentWithDataV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class ComponentData : PlatformDataAnalysisQueryComponentWithDetailV2Response.Types.Data.Types.VideoData.Types.VideoData.Types.Statistics + { + } + } + + /// + /// 获取或设置留资组件数据列表。 + /// + [Newtonsoft.Json.JsonProperty("DataList")] + [System.Text.Json.Serialization.JsonPropertyName("DataList")] + public Types.ComponentData[] ComponentDataList { get; set; } = default!; + + /// + /// 获取或设置总数量。 + /// + [Newtonsoft.Json.JsonProperty("Total")] + [System.Text.Json.Serialization.JsonPropertyName("Total")] + public int TotalCount { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDetailV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDetailV2Request.cs new file mode 100644 index 00000000..bdad23d8 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDetailV2Request.cs @@ -0,0 +1,61 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /api/platform/v2/data_analysis/query_component_with_detail/ 接口的请求。 + /// + public class PlatformDataAnalysisQueryComponentWithDetailV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("start_time")] + [System.Text.Json.Serialization.JsonPropertyName("start_time")] + public long StartTimestamp { get; set; } + + /// + /// 获取或设置结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("end_time")] + [System.Text.Json.Serialization.JsonPropertyName("end_time")] + public long EndTimestamp { get; set; } + + /// + /// 获取或设置组件配置 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("componentId_list")] + [System.Text.Json.Serialization.JsonPropertyName("componentId_list")] + public IList? ComponentIdList { get; set; } + + /// + /// 获取或设置是否查询短视频维度。 + /// + [Newtonsoft.Json.JsonProperty("is_query_video")] + [System.Text.Json.Serialization.JsonPropertyName("is_query_video")] + public bool IsQueryVideo { get; set; } + + /// + /// 获取或设置是否查询直播维度。 + /// + [Newtonsoft.Json.JsonProperty("is_query_live")] + [System.Text.Json.Serialization.JsonPropertyName("is_query_live")] + public bool IsQueryLive { get; set; } + + /// + /// 获取或设置分页页数。 + /// 默认值:1 + /// + [Newtonsoft.Json.JsonProperty("page_no")] + [System.Text.Json.Serialization.JsonPropertyName("page_no")] + public int PageNumber { get; set; } = 1; + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonProperty("page_size")] + [System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int PageSize { get; set; } = 10; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDetailV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDetailV2Response.cs new file mode 100644 index 00000000..05779a52 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDetailV2Response.cs @@ -0,0 +1,253 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /api/platform/v2/data_analysis/query_component_with_detail/ 接口的响应。 + /// + public class PlatformDataAnalysisQueryComponentWithDetailV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class VideoData + { + public static class Types + { + public class VideoData + { + public static class Types + { + public class AnchorInfo + { + /// + /// 获取或设置抖音号。 + /// + [Newtonsoft.Json.JsonProperty("AwemeShortID")] + [System.Text.Json.Serialization.JsonPropertyName("AwemeShortID")] + public string AwemeShortId { get; set; } = default!; + + /// + /// 获取或设置账号类型。 + /// + [Newtonsoft.Json.JsonProperty("AccountType")] + [System.Text.Json.Serialization.JsonPropertyName("AccountType")] + public int AccountType { get; set; } + + /// + /// 获取或设置昵称。 + /// + [Newtonsoft.Json.JsonProperty("Nickname")] + [System.Text.Json.Serialization.JsonPropertyName("Nickname")] + public string Nickname { get; set; } = default!; + + /// + /// 获取或设置头像 URL。 + /// + [Newtonsoft.Json.JsonProperty("Avat")] + [System.Text.Json.Serialization.JsonPropertyName("Avat")] + public string AvatarUrl { get; set; } = default!; + } + + public class Statistics : PlatformDataAnalysisQueryComponentWithSourceV2Response.Types.Data.Types.ComponentData.Types.Statistics + { + /// + /// 获取或设置留资组件 ID。 + /// + [Newtonsoft.Json.JsonProperty("ComponentId")] + [System.Text.Json.Serialization.JsonPropertyName("ComponentId")] + public string ComponentId { get; set; } = default!; + + /// + /// 获取或设置留资组件名称。 + /// + [Newtonsoft.Json.JsonProperty("ComponentName")] + [System.Text.Json.Serialization.JsonPropertyName("ComponentName")] + public string ComponentName { get; set; } = default!; + } + } + + /// + /// 获取或设置视频 ID。 + /// + [Newtonsoft.Json.JsonProperty("ItemId")] + [System.Text.Json.Serialization.JsonPropertyName("ItemId")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))] + public string ItemId { get; set; } = default!; + + /// + /// 获取或设置视频标题。 + /// + [Newtonsoft.Json.JsonProperty("ItemTitle")] + [System.Text.Json.Serialization.JsonPropertyName("ItemTitle")] + public string ItemTitle { get; set; } = default!; + + /// + /// 获取或设置视频封面 URL。 + /// + [Newtonsoft.Json.JsonProperty("ItemCover")] + [System.Text.Json.Serialization.JsonPropertyName("ItemCover")] + public string ItemCoverUrl { get; set; } = default!; + + /// + /// 获取或设置视频播放 URL。 + /// + [Newtonsoft.Json.JsonProperty("ItemAddr")] + [System.Text.Json.Serialization.JsonPropertyName("ItemAddr")] + public string ItemPlayerUrl { get; set; } = default!; + + /// + /// 获取或设置视频时长(单位:秒)。 + /// + [Newtonsoft.Json.JsonProperty("ItemDuration")] + [System.Text.Json.Serialization.JsonPropertyName("ItemDuration")] + public int ItemDuration { get; set; } + + /// + /// 获取或设置视频创建时间戳。 + /// + [Newtonsoft.Json.JsonProperty("ItemCreateTime")] + [System.Text.Json.Serialization.JsonPropertyName("ItemCreateTime")] + public long ItemCreateTimestamp { get; set; } + + /// + /// 获取或设置视频播放次数。 + /// + [Newtonsoft.Json.JsonProperty("ItemVv")] + [System.Text.Json.Serialization.JsonPropertyName("ItemVv")] + public int ItemVV { get; set; } + + /// + /// 获取或设置作者信息。 + /// + [Newtonsoft.Json.JsonProperty("ShortInfo")] + [System.Text.Json.Serialization.JsonPropertyName("ShortInfo")] + public Types.AnchorInfo AnchorInfo { get; set; } = default!; + + /// + /// 获取或设置统计数据。 + /// + [Newtonsoft.Json.JsonProperty("Data")] + [System.Text.Json.Serialization.JsonPropertyName("Data")] + public Types.Statistics Statistics { get; set; } = default!; + } + } + + /// + /// 获取或设置短视频留资数据列表。 + /// + [Newtonsoft.Json.JsonProperty("DataList")] + [System.Text.Json.Serialization.JsonPropertyName("DataList")] + public Types.VideoData[] VideoDataList { get; set; } = default!; + + /// + /// 获取或设置总数量。 + /// + [Newtonsoft.Json.JsonProperty("Total")] + [System.Text.Json.Serialization.JsonPropertyName("Total")] + public int TotalCount { get; set; } + } + + public class LiveData + { + public static class Types + { + public class LiveData + { + public static class Types + { + public class AnchorInfo : VideoData.Types.VideoData.Types.AnchorInfo + { + } + + public class Statistics : VideoData.Types.VideoData.Types.Statistics + { + } + } + + /// + /// 获取或设置直播间 ID。 + /// + [Newtonsoft.Json.JsonProperty("RoomId")] + [System.Text.Json.Serialization.JsonPropertyName("RoomId")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))] + public string LiveRoomId { get; set; } = default!; + + /// + /// 获取或设置直播时长(单位:秒)。 + /// + [Newtonsoft.Json.JsonProperty("RoomDuration")] + [System.Text.Json.Serialization.JsonPropertyName("RoomDuration")] + public int LiveRoomDuration { get; set; } + + /// + /// 获取或设置直播创建时间戳。 + /// + [Newtonsoft.Json.JsonProperty("RoomCreateTime")] + [System.Text.Json.Serialization.JsonPropertyName("RoomCreateTime")] + public long LiveRoomCreateTimestamp { get; set; } + + /// + /// 获取或设置视频播放次数。 + /// + [Newtonsoft.Json.JsonProperty("ItemVv")] + [System.Text.Json.Serialization.JsonPropertyName("ItemVv")] + public int ItemVV { get; set; } + + /// + /// 获取或设置主播信息。 + /// + [Newtonsoft.Json.JsonProperty("ShortInfo")] + [System.Text.Json.Serialization.JsonPropertyName("ShortInfo")] + public Types.AnchorInfo AnchorInfo { get; set; } = default!; + + /// + /// 获取或设置统计数据。 + /// + [Newtonsoft.Json.JsonProperty("Data")] + [System.Text.Json.Serialization.JsonPropertyName("Data")] + public Types.Statistics Statistics { get; set; } = default!; + } + } + + /// + /// 获取或设置直播留资数据列表。 + /// + [Newtonsoft.Json.JsonProperty("DataList")] + [System.Text.Json.Serialization.JsonPropertyName("DataList")] + public Types.LiveData[] LiveDataList { get; set; } = default!; + + /// + /// 获取或设置总数量。 + /// + [Newtonsoft.Json.JsonProperty("Total")] + [System.Text.Json.Serialization.JsonPropertyName("Total")] + public int TotalCount { get; set; } + } + } + + /// + /// 获取或设置短视频数据。 + /// + [Newtonsoft.Json.JsonProperty("VideoData")] + [System.Text.Json.Serialization.JsonPropertyName("VideoData")] + public Types.VideoData? VideoData { get; set; } + + /// + /// 获取或设置直播数据。 + /// + [Newtonsoft.Json.JsonProperty("LiveData")] + [System.Text.Json.Serialization.JsonPropertyName("LiveData")] + public Types.LiveData? LiveData { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithOverviewV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithOverviewV2Request.cs new file mode 100644 index 00000000..ae754480 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithOverviewV2Request.cs @@ -0,0 +1,31 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /api/platform/v2/data_analysis/query_component_with_overview/ 接口的请求。 + /// + public class PlatformDataAnalysisQueryComponentWithOverviewV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("start_time")] + [System.Text.Json.Serialization.JsonPropertyName("start_time")] + public long StartTimestamp { get; set; } + + /// + /// 获取或设置结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("end_time")] + [System.Text.Json.Serialization.JsonPropertyName("end_time")] + public long EndTimestamp { get; set; } + + /// + /// 获取或设置组件配置 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("componentId_list")] + [System.Text.Json.Serialization.JsonPropertyName("componentId_list")] + public IList? ComponentIdList { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithOverviewV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithOverviewV2Response.cs new file mode 100644 index 00000000..f1bf6080 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithOverviewV2Response.cs @@ -0,0 +1,128 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /api/platform/v2/data_analysis/query_component_with_overview/ 接口的响应。 + /// + public class PlatformDataAnalysisQueryComponentWithOverviewV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class ComponentOverviewData + { + /// + /// 获取或设置组件点击次数。 + /// + [Newtonsoft.Json.JsonProperty("ComponentClickPv")] + [System.Text.Json.Serialization.JsonPropertyName("ComponentClickPv")] + public int ComponentClickPV { get; set; } + + /// + /// 获取或设置组件点击人数。 + /// + [Newtonsoft.Json.JsonProperty("ComponentClickUv")] + [System.Text.Json.Serialization.JsonPropertyName("ComponentClickUv")] + public int ComponentClickUV { get; set; } + + /// + /// 获取或设置组件留资次数。 + /// + [Newtonsoft.Json.JsonProperty("ComponentReportPv")] + [System.Text.Json.Serialization.JsonPropertyName("ComponentReportPv")] + public int ComponentReportPV { get; set; } + + /// + /// 获取或设置组件留资人数。 + /// + [Newtonsoft.Json.JsonProperty("ComponentReportUv")] + [System.Text.Json.Serialization.JsonPropertyName("ComponentReportUv")] + public int ComponentReportUV { get; set; } + + /// + /// 获取或设置组件曝光次数。 + /// + [Newtonsoft.Json.JsonProperty("ComponentShowPv")] + [System.Text.Json.Serialization.JsonPropertyName("ComponentShowPv")] + public int ComponentShowPV { get; set; } + + /// + /// 获取或设置组件曝光人数。 + /// + [Newtonsoft.Json.JsonProperty("ComponentShowUv")] + [System.Text.Json.Serialization.JsonPropertyName("ComponentShowUv")] + public int ComponentShowUV { get; set; } + + /// + /// 获取或设置当日线索数量。 + /// + [Newtonsoft.Json.JsonProperty("ClueCnt")] + [System.Text.Json.Serialization.JsonPropertyName("ClueCnt")] + public int ClueCount { get; set; } + + /// + /// 获取或设置当日线索用户数量。 + /// + [Newtonsoft.Json.JsonProperty("ClueUcnt")] + [System.Text.Json.Serialization.JsonPropertyName("ClueUcnt")] + public int ClueUserCount { get; set; } + + /// + /// 获取或设置当日有效线索数量。 + /// + [Newtonsoft.Json.JsonProperty("ValidClueCnt")] + [System.Text.Json.Serialization.JsonPropertyName("ValidClueCnt")] + public int ValidClueCount { get; set; } + + /// + /// 获取或设置当日有效线索用户数量。 + /// + [Newtonsoft.Json.JsonProperty("ValidClueUcnt")] + [System.Text.Json.Serialization.JsonPropertyName("ValidClueUcnt")] + public int ValidClueUserCount { get; set; } + } + + public class ComponentData : ComponentOverviewData + { + /// + /// 获取或设置日期字符串(格式:yyyyMMdd)。 + /// + [Newtonsoft.Json.JsonProperty("Date")] + [System.Text.Json.Serialization.JsonPropertyName("Date")] + public string? DateString { get; set; } + + /// + /// 获取或设置小时字符串(格式:HH)。 + /// + [Newtonsoft.Json.JsonProperty("Hour")] + [System.Text.Json.Serialization.JsonPropertyName("Hour")] + public string? HourString { get; set; } + } + } + + /// + /// 获取或设置组件使用总览数据。 + /// + [Newtonsoft.Json.JsonProperty("ComponentOverviewData")] + [System.Text.Json.Serialization.JsonPropertyName("ComponentOverviewData")] + public Types.ComponentOverviewData ComponentOverviewData { get; set; } = default!; + + /// + /// 获取或设置组件使用数据列表。 + /// + [Newtonsoft.Json.JsonProperty("ComponentDataInfoList")] + [System.Text.Json.Serialization.JsonPropertyName("ComponentDataInfoList")] + public Types.ComponentData[] ComponentDataList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithSourceV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithSourceV2Request.cs new file mode 100644 index 00000000..feab21a6 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithSourceV2Request.cs @@ -0,0 +1,31 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /api/platform/v2/data_analysis/query_component_with_source/ 接口的请求。 + /// + public class PlatformDataAnalysisQueryComponentWithSourceV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("start_time")] + [System.Text.Json.Serialization.JsonPropertyName("start_time")] + public long StartTimestamp { get; set; } + + /// + /// 获取或设置结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("end_time")] + [System.Text.Json.Serialization.JsonPropertyName("end_time")] + public long EndTimestamp { get; set; } + + /// + /// 获取或设置组件配置 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("componentId_list")] + [System.Text.Json.Serialization.JsonPropertyName("componentId_list")] + public IList? ComponentIdList { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithSourceV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithSourceV2Response.cs new file mode 100644 index 00000000..1abe78ba --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithSourceV2Response.cs @@ -0,0 +1,103 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /api/platform/v2/data_analysis/query_component_with_source/ 接口的响应。 + /// + public class PlatformDataAnalysisQueryComponentWithSourceV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class ComponentData + { + public static class Types + { + public class Statistics + { + /// + /// 获取或设置组件点击次数。 + /// + [Newtonsoft.Json.JsonProperty("ComponentClickPv")] + [System.Text.Json.Serialization.JsonPropertyName("ComponentClickPv")] + public int ComponentClickPV { get; set; } + + /// + /// 获取或设置组件点击人数。 + /// + [Newtonsoft.Json.JsonProperty("ComponentClickUv")] + [System.Text.Json.Serialization.JsonPropertyName("ComponentClickUv")] + public int ComponentClickUV { get; set; } + + /// + /// 获取或设置组件留资次数。 + /// + [Newtonsoft.Json.JsonProperty("ComponentReportPv")] + [System.Text.Json.Serialization.JsonPropertyName("ComponentReportPv")] + public int ComponentReportPV { get; set; } + + /// + /// 获取或设置组件留资人数。 + /// + [Newtonsoft.Json.JsonProperty("ComponentReportUv")] + [System.Text.Json.Serialization.JsonPropertyName("ComponentReportUv")] + public int ComponentReportUV { get; set; } + + /// + /// 获取或设置组件曝光次数。 + /// + [Newtonsoft.Json.JsonProperty("ComponentShowPv")] + [System.Text.Json.Serialization.JsonPropertyName("ComponentShowPv")] + public int ComponentShowPV { get; set; } + + /// + /// 获取或设置组件曝光人数。 + /// + [Newtonsoft.Json.JsonProperty("ComponentShowUv")] + [System.Text.Json.Serialization.JsonPropertyName("ComponentShowUv")] + public int ComponentShowUV { get; set; } + } + } + + /// + /// 获取或设置场景值。 + /// + [Newtonsoft.Json.JsonProperty("Scenes")] + [System.Text.Json.Serialization.JsonPropertyName("Scenes")] + public string Scene { get; set; } = default!; + + /// + /// 获取或设置场景名称。 + /// + [Newtonsoft.Json.JsonProperty("ScenesName")] + [System.Text.Json.Serialization.JsonPropertyName("ScenesName")] + public string SceneName { get; set; } = default!; + + /// + /// 获取或设置统计数据。 + /// + [Newtonsoft.Json.JsonProperty("Data")] + [System.Text.Json.Serialization.JsonPropertyName("Data")] + public Types.Statistics Statistics { get; set; } = default!; + } + } + + /// + /// 获取或设置组件流量来源数据列表。 + /// + [Newtonsoft.Json.JsonProperty("ScenesDataList")] + [System.Text.Json.Serialization.JsonPropertyName("ScenesDataList")] + public Types.ComponentData[] ComponentDataList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Live/PlatformDataAnalysisQueryLiveWithShortIdV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Live/PlatformDataAnalysisQueryLiveWithShortIdV2Request.cs new file mode 100644 index 00000000..1c1fa70a --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Live/PlatformDataAnalysisQueryLiveWithShortIdV2Request.cs @@ -0,0 +1,54 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /api/platform/v2/data_analysis/query_live_with_short_id/ 接口的请求。 + /// + public class PlatformDataAnalysisQueryLiveWithShortIdV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("start_time")] + [System.Text.Json.Serialization.JsonPropertyName("start_time")] + public long StartTimestamp { get; set; } + + /// + /// 获取或设置结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("end_time")] + [System.Text.Json.Serialization.JsonPropertyName("end_time")] + public long EndTimestamp { get; set; } + + /// + /// 获取或设置宿主名称。 + /// + [Newtonsoft.Json.JsonProperty("host_name")] + [System.Text.Json.Serialization.JsonPropertyName("host_name")] + public string? HostName { get; set; } + + /// + /// 获取或设置抖音号列表。 + /// + [Newtonsoft.Json.JsonProperty("aweme_short_id_list")] + [System.Text.Json.Serialization.JsonPropertyName("aweme_short_id_list")] + public IList? AwemeShortIdList { get; set; } + + /// + /// 获取或设置分页页数。 + /// 默认值:1 + /// + [Newtonsoft.Json.JsonProperty("page_no")] + [System.Text.Json.Serialization.JsonPropertyName("page_no")] + public int PageNumber { get; set; } = 1; + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonProperty("page_size")] + [System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int PageSize { get; set; } = 10; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Live/PlatformDataAnalysisQueryLiveWithShortIdV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Live/PlatformDataAnalysisQueryLiveWithShortIdV2Response.cs new file mode 100644 index 00000000..f2c6e77b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Live/PlatformDataAnalysisQueryLiveWithShortIdV2Response.cs @@ -0,0 +1,148 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /api/platform/v2/data_analysis/query_live_with_short_id/ 接口的响应。 + /// + public class PlatformDataAnalysisQueryLiveWithShortIdV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class AnchorData + { + public static class Types + { + public class AnchorInfo + { + /// + /// 获取或设置抖音号。 + /// + [Newtonsoft.Json.JsonProperty("AwemeShortID")] + [System.Text.Json.Serialization.JsonPropertyName("AwemeShortID")] + public string AwemeShortId { get; set; } = default!; + + /// + /// 获取或设置账号类型。 + /// + [Newtonsoft.Json.JsonProperty("AccountType")] + [System.Text.Json.Serialization.JsonPropertyName("AccountType")] + public int AccountType { get; set; } + + /// + /// 获取或设置昵称。 + /// + [Newtonsoft.Json.JsonProperty("Nickname")] + [System.Text.Json.Serialization.JsonPropertyName("Nickname")] + public string Nickname { get; set; } = default!; + + /// + /// 获取或设置头像 URL。 + /// + [Newtonsoft.Json.JsonProperty("Avat")] + [System.Text.Json.Serialization.JsonPropertyName("Avat")] + public string AvatarUrl { get; set; } = default!; + } + + public class Statistics + { + /// + /// 获取或设置直播总时长(单位:秒)。 + /// + [Newtonsoft.Json.JsonProperty("RoomDuration")] + [System.Text.Json.Serialization.JsonPropertyName("RoomDuration")] + public int RoomDuration { get; set; } + + /// + /// 获取或设置直播最高在线人数。 + /// + [Newtonsoft.Json.JsonProperty("RoomHighestOnlineCount")] + [System.Text.Json.Serialization.JsonPropertyName("RoomHighestOnlineCount")] + public int RoomHighestOnlineCount { get; set; } + + /// + /// 获取或设置直播新增粉丝数。 + /// + [Newtonsoft.Json.JsonProperty("RoomNewFans")] + [System.Text.Json.Serialization.JsonPropertyName("RoomNewFans")] + public int RoomNewFansCount { get; set; } + + /// + /// 获取或设置直播场次。 + /// + [Newtonsoft.Json.JsonProperty("RoomSessionCnt")] + [System.Text.Json.Serialization.JsonPropertyName("RoomSessionCnt")] + public int RoomSessionCount { get; set; } + + /// + /// 获取或设置支付人数。 + /// + [Newtonsoft.Json.JsonProperty("PayCustomerCnt")] + [System.Text.Json.Serialization.JsonPropertyName("PayCustomerCnt")] + public int PayUserCount { get; set; } + + /// + /// 获取或设置支付订单金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("PayOrderAmount")] + [System.Text.Json.Serialization.JsonPropertyName("PayOrderAmount")] + public long PayOrderAmount { get; set; } + + /// + /// 获取或设置客单价(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("CustomerOncePrice")] + [System.Text.Json.Serialization.JsonPropertyName("CustomerOncePrice")] + public long CustomerOncePrice { get; set; } + + /// + /// 获取或设置单均价(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("order_once_price")] + [System.Text.Json.Serialization.JsonPropertyName("order_once_price")] + public long OrderOncePrice { get; set; } + } + } + + /// + /// 获取或设置主播信息。 + /// + [Newtonsoft.Json.JsonProperty("ShortInfo")] + [System.Text.Json.Serialization.JsonPropertyName("ShortInfo")] + public Types.AnchorInfo AnchorInfo { get; set; } = default!; + + /// + /// 获取或设置统计数据。 + /// + [Newtonsoft.Json.JsonProperty("Data")] + [System.Text.Json.Serialization.JsonPropertyName("Data")] + public Types.Statistics Statistics { get; set; } = default!; + } + } + + /// + /// 获取或设置主播数据列表。 + /// + [Newtonsoft.Json.JsonProperty("ShortDataList")] + [System.Text.Json.Serialization.JsonPropertyName("ShortDataList")] + public Types.AnchorData[] AnchorDataList { get; set; } = default!; + + /// + /// 获取或设置总数量。 + /// + [Newtonsoft.Json.JsonProperty("Total")] + [System.Text.Json.Serialization.JsonPropertyName("Total")] + public int TotalCount { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOrderDataV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOrderDataV2Request.cs new file mode 100644 index 00000000..486a72be --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOrderDataV2Request.cs @@ -0,0 +1,38 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /api/platform/v2/data_analysis/query_small_home_order_data/ 接口的请求。 + /// + public class PlatformDataAnalysisQuerySmallHomeOrderDataV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置开始时间戳。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public long StartTimestamp { get; set; } + + /// + /// 获取或设置结束时间戳。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public long EndTimestamp { get; set; } + + /// + /// 获取或设置分页页数。 + /// 默认值:0 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int PageNumber { get; set; } = 0; + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public int PageSize { get; set; } = 10; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOrderDataV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOrderDataV2Response.cs new file mode 100644 index 00000000..055666c9 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOrderDataV2Response.cs @@ -0,0 +1,138 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /api/platform/v2/data_analysis/query_small_home_order_data/ 接口的响应。 + /// + public class PlatformDataAnalysisQuerySmallHomeOrderDataV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class SmallHomeOrderData + { + /// + /// 获取或设置小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string AppId { get; set; } = default!; + + /// + /// 获取或设置小程序名称。 + /// + [Newtonsoft.Json.JsonProperty("app_name")] + [System.Text.Json.Serialization.JsonPropertyName("app_name")] + public string AppName { get; set; } = default!; + + /// + /// 获取或设置主播 ID。 + /// + [Newtonsoft.Json.JsonProperty("anchor_id")] + [System.Text.Json.Serialization.JsonPropertyName("anchor_id")] + public string AnchorId { get; set; } = default!; + + /// + /// 获取或设置主播昵称。 + /// + [Newtonsoft.Json.JsonProperty("nick_name")] + [System.Text.Json.Serialization.JsonPropertyName("nick_name")] + public string AnchorNickname { get; set; } = default!; + + /// + /// 获取或设置直播间 ID。 + /// + [Newtonsoft.Json.JsonProperty("room_id")] + [System.Text.Json.Serialization.JsonPropertyName("room_id")] + public string LiveRoomId { get; set; } = default!; + + /// + /// 获取或设置订单状态。 + /// + [Newtonsoft.Json.JsonProperty("order_status")] + [System.Text.Json.Serialization.JsonPropertyName("order_status")] + public string OrderStatus { get; set; } = default!; + + /// + /// 获取或设置核销订单金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("delivery_success_amount")] + [System.Text.Json.Serialization.JsonPropertyName("delivery_success_amount")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long DeliverySuccessAmount { get; set; } + + /// + /// 获取或设置支付订单金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("pay_amount")] + [System.Text.Json.Serialization.JsonPropertyName("pay_amount")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long PayAmount { get; set; } + + /// + /// 获取或设置支付时间戳。 + /// + [Newtonsoft.Json.JsonProperty("pay_time")] + [System.Text.Json.Serialization.JsonPropertyName("pay_time")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long PayTimestamp { get; set; } + + /// + /// 获取或设置退款订单金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("refund_success_amount")] + [System.Text.Json.Serialization.JsonPropertyName("refund_success_amount")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long RefundSuccessAmount { get; set; } + } + } + + /// + /// 获取或设置小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string AppId { get; set; } = default!; + + /// + /// 获取或设置小程序名称。 + /// + [Newtonsoft.Json.JsonProperty("app_name")] + [System.Text.Json.Serialization.JsonPropertyName("app_name")] + public string AppName { get; set; } = default!; + + /// + /// 获取或设置小房子直播间数据字典。 + /// + [Newtonsoft.Json.JsonProperty("order_data")] + [System.Text.Json.Serialization.JsonPropertyName("order_data")] + public IDictionary SmallHomeRoomDataMap { get; set; } = default!; + + /// + /// 获取或设置是否还有更多数据。 + /// + [Newtonsoft.Json.JsonProperty("has_more")] + [System.Text.Json.Serialization.JsonPropertyName("has_more")] + public bool HasMore { get; set; } + + /// + /// 获取或设置总数量。 + /// + [Newtonsoft.Json.JsonProperty("total_num")] + [System.Text.Json.Serialization.JsonPropertyName("total_num")] + public int TotalCount { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOverviewDataV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOverviewDataV2Request.cs new file mode 100644 index 00000000..867b0757 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOverviewDataV2Request.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /api/platform/v2/data_analysis/query_small_home_overview_data/ 接口的请求。 + /// + public class PlatformDataAnalysisQuerySmallHomeOverviewDataV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置开始时间戳。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public long StartTimestamp { get; set; } + + /// + /// 获取或设置结束时间戳。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public long EndTimestamp { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOverviewDataV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOverviewDataV2Response.cs new file mode 100644 index 00000000..3707b29d --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOverviewDataV2Response.cs @@ -0,0 +1,166 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /api/platform/v2/data_analysis/query_small_home_overview_data/ 接口的响应。 + /// + public class PlatformDataAnalysisQuerySmallHomeOverviewDataV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class SmallHomeOverviewData + { + /// + /// 获取或设置小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string AppId { get; set; } = default!; + + /// + /// 获取或设置小程序名称。 + /// + [Newtonsoft.Json.JsonProperty("app_name")] + [System.Text.Json.Serialization.JsonPropertyName("app_name")] + public string AppName { get; set; } = default!; + + /// + /// 获取或设置核销订单数。 + /// + [Newtonsoft.Json.JsonProperty("delivery_success_order_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("delivery_success_order_cnt")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int DeliverySuccessOrderCount { get; set; } + + /// + /// 获取或设置核销订单金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("delivery_success_amount")] + [System.Text.Json.Serialization.JsonPropertyName("delivery_success_amount")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long DeliverySuccessAmount { get; set; } + + /// + /// 获取或设置累计主播数。 + /// + [Newtonsoft.Json.JsonProperty("live_anchors_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("live_anchors_cnt")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int LiveAnchorCount { get; set; } + + /// + /// 获取或设置累计直播时长(单位:秒)。 + /// + [Newtonsoft.Json.JsonProperty("live_duration")] + [System.Text.Json.Serialization.JsonPropertyName("live_duration")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int LiveDuration { get; set; } + + /// + /// 获取或设置累计直播场次。 + /// + [Newtonsoft.Json.JsonProperty("live_session_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("live_session_cnt")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int LiveSessionCount { get; set; } + + /// + /// 获取或设置直播最高在线人数。 + /// + [Newtonsoft.Json.JsonProperty("max_watch_user_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("max_watch_user_cnt")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int LiveHighestOnlineUserCount { get; set; } + + /// + /// 获取或设置直播累计观看人数。 + /// + [Newtonsoft.Json.JsonProperty("watch_user_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("watch_user_cnt")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int LiveWatchUserCount { get; set; } + + /// + /// 获取或设置直播累计观看时长(单位:秒)。 + /// + [Newtonsoft.Json.JsonProperty("watch_duration")] + [System.Text.Json.Serialization.JsonPropertyName("watch_duration")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int LiveWatchDuration { get; set; } + + /// + /// 获取或设置直播人均观看时长(单位:秒)。 + /// + [Newtonsoft.Json.JsonProperty("per_watch_duration")] + [System.Text.Json.Serialization.JsonPropertyName("per_watch_duration")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int LiveOnceWatchDuration { get; set; } + + /// + /// 获取或设置支付订单数。 + /// + [Newtonsoft.Json.JsonProperty("pay_order_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("pay_order_cnt")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int PayOrderCount { get; set; } + + /// + /// 获取或设置支付订单金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("pay_amount")] + [System.Text.Json.Serialization.JsonPropertyName("pay_amount")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long PayAmount { get; set; } + + /// + /// 获取或设置退款订单数。 + /// + [Newtonsoft.Json.JsonProperty("refund_success_order_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("refund_success_order_cnt")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int RefundSuccessOrderCount { get; set; } + + /// + /// 获取或设置退款订单金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("refund_success_amount")] + [System.Text.Json.Serialization.JsonPropertyName("refund_success_amount")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long RefundSuccessAmount { get; set; } + } + } + + /// + /// 获取或设置小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string AppId { get; set; } = default!; + + /// + /// 获取或设置小程序名称。 + /// + [Newtonsoft.Json.JsonProperty("app_name")] + [System.Text.Json.Serialization.JsonPropertyName("app_name")] + public string AppName { get; set; } = default!; + + /// + /// 获取或设置小房子直播总览数据。 + /// + [Newtonsoft.Json.JsonProperty("over_view_data")] + [System.Text.Json.Serialization.JsonPropertyName("over_view_data")] + public Types.SmallHomeOverviewData SmallHomeOverviewData { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeRoomDataV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeRoomDataV2Request.cs new file mode 100644 index 00000000..d4ff3d83 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeRoomDataV2Request.cs @@ -0,0 +1,22 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /api/platform/v2/data_analysis/query_small_home_room_data/ 接口的请求。 + /// + public class PlatformDataAnalysisQuerySmallHomeRoomDataV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置开始时间戳。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public long StartTimestamp { get; set; } + + /// + /// 获取或设置结束时间戳。 + /// + [Newtonsoft.Json.JsonIgnore] + [System.Text.Json.Serialization.JsonIgnore] + public long EndTimestamp { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeRoomDataV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeRoomDataV2Response.cs new file mode 100644 index 00000000..ae2932f6 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeRoomDataV2Response.cs @@ -0,0 +1,210 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [GET] /api/platform/v2/data_analysis/query_small_home_room_data/ 接口的响应。 + /// + public class PlatformDataAnalysisQuerySmallHomeRoomDataV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class SmallHomeRoomData + { + /// + /// 获取或设置小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string AppId { get; set; } = default!; + + /// + /// 获取或设置小程序名称。 + /// + [Newtonsoft.Json.JsonProperty("app_name")] + [System.Text.Json.Serialization.JsonPropertyName("app_name")] + public string AppName { get; set; } = default!; + + /// + /// 获取或设置主播 ID。 + /// + [Newtonsoft.Json.JsonProperty("anchor_id")] + [System.Text.Json.Serialization.JsonPropertyName("anchor_id")] + public string AnchorId { get; set; } = default!; + + /// + /// 获取或设置主播昵称。 + /// + [Newtonsoft.Json.JsonProperty("nick_name")] + [System.Text.Json.Serialization.JsonPropertyName("nick_name")] + public string AnchorNickname { get; set; } = default!; + + /// + /// 获取或设置直播开播时间戳。 + /// + [Newtonsoft.Json.JsonProperty("start_time")] + [System.Text.Json.Serialization.JsonPropertyName("start_time")] + public long StartTimestamp { get; set; } + + /// + /// 获取或设置直播下播时间戳。 + /// + [Newtonsoft.Json.JsonProperty("end_time")] + [System.Text.Json.Serialization.JsonPropertyName("end_time")] + public long EndTimestamp { get; set; } + + /// + /// 获取或设置核销订单数。 + /// + [Newtonsoft.Json.JsonProperty("delivery_success_order_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("delivery_success_order_cnt")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int DeliverySuccessOrderCount { get; set; } + + /// + /// 获取或设置核销订单金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("delivery_success_amount")] + [System.Text.Json.Serialization.JsonPropertyName("delivery_success_amount")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long DeliverySuccessAmount { get; set; } + + /// + /// 获取或设置累计主播数。 + /// + [Newtonsoft.Json.JsonProperty("live_anchors_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("live_anchors_cnt")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int LiveAnchorCount { get; set; } + + /// + /// 获取或设置累计直播时长(单位:秒)。 + /// + [Newtonsoft.Json.JsonProperty("live_duration")] + [System.Text.Json.Serialization.JsonPropertyName("live_duration")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int LiveDuration { get; set; } + + /// + /// 获取或设置累计直播场次。 + /// + [Newtonsoft.Json.JsonProperty("live_session_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("live_session_cnt")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int LiveSessionCount { get; set; } + + /// + /// 获取或设置直播最高在线人数。 + /// + [Newtonsoft.Json.JsonProperty("max_watch_user_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("max_watch_user_cnt")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int LiveHighestOnlineUserCount { get; set; } + + /// + /// 获取或设置直播累计观看人数。 + /// + [Newtonsoft.Json.JsonProperty("watch_user_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("watch_user_cnt")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int LiveWatchUserCount { get; set; } + + /// + /// 获取或设置直播累计观看时长(单位:秒)。 + /// + [Newtonsoft.Json.JsonProperty("watch_duration")] + [System.Text.Json.Serialization.JsonPropertyName("watch_duration")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int LiveWatchDuration { get; set; } + + /// + /// 获取或设置直播人均观看时长(单位:秒)。 + /// + [Newtonsoft.Json.JsonProperty("per_watch_duration")] + [System.Text.Json.Serialization.JsonPropertyName("per_watch_duration")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int LiveOnceWatchDuration { get; set; } + + /// + /// 获取或设置支付订单数。 + /// + [Newtonsoft.Json.JsonProperty("pay_order_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("pay_order_cnt")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int PayOrderCount { get; set; } + + /// + /// 获取或设置支付订单金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("pay_amount")] + [System.Text.Json.Serialization.JsonPropertyName("pay_amount")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long PayAmount { get; set; } + + /// + /// 获取或设置退款订单数。 + /// + [Newtonsoft.Json.JsonProperty("refund_success_order_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("refund_success_order_cnt")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int RefundSuccessOrderCount { get; set; } + + /// + /// 获取或设置退款订单金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("refund_success_amount")] + [System.Text.Json.Serialization.JsonPropertyName("refund_success_amount")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public long RefundSuccessAmount { get; set; } + } + } + + /// + /// 获取或设置小程序 AppId。 + /// + [Newtonsoft.Json.JsonProperty("app_id")] + [System.Text.Json.Serialization.JsonPropertyName("app_id")] + public string AppId { get; set; } = default!; + + /// + /// 获取或设置小程序名称。 + /// + [Newtonsoft.Json.JsonProperty("app_name")] + [System.Text.Json.Serialization.JsonPropertyName("app_name")] + public string AppName { get; set; } = default!; + + /// + /// 获取或设置小房子直播间数据字典。 + /// + [Newtonsoft.Json.JsonProperty("room_data")] + [System.Text.Json.Serialization.JsonPropertyName("room_data")] + public IDictionary SmallHomeRoomDataMap { get; set; } = default!; + + /// + /// 获取或设置是否还有更多数据。 + /// + [Newtonsoft.Json.JsonProperty("has_more")] + [System.Text.Json.Serialization.JsonPropertyName("has_more")] + public bool HasMore { get; set; } + + /// + /// 获取或设置总数量。 + /// + [Newtonsoft.Json.JsonProperty("total_num")] + [System.Text.Json.Serialization.JsonPropertyName("total_num")] + public int TotalCount { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Transaction/PlatformDataAnalysisQueryVideoDealDataV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Transaction/PlatformDataAnalysisQueryVideoDealDataV2Response.cs index 94d22bc0..3a7265d8 100644 --- a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Transaction/PlatformDataAnalysisQueryVideoDealDataV2Response.cs +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Transaction/PlatformDataAnalysisQueryVideoDealDataV2Response.cs @@ -32,7 +32,7 @@ public class VideoDealOverviewData ///
[Newtonsoft.Json.JsonProperty("item_vv")] [System.Text.Json.Serialization.JsonPropertyName("item_vv")] - public int ItemPV { get; set; } + public int ItemVV { get; set; } /// /// 获取或设置视频播放人数。 @@ -144,7 +144,7 @@ public class VideoDealOverviewData /// [Newtonsoft.Json.JsonProperty("pay_order_amount")] [System.Text.Json.Serialization.JsonPropertyName("pay_order_amount")] - public long PayUserAmount { get; set; } + public long PayOrderAmount { get; set; } /// /// 获取或设置退款订单数。 diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveDataWithIdV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveDataWithIdV2Request.cs new file mode 100644 index 00000000..f2150c30 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveDataWithIdV2Request.cs @@ -0,0 +1,89 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /api/platform/v2/data_analysis/query_short_live_data_with_id/ 接口的请求。 + /// + public class PlatformDataAnalysisQueryShortLiveDataWithIdV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("start_time")] + [System.Text.Json.Serialization.JsonPropertyName("start_time")] + public long StartTimestamp { get; set; } + + /// + /// 获取或设置结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("end_time")] + [System.Text.Json.Serialization.JsonPropertyName("end_time")] + public long EndTimestamp { get; set; } + + /// + /// 获取或设置宿主名称。 + /// + [Newtonsoft.Json.JsonProperty("host_name")] + [System.Text.Json.Serialization.JsonPropertyName("host_name")] + public string? HostName { get; set; } + + /// + /// 获取或设置查询数据的挂载类型。 + /// + [Newtonsoft.Json.JsonProperty("query_bind_type")] + [System.Text.Json.Serialization.JsonPropertyName("query_bind_type")] + public int QueryBindType { get; set; } + + /// + /// 获取或设置查询数据的列表类型。 + /// + [Newtonsoft.Json.JsonProperty("query_data_type")] + [System.Text.Json.Serialization.JsonPropertyName("query_data_type")] + public int QueryDataType { get; set; } + + /// + /// 获取或设置抖音号列表。 + /// + [Newtonsoft.Json.JsonProperty("aweme_short_id_list")] + [System.Text.Json.Serialization.JsonPropertyName("aweme_short_id_list")] + public IList? AwemeShortIdList { get; set; } + + /// + /// 获取或设置视频 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("item_id_list")] + [System.Text.Json.Serialization.JsonPropertyName("item_id_list")] + public IList? ItemIdList { get; set; } + + /// + /// 获取或设置加密的视频 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("open_item_id_list")] + [System.Text.Json.Serialization.JsonPropertyName("open_item_id_list")] + public IList? OpenItemIdList { get; set; } + + /// + /// 获取或设置直播间 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("room_id_list")] + [System.Text.Json.Serialization.JsonPropertyName("room_id_list")] + public IList? LiveRoomIdList { get; set; } + + /// + /// 获取或设置分页页数。 + /// 默认值:1 + /// + [Newtonsoft.Json.JsonProperty("page_no")] + [System.Text.Json.Serialization.JsonPropertyName("page_no")] + public int PageNumber { get; set; } = 1; + + /// + /// 获取或设置分页每页数量。 + /// 默认值:10 + /// + [Newtonsoft.Json.JsonProperty("page_size")] + [System.Text.Json.Serialization.JsonPropertyName("page_size")] + public int PageSize { get; set; } = 10; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveDataWithIdV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveDataWithIdV2Response.cs new file mode 100644 index 00000000..c57e147b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveDataWithIdV2Response.cs @@ -0,0 +1,540 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /api/platform/v2/data_analysis/query_short_live_data_with_id/ 接口的响应。 + /// + public class PlatformDataAnalysisQueryShortLiveDataWithIdV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class ShortLiveData + { + /// + /// 获取或设置视频 ID。 + /// + [Newtonsoft.Json.JsonProperty("item_id")] + [System.Text.Json.Serialization.JsonPropertyName("item_id")] + public string? ItemId { get; set; } + + /// + /// 获取或设置加密的视频 ID。 + /// + [Newtonsoft.Json.JsonProperty("open_item_id_list")] + [System.Text.Json.Serialization.JsonPropertyName("open_item_id_list")] + public string? OpenItemId { get; set; } + + /// + /// 获取或设置视频标题。 + /// + [Newtonsoft.Json.JsonProperty("item_title")] + [System.Text.Json.Serialization.JsonPropertyName("item_title")] + public string? ItemTitle { get; set; } + + /// + /// 获取或设置视频封面 URL。 + /// + [Newtonsoft.Json.JsonProperty("item_cover")] + [System.Text.Json.Serialization.JsonPropertyName("item_cover")] + public string? ItemCoverUrl { get; set; } + + /// + /// 获取或设置视频播放 URL。 + /// + [Newtonsoft.Json.JsonProperty("item_addr")] + [System.Text.Json.Serialization.JsonPropertyName("item_addr")] + public string? ItemPlayerUrl { get; set; } + + /// + /// 获取或设置视频作者的抖音号。 + /// + [Newtonsoft.Json.JsonProperty("item_aweme_shortid")] + [System.Text.Json.Serialization.JsonPropertyName("item_aweme_shortid")] + public string? ItemAwemeShortId { get; set; } + + /// + /// 获取或设置视频作者的类型。 + /// + [Newtonsoft.Json.JsonProperty("item_aweme_type")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("item_aweme_type")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? ItemAwemeType { get; set; } + + /// + /// 获取或设置视频作者的昵称。 + /// + [Newtonsoft.Json.JsonProperty("item_aweme_name")] + [System.Text.Json.Serialization.JsonPropertyName("item_aweme_name")] + public string? ItemAwemeNickname { get; set; } + + /// + /// 获取或设置视频作者的头像 URL。 + /// + [Newtonsoft.Json.JsonProperty("item_aweme_avatar")] + [System.Text.Json.Serialization.JsonPropertyName("item_aweme_avatar")] + public string? ItemAwemeAvatarUrl { get; set; } + + /// + /// 获取或设置视频时长(单位:秒)。 + /// + [Newtonsoft.Json.JsonProperty("item_duration")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("item_duration")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? ItemDuration { get; set; } + + /// + /// 获取或设置视频创建时间戳。 + /// + [Newtonsoft.Json.JsonProperty("item_create_time")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("item_create_time")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public long? ItemCreateTimestamp { get; set; } + + /// + /// 获取或设置视频完播次数。 + /// + [Newtonsoft.Json.JsonProperty("item_last_frame_watch_cnt")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("item_last_frame_watch_cnt")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? ItemLastFrameWatchCount { get; set; } + + /// + /// 获取或设置视频完播率字符串(格式:d%)。 + /// + [Newtonsoft.Json.JsonProperty("item_completion_rate")] + [System.Text.Json.Serialization.JsonPropertyName("item_completion_rate")] + public string? ItemCompletionRateString { get; set; } + + /// + /// 获取或设置视频评论次数。 + /// + [Newtonsoft.Json.JsonProperty("item_comment_count")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("item_comment_count")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? ItemCommentCount { get; set; } + + /// + /// 获取或设置视频点赞次数。 + /// + [Newtonsoft.Json.JsonProperty("item_like_count")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("item_like_count")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? ItemLikeCount { get; set; } + + /// + /// 获取或设置视频分享次数。 + /// + [Newtonsoft.Json.JsonProperty("item_share_count")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("item_share_count")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? ItemShareCount { get; set; } + + /// + /// 获取或设置视频播放次数。 + /// + [Newtonsoft.Json.JsonProperty("item_vv")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("item_vv")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? ItemVV { get; set; } + + /// + /// 获取或设置视频播放人数。 + /// + [Newtonsoft.Json.JsonProperty("item_uv")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("item_uv")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? ItemUV { get; set; } + + /// + /// 获取或设置直播间 ID。 + /// + [Newtonsoft.Json.JsonProperty("room_id")] + [System.Text.Json.Serialization.JsonPropertyName("room_id")] + public string? LiveRoomId { get; set; } + + /// + /// 获取或设置直播间作者的抖音号。 + /// + [Newtonsoft.Json.JsonProperty("room_aweme_shortid")] + [System.Text.Json.Serialization.JsonPropertyName("room_aweme_shortid")] + public string? LiveRoomAwemeShortId { get; set; } + + /// + /// 获取或设置直播间作者的类型。 + /// + [Newtonsoft.Json.JsonProperty("room_aweme_type")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("room_aweme_type")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? LiveRoomAwemeType { get; set; } + + /// + /// 获取或设置直播间作者的昵称。 + /// + [Newtonsoft.Json.JsonProperty("room_aweme_nickname")] + [System.Text.Json.Serialization.JsonPropertyName("room_aweme_nickname")] + public string? LiveRoomAwemeNickname { get; set; } + + /// + /// 获取或设置直播间作者的头像 URL。 + /// + [Newtonsoft.Json.JsonProperty("room_aweme_avt")] + [System.Text.Json.Serialization.JsonPropertyName("room_aweme_avt")] + public string? LiveRoomAwemeAvatarUrl { get; set; } + + /// + /// 获取或设置直播间开播时长(单位:秒)。 + /// + [Newtonsoft.Json.JsonProperty("room_duration")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("room_duration")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? LiveRoomDuration { get; set; } + + /// + /// 获取或设置直播间开播时间戳。 + /// + [Newtonsoft.Json.JsonProperty("room_create_time")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("room_create_time")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public long? LiveRoomCreateTimestamp { get; set; } + + /// + /// 获取或设置直播间关播时间戳。 + /// + [Newtonsoft.Json.JsonProperty("room_finish_time")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("room_finish_time")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public long? LiveRoomFinishTimestamp { get; set; } + + /// + /// 获取或设置直播间最高在线人数。 + /// + [Newtonsoft.Json.JsonProperty("room_highest_online_count")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("room_highest_online_count")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? LiveRoomHighestOnlineUserCount { get; set; } + + /// + /// 获取或设置直播间人均观看时长(单位:秒)。 + /// + [Newtonsoft.Json.JsonProperty("room_once_watch_duration")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("room_once_watch_duration")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? LiveRoomOnceWatchDuration { get; set; } + + /// + /// 获取或设置直播间评论次数。 + /// + [Newtonsoft.Json.JsonProperty("room_comment_count")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("room_comment_count")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? LiveRoomCommentCount { get; set; } + + /// + /// 获取或设置直播间评论人数。 + /// + [Newtonsoft.Json.JsonProperty("room_comment_user_count")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("room_comment_user_count")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? LiveRoomCommentUserCount { get; set; } + + /// + /// 获取或设置直播间点赞次数。 + /// + [Newtonsoft.Json.JsonProperty("room_like_count")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("room_like_count")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? LiveRoomLikeCount { get; set; } + + /// + /// 获取或设置直播间点赞人数。 + /// + [Newtonsoft.Json.JsonProperty("room_like_user_count")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("room_like_user_count")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? LiveRoomLikeUserCount { get; set; } + + /// + /// 获取或设置直播间分享次数。 + /// + [Newtonsoft.Json.JsonProperty("room_share_count")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("room_share_count")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? LiveRoomShareCount { get; set; } + + /// + /// 获取或设置直播间分享人数。 + /// + [Newtonsoft.Json.JsonProperty("room_share_user_count")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("room_share_user_count")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? LiveRoomShareUserCount { get; set; } + + /// + /// 获取或设置小程序曝光次数。 + /// + [Newtonsoft.Json.JsonProperty("mp_show_pv")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("mp_show_pv")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int MicroAppShowPV { get; set; } + + /// + /// 获取或设置小程序曝光人数。 + /// + [Newtonsoft.Json.JsonProperty("mp_show_uv")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("mp_show_uv")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int MicroAppShowUV { get; set; } + + /// + /// 获取或设置小程序点击次数。 + /// + [Newtonsoft.Json.JsonProperty("mp_click_pv")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("mp_click_pv")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int MicroAppClickPV { get; set; } + + /// + /// 获取或设置小程序点击人数。 + /// + [Newtonsoft.Json.JsonProperty("mp_click_uv")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("mp_click_uv")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int MicroAppClickUV { get; set; } + + /// + /// 获取或设置小程序点击率字符串(格式:d%)。 + /// + [Newtonsoft.Json.JsonProperty("mp_click_rate")] + [System.Text.Json.Serialization.JsonPropertyName("mp_click_rate")] + public string? MicroAppClickRateString { get; set; } + + /// + /// 获取或设置进入小程序次数。 + /// + [Newtonsoft.Json.JsonProperty("mp_drainage_pv")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("mp_drainage_pv")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int MicroAppDrainagePV { get; set; } + + /// + /// 获取或设置进入小程序人数。 + /// + [Newtonsoft.Json.JsonProperty("mp_drainage_uv")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("mp_drainage_uv")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int MicroAppDrainageUV { get; set; } + + /// + /// 获取或设置直播间曝光次数。 + /// + [Newtonsoft.Json.JsonProperty("room_show_pv")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("room_show_pv")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? LiveRoomShowPV { get; set; } + + /// + /// 获取或设置直播间曝光人数。 + /// + [Newtonsoft.Json.JsonProperty("room_show_uv")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("room_show_uv")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? LiveRoomShowUV { get; set; } + + /// + /// 获取或设置直播间观看次数。 + /// + [Newtonsoft.Json.JsonProperty("room_watch_pv")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("room_watch_pv")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? LiveRoomWatchPV { get; set; } + + /// + /// 获取或设置直播间观看人数。 + /// + [Newtonsoft.Json.JsonProperty("room_watch_uv")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("room_watch_uv")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? LiveRoomWatchUV { get; set; } + + /// + /// 获取或设置直播间看播率字符串(格式:d%)。 + /// + [Newtonsoft.Json.JsonProperty("room_watch_rate")] + [System.Text.Json.Serialization.JsonPropertyName("room_watch_rate")] + public string? LiveRoomWatchRateString { get; set; } + + /// + /// 获取或设置直播间互动率字符串(格式:d%)。 + /// + [Newtonsoft.Json.JsonProperty("room_interactive_rate")] + [System.Text.Json.Serialization.JsonPropertyName("room_interactive_rate")] + public string? LiveRoomInteractiveRateString { get; set; } + + /// + /// 获取或设置支付订单数。 + /// + [Newtonsoft.Json.JsonProperty("pay_order_cnt")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("pay_order_cnt")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int PayOrderCount { get; set; } + + /// + /// 获取或设置支付人数。 + /// + [Newtonsoft.Json.JsonProperty("pay_customer_cnt")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("pay_customer_cnt")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int PayUserCount { get; set; } + + /// + /// 获取或设置支付金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("pay_order_amount")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("pay_order_amount")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public long PayOrderAmount { get; set; } + + /// + /// 获取或设置退款订单数。 + /// + [Newtonsoft.Json.JsonProperty("refund_order_cnt")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("refund_order_cnt")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int RefundOrderCount { get; set; } + + /// + /// 获取或设置退款人数。 + /// + [Newtonsoft.Json.JsonProperty("refund_customer_cnt")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("refund_customer_cnt")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int RefundUserCount { get; set; } + + /// + /// 获取或设置退款金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("refund_amount")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("refund_amount")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public long RefundAmount { get; set; } + + /// + /// 获取或设置客单价(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("customer_once_price")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("customer_once_price")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public long CustomerOncePrice { get; set; } + + /// + /// 获取或设置单均价(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("order_once_price")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("order_once_price")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public long OrderOncePrice { get; set; } + + /// + /// 获取或设置直播间 UV 价值(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("room_uv_price")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("room_uv_price")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public long? LiveRoomUVPrice { get; set; } + + /// + /// 获取或设置 BC 账号绑定关系。 + /// + [Newtonsoft.Json.JsonProperty("bc_relation_bind_type")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("bc_relation_bind_type")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? BCRelationBindType { get; set; } + + /// + /// 获取或设置开播平台。 + /// + [Newtonsoft.Json.JsonProperty("app_type")] + [Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberReadOnlyConverter))] + [System.Text.Json.Serialization.JsonPropertyName("app_type")] + [System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.TextualNumberReadOnlyConverter))] + public int? AppType { get; set; } + } + } + + /// + /// 获取或设置短视频或直播间数据列表。 + /// + [Newtonsoft.Json.JsonProperty("data_list")] + [System.Text.Json.Serialization.JsonPropertyName("data_list")] + public Types.ShortLiveData[]? ShortLiveDataList { get; set; } + + /// + /// 获取或设置短视频或直播间每日数据字典。 + /// + [Newtonsoft.Json.JsonProperty("detail_data")] + [System.Text.Json.Serialization.JsonPropertyName("detail_data")] + public IDictionary? ShortLiveDailyDataMap { get; set; } + + /// + /// 获取或设置总数量。 + /// + [Newtonsoft.Json.JsonProperty("sum")] + [System.Text.Json.Serialization.JsonPropertyName("sum")] + public int TotalCount { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveIdWithAwemeIdV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveIdWithAwemeIdV2Request.cs new file mode 100644 index 00000000..a70229d5 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveIdWithAwemeIdV2Request.cs @@ -0,0 +1,52 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /api/platform/v2/data_analysis/query_short_live_id_with_awemeid/ 接口的请求。 + /// + public class PlatformDataAnalysisQueryShortLiveIdWithAwemeIdV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("start_time")] + [System.Text.Json.Serialization.JsonPropertyName("start_time")] + public long StartTimestamp { get; set; } + + /// + /// 获取或设置结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("end_time")] + [System.Text.Json.Serialization.JsonPropertyName("end_time")] + public long EndTimestamp { get; set; } + + /// + /// 获取或设置宿主名称。 + /// + [Newtonsoft.Json.JsonProperty("host_name")] + [System.Text.Json.Serialization.JsonPropertyName("host_name")] + public string? HostName { get; set; } + + /// + /// 获取或设置查询数据的挂载类型。 + /// + [Newtonsoft.Json.JsonProperty("query_bind_type")] + [System.Text.Json.Serialization.JsonPropertyName("query_bind_type")] + public int QueryBindType { get; set; } + + /// + /// 获取或设置查询数据的列表类型。 + /// + [Newtonsoft.Json.JsonProperty("query_data_type")] + [System.Text.Json.Serialization.JsonPropertyName("query_data_type")] + public int? QueryDataType { get; set; } + + /// + /// 获取或设置抖音号列表。 + /// + [Newtonsoft.Json.JsonProperty("aweme_short_id_list")] + [System.Text.Json.Serialization.JsonPropertyName("aweme_short_id_list")] + public IList AwemeShortIdList { get; set; } = new List(); + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveIdWithAwemeIdV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveIdWithAwemeIdV2Response.cs new file mode 100644 index 00000000..4c20a34c --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveIdWithAwemeIdV2Response.cs @@ -0,0 +1,66 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /api/platform/v2/data_analysis/query_short_live_id_with_awemeid/ 接口的响应。 + /// + public class PlatformDataAnalysisQueryShortLiveIdWithAwemeIdV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class OverviewData + { + /// + /// 获取或设置播放视频数。 + /// + [Newtonsoft.Json.JsonProperty("item_watched_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("item_watched_cnt")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int ItemWatchedCount { get; set; } + + /// + /// 获取或设置视频投稿数。 + /// + [Newtonsoft.Json.JsonProperty("item_contribute_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("item_contribute_cnt")] + [System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] + public int ItemContributeCount { get; set; } + } + } + + /// + /// 获取或设置总览信息。 + /// + [Newtonsoft.Json.JsonProperty("over_view_data")] + [System.Text.Json.Serialization.JsonPropertyName("over_view_data")] + public Types.OverviewData OverviewData { get; set; } = default!; + + /// + /// 获取或设置抖音号发布的短视频 ID 列表字典。 + /// + [Newtonsoft.Json.JsonProperty("item_data")] + [System.Text.Json.Serialization.JsonPropertyName("item_data")] + public IDictionary? ItemIdListMap { get; set; } + + /// + /// 获取或设置抖音号发布的直播间 ID 列表字典。 + /// + [Newtonsoft.Json.JsonProperty("live_data")] + [System.Text.Json.Serialization.JsonPropertyName("live_data")] + public IDictionary? LiveRoomIdListMap { get; set; } + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoDataV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoDataV2Request.cs new file mode 100644 index 00000000..f9fed2e2 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoDataV2Request.cs @@ -0,0 +1,59 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /api/platform/v2/data_analysis/query_video_data/ 接口的请求。 + /// + public class PlatformDataAnalysisQueryVideoDataV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("start_time")] + [System.Text.Json.Serialization.JsonPropertyName("start_time")] + public long StartTimestamp { get; set; } + + /// + /// 获取或设置结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("end_time")] + [System.Text.Json.Serialization.JsonPropertyName("end_time")] + public long EndTimestamp { get; set; } + + /// + /// 获取或设置宿主名称。 + /// + [Newtonsoft.Json.JsonProperty("host_name")] + [System.Text.Json.Serialization.JsonPropertyName("host_name")] + public string? HostName { get; set; } + + /// + /// 获取或设置查询数据的挂载类型。 + /// + [Newtonsoft.Json.JsonProperty("query_bind_type")] + [System.Text.Json.Serialization.JsonPropertyName("query_bind_type")] + public int QueryBindType { get; set; } + + /// + /// 获取或设置抖音号列表。 + /// + [Newtonsoft.Json.JsonProperty("aweme_short_id_list")] + [System.Text.Json.Serialization.JsonPropertyName("aweme_short_id_list")] + public IList? AwemeShortIdList { get; set; } + + /// + /// 获取或设置视频 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("item_id_list")] + [System.Text.Json.Serialization.JsonPropertyName("item_id_list")] + public IList? ItemIdList { get; set; } + + /// + /// 获取或设置加密的视频 ID 列表。 + /// + [Newtonsoft.Json.JsonProperty("open_item_id_list")] + [System.Text.Json.Serialization.JsonPropertyName("open_item_id_list")] + public IList? OpenItemIdList { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoDataV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoDataV2Response.cs new file mode 100644 index 00000000..b1c6f3e5 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoDataV2Response.cs @@ -0,0 +1,198 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /api/platform/v2/data_analysis/query_video_data/ 接口的响应。 + /// + public class PlatformDataAnalysisQueryVideoDataV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class VideoDealOverviewData + { + /// + /// 获取或设置视频播放次数。 + /// + [Newtonsoft.Json.JsonProperty("video_play_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("video_play_cnt")] + public int VideoPlayCount { get; set; } + + /// + /// 获取或设置视频播放人数。 + /// + [Newtonsoft.Json.JsonProperty("video_play_user_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("video_play_user_cnt")] + public int VideoPlayUserCount { get; set; } + + /// + /// 获取或设置小程序曝光次数。 + /// + [Newtonsoft.Json.JsonProperty("mp_show_pv")] + [System.Text.Json.Serialization.JsonPropertyName("mp_show_pv")] + public int MicroAppShowPV { get; set; } + + /// + /// 获取或设置小程序曝光人数。 + /// + [Newtonsoft.Json.JsonProperty("mp_show_uv")] + [System.Text.Json.Serialization.JsonPropertyName("mp_show_uv")] + public int MicroAppShowUV { get; set; } + + /// + /// 获取或设置小程序点击次数。 + /// + [Newtonsoft.Json.JsonProperty("mp_click_pv")] + [System.Text.Json.Serialization.JsonPropertyName("mp_click_pv")] + public int MicroAppClickPV { get; set; } + + /// + /// 获取或设置小程序点击人数。 + /// + [Newtonsoft.Json.JsonProperty("mp_click_uv")] + [System.Text.Json.Serialization.JsonPropertyName("mp_click_uv")] + public int MicroAppClickUV { get; set; } + + /// + /// 获取或设置进入小程序次数。 + /// + [Newtonsoft.Json.JsonProperty("mp_drainage_pv")] + [System.Text.Json.Serialization.JsonPropertyName("mp_drainage_pv")] + public int MicroAppDrainagePV { get; set; } + + /// + /// 获取或设置进入小程序人数。 + /// + [Newtonsoft.Json.JsonProperty("mp_drainage_uv")] + [System.Text.Json.Serialization.JsonPropertyName("mp_drainage_uv")] + public int MicroAppDrainageUV { get; set; } + + /// + /// 获取或设置线索数。 + /// + [Newtonsoft.Json.JsonProperty("clue_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("clue_cnt")] + public int ClueCount { get; set; } + + /// + /// 获取或设置有效线索数。 + /// + [Newtonsoft.Json.JsonProperty("valid_clue_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("valid_clue_cnt")] + public int ValidClueCount { get; set; } + + /// + /// 获取或设置创建订单数。 + /// + [Newtonsoft.Json.JsonProperty("create_order_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("create_order_cnt")] + public int CreateOrderCount { get; set; } + + /// + /// 获取或设置创建订单人数。 + /// + [Newtonsoft.Json.JsonProperty("create_customer_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("create_customer_cnt")] + public int CreateUserCount { get; set; } + + /// + /// 获取或设置创建订单金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("create_order_amount")] + [System.Text.Json.Serialization.JsonPropertyName("create_order_amount")] + public long CreateOrderAmount { get; set; } + + /// + /// 获取或设置支付订单数。 + /// + [Newtonsoft.Json.JsonProperty("pay_order_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("pay_order_cnt")] + public int PayOrderCount { get; set; } + + /// + /// 获取或设置支付人数。 + /// + [Newtonsoft.Json.JsonProperty("pay_customer_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("pay_customer_cnt")] + public int PayUserCount { get; set; } + + /// + /// 获取或设置支付金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("pay_order_amount")] + [System.Text.Json.Serialization.JsonPropertyName("pay_order_amount")] + public long PayOrderAmount { get; set; } + + /// + /// 获取或设置退款订单数。 + /// + [Newtonsoft.Json.JsonProperty("refund_order_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("refund_order_cnt")] + public int RefundOrderCount { get; set; } + + /// + /// 获取或设置退款人数。 + /// + [Newtonsoft.Json.JsonProperty("refund_customer_cnt")] + [System.Text.Json.Serialization.JsonPropertyName("refund_customer_cnt")] + public int RefundUserCount { get; set; } + + /// + /// 获取或设置退款金额(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("refund_amount")] + [System.Text.Json.Serialization.JsonPropertyName("refund_amount")] + public long RefundAmount { get; set; } + + /// + /// 获取或设置客单价(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("customer_once_price")] + [System.Text.Json.Serialization.JsonPropertyName("customer_once_price")] + public long CustomerOncePrice { get; set; } + + /// + /// 获取或设置单均价(单位:分)。 + /// + [Newtonsoft.Json.JsonProperty("order_once_price")] + [System.Text.Json.Serialization.JsonPropertyName("order_once_price")] + public long OrderOncePrice { get; set; } + } + + public class VideoDealData : VideoDealOverviewData + { + /// + /// 获取或设置时间字符串。 + /// + [Newtonsoft.Json.JsonProperty("time")] + [System.Text.Json.Serialization.JsonPropertyName("time")] + public string TimeString { get; set; } = default!; + } + } + + /// + /// 获取或设置短视频总览数据信息。 + /// + [Newtonsoft.Json.JsonProperty("video_deal_overview_data")] + [System.Text.Json.Serialization.JsonPropertyName("video_deal_overview_data")] + public Types.VideoDealOverviewData VideoDealOverviewData { get; set; } = default!; + + /// + /// 获取或设置短视频每日数据列表。 + /// + [Newtonsoft.Json.JsonProperty("video_deal_data_list")] + [System.Text.Json.Serialization.JsonPropertyName("video_deal_data_list")] + public Types.VideoDealData[] VideoDealDataList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoWithSourceV2Request.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoWithSourceV2Request.cs new file mode 100644 index 00000000..4d56a76b --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoWithSourceV2Request.cs @@ -0,0 +1,38 @@ +using System.Collections.Generic; + +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /api/platform/v2/data_analysis/query_video_with_source/ 接口的请求。 + /// + public class PlatformDataAnalysisQueryVideoWithSourceV2Request : DouyinMicroAppRequest + { + /// + /// 获取或设置开始时间戳。 + /// + [Newtonsoft.Json.JsonProperty("start_time")] + [System.Text.Json.Serialization.JsonPropertyName("start_time")] + public long StartTimestamp { get; set; } + + /// + /// 获取或设置结束时间戳。 + /// + [Newtonsoft.Json.JsonProperty("end_time")] + [System.Text.Json.Serialization.JsonPropertyName("end_time")] + public long EndTimestamp { get; set; } + + /// + /// 获取或设置宿主名称。 + /// + [Newtonsoft.Json.JsonProperty("host_name")] + [System.Text.Json.Serialization.JsonPropertyName("host_name")] + public string? HostName { get; set; } + + /// + /// 获取或设置抖音号列表。 + /// + [Newtonsoft.Json.JsonProperty("aweme_short_id_list")] + [System.Text.Json.Serialization.JsonPropertyName("aweme_short_id_list")] + public IList? AwemeShortIdList { get; set; } + } +} diff --git a/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoWithSourceV2Response.cs b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoWithSourceV2Response.cs new file mode 100644 index 00000000..7b376ed9 --- /dev/null +++ b/src/SKIT.FlurlHttpClient.ByteDance.MicroApp/Models/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoWithSourceV2Response.cs @@ -0,0 +1,96 @@ +namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models +{ + /// + /// 表示 [POST] /api/platform/v2/data_analysis/query_video_with_source/ 接口的响应。 + /// + public class PlatformDataAnalysisQueryVideoWithSourceV2Response : DouyinMicroAppResponse + { + public static class Types + { + public class Data + { + public static class Types + { + public class VideoData + { + public static class Types + { + public class CommonData + { + /// + /// 获取或设置小程序曝光次数。 + /// + [Newtonsoft.Json.JsonProperty("MpShowPv")] + [System.Text.Json.Serialization.JsonPropertyName("MpShowPv")] + public int MicroAppShowPV { get; set; } + + /// + /// 获取或设置小程序曝光人数。 + /// + [Newtonsoft.Json.JsonProperty("MpShowUv")] + [System.Text.Json.Serialization.JsonPropertyName("MpShowUv")] + public int MicroAppShowUV { get; set; } + + /// + /// 获取或设置进入小程序次数。 + /// + [Newtonsoft.Json.JsonProperty("MpDrainagePv")] + [System.Text.Json.Serialization.JsonPropertyName("MpDrainagePv")] + public int MicroAppDrainagePV { get; set; } + + /// + /// 获取或设置进入小程序人数。 + /// + [Newtonsoft.Json.JsonProperty("MpDrainageUv")] + [System.Text.Json.Serialization.JsonPropertyName("MpDrainageUv")] + public int MicroAppDrainageUV { get; set; } + } + } + + /// + /// 获取或设置场景值。 + /// + [Newtonsoft.Json.JsonProperty("Scenes")] + [System.Text.Json.Serialization.JsonPropertyName("Scenes")] + public string Scene { get; set; } = default!; + + /// + /// 获取或设置场景名称。 + /// + [Newtonsoft.Json.JsonProperty("ScenesName")] + [System.Text.Json.Serialization.JsonPropertyName("ScenesName")] + public string SceneName { get; set; } = default!; + + /// + /// 获取或设置统计数据。 + /// + [Newtonsoft.Json.JsonProperty("CommonData")] + [System.Text.Json.Serialization.JsonPropertyName("CommonData")] + public Types.CommonData CommonData { get; set; } = default!; + + /// + /// 获取或设置视频播放次数。 + /// + [Newtonsoft.Json.JsonProperty("VideoPlayCount")] + [System.Text.Json.Serialization.JsonPropertyName("VideoPlayCount")] + public int VideoPlayCount { get; set; } + } + } + + /// + /// 获取或设置短视频流量来源数据列表。 + /// + [Newtonsoft.Json.JsonProperty("DataList")] + [System.Text.Json.Serialization.JsonPropertyName("DataList")] + public Types.VideoData[] VideoDataList { get; set; } = default!; + } + } + + /// + /// 获取或设置返回数据。 + /// + [Newtonsoft.Json.JsonProperty("data")] + [System.Text.Json.Serialization.JsonPropertyName("data")] + public Types.Data Data { get; set; } = default!; + } +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDataV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDataV2Request.json new file mode 100644 index 00000000..7fa37235 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDataV2Request.json @@ -0,0 +1,7 @@ +{ + "page_size": 1, + "start_time": 17217979, + "end_time": 4780363493, + "componentId_list": [], + "page_no": 1 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDataV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDataV2Response.json new file mode 100644 index 00000000..7364b605 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDataV2Response.json @@ -0,0 +1,70 @@ +{ + "data": { + "DataList": [ + { + "ComponentClickPv": 50, + "ComponentClickUv": 6, + "ComponentId": "4cbc57c0949fa07ba718f1202d8c5ac6", + "ComponentName": "陈设测试", + "ComponentReportPv": 171, + "ComponentReportUv": 6, + "ComponentShowPv": 42, + "ComponentShowUv": 9 + }, + { + "ComponentClickPv": 10, + "ComponentClickUv": 1, + "ComponentId": "093e4cd2135a967dabad43f96564c7db", + "ComponentName": "陈设测试1", + "ComponentReportPv": 1, + "ComponentReportUv": 1, + "ComponentShowPv": 1, + "ComponentShowUv": 1 + }, + { + "ComponentClickPv": 9, + "ComponentClickUv": 1, + "ComponentId": "61adda99594c19e7733fc8af512388ae", + "ComponentName": "陈设测试4", + "ComponentReportPv": 1, + "ComponentReportUv": 1, + "ComponentShowPv": 1, + "ComponentShowUv": 1 + }, + { + "ComponentClickPv": 7, + "ComponentClickUv": 1, + "ComponentId": "caa8daa5a7fe93a65b736392f698e56f", + "ComponentName": "陈设测试3", + "ComponentReportPv": 1, + "ComponentReportUv": 1, + "ComponentShowPv": 1, + "ComponentShowUv": 1 + }, + { + "ComponentClickPv": 8, + "ComponentClickUv": 1, + "ComponentId": "f0f696d9d808e04cb2528c762a79dbb4", + "ComponentName": "陈设测试2", + "ComponentReportPv": 1, + "ComponentReportUv": 1, + "ComponentShowPv": 1, + "ComponentShowUv": 1 + }, + { + "ComponentClickPv": 9, + "ComponentClickUv": 1, + "ComponentId": "fbca42a8c3ce85cc20704b50eae6b94c", + "ComponentName": "陈设测试5", + "ComponentReportPv": 4, + "ComponentReportUv": 1, + "ComponentShowPv": 1, + "ComponentShowUv": 1 + } + ], + "Total": 6 + }, + "err_msg": "success", + "err_no": 0, + "log_id": "20230625113633EA2ABA88EB7F721B6E4D" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDetailV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDetailV2Request.json new file mode 100644 index 00000000..59e49890 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDetailV2Request.json @@ -0,0 +1,9 @@ +{ + "start_time": 1113398621, + "end_time": 377200, + "componentId_list": [], + "is_query_live": true, + "is_query_video": false, + "page_no": 1, + "page_size": 10 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDetailV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDetailV2Response.json new file mode 100644 index 00000000..3e5bf7da --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithDetailV2Response.json @@ -0,0 +1,63 @@ +{ + "data": { + "LiveData": { + "Total": 1, + "DataList": [ + { + "Data": { + "ComponentClickPv": 9, + "ComponentClickUv": 2, + "ComponentId": "", + "ComponentName": "", + "ComponentReportPv": 1, + "ComponentReportUv": 1, + "ComponentShowPv": 2, + "ComponentShowUv": 2 + }, + "RoomCreateTime": 1686131868, + "RoomDuration": 4, + "RoomId": 7241881205325499000, + "ShortInfo": { + "AccountType": 0, + "Avat": "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-0813_acf168dca4854fb390763275689ec289.jpeg?from=3782654143", + "AwemeShortID": "huochetou655", + "Nickname": "火车头🚞" + } + } + ] + }, + "VideoData": { + "DataList": [ + { + "Data": { + "ComponentClickPv": 9, + "ComponentClickUv": 2, + "ComponentId": "", + "ComponentName": "", + "ComponentReportPv": 1, + "ComponentReportUv": 1, + "ComponentShowPv": 2, + "ComponentShowUv": 2 + }, + "ItemAddr": "http://v5-i.douyinvod.com/79ba3e546339ea5448ca053f51ddacfd/6497be8a/video/tos/cn/tos-cn-ve-15c001-alinc2/o4UgCQGInJdSFBqzgDbUAzSzI8VenkAACYG9fA/?a=2176&ch=289&cr=0&dr=0&lr=all&cd=0%7C0%7C0%7C0&br=1074&bt=1074&cs=0&ds=3&ft=Cppx.nnrThWH6FiY0.bmo0P&mime_type=video_mp4&qs=0&rc=NTc8Njk7ZWc0NTU6aGQzN0BpanNscTk6ZjQ4bDMzNGkzM0A2LzNeL2FeXzAxLV4xMTI0YSNlNWwvcjRnNi1gLS1kLS9zcw%3D%3D&l=20230625111150D4EFD41F08830F2202F3&btag=e00008000&cdn_n80=1", + "ItemCover": "https://p26-sign.douyinpic.com/tos-cn-p-0015/ogFKCenh9AAsgIyGkADEfSBAVAkgJMtEgkbjZ6~c5_300x400.jpeg?x-expires=1688871600&x-signature=D820qyRcZEBCYQ9rJhmLyNLnN5E%3D&from=3213915784_large&s=PackSourceEnum_OPENPLATFORM_SCREEN&se=false&sc=cover&biz_tag=aweme_video&l=20230625111150D4EFD41F08830F2202F3", + "ItemCreateTime": 1686131868, + "ItemDuration": 4, + "ItemId": 7241881205325499000, + "ItemTitle": "", + "ItemVv": 86, + "ShortInfo": { + "AccountType": 0, + "Avat": "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-i-0813_acf168dca4854fb390763275689ec289.jpeg?from=3782654143", + "AwemeShortID": "huochetou655", + "Nickname": "火车头🚞" + } + } + ], + "Total": 1 + } + }, + "err_msg": "success", + "err_no": 0, + "log_id": "20230625111150D4EFD41F08830F2202F3" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithOverviewV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithOverviewV2Request.json new file mode 100644 index 00000000..02415ca2 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithOverviewV2Request.json @@ -0,0 +1,5 @@ +{ + "start_time": 4129985245788524837, + "end_time": 6136550683620028954, + "componentId_list": [ "3ND5vHMmKz" ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithOverviewV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithOverviewV2Response.json new file mode 100644 index 00000000..cc9af375 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithOverviewV2Response.json @@ -0,0 +1,34 @@ +{ + "err_no": 0, + "log_id": "20240109180849D46806ACB8D19E0802F9", + "data": { + "ComponentDataInfoList": [ + { + "ClueUcnt": 0, + "ComponentClickUv": 1, + "ComponentReportPv": 0, + "ComponentReportUv": 0, + "ComponentShowPv": 1, + "Date": "20231128", + "ValidClueCnt": 0, + "ClueCnt": 0, + "ValidClueUcnt": 0, + "ComponentShowUv": 1, + "ComponentClickPv": 1 + } + ], + "ComponentOverviewData": { + "ValidClueUcnt": 0, + "ClueCnt": 0, + "ComponentClickPv": 1, + "ComponentReportPv": 0, + "ComponentReportUv": 0, + "ValidClueCnt": 0, + "ClueUcnt": 0, + "ComponentClickUv": 1, + "ComponentShowPv": 1, + "ComponentShowUv": 1 + } + }, + "err_msg": "" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithSourceV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithSourceV2Request.json new file mode 100644 index 00000000..9f17a388 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithSourceV2Request.json @@ -0,0 +1,5 @@ +{ + "start_time": 1113398621, + "end_time": 377200, + "componentId_list": [] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithSourceV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithSourceV2Response.json new file mode 100644 index 00000000..71179c8e --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Component/PlatformDataAnalysisQueryComponentWithSourceV2Response.json @@ -0,0 +1,45 @@ +{ + "data": { + "ScenesDataList": [ + { + "Data": { + "ComponentClickPv": 24, + "ComponentClickUv": 2, + "ComponentReportPv": 21, + "ComponentReportUv": 2, + "ComponentShowPv": 9, + "ComponentShowUv": 2 + }, + "Scenes": "solid_entrance", + "ScenesName": "固定入口" + }, + { + "Data": { + "ComponentClickPv": 9, + "ComponentClickUv": 2, + "ComponentReportPv": 1, + "ComponentReportUv": 1, + "ComponentShowPv": 2, + "ComponentShowUv": 2 + }, + "Scenes": "video", + "ScenesName": "短视频" + }, + { + "Data": { + "ComponentClickPv": 60, + "ComponentClickUv": 7, + "ComponentReportPv": 157, + "ComponentReportUv": 8, + "ComponentShowPv": 36, + "ComponentShowUv": 10 + }, + "Scenes": "other", + "ScenesName": "其它" + } + ] + }, + "err_msg": "success", + "err_no": 0, + "log_id": "20230624224047AC0C108A4419A091657E" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Live/PlatformDataAnalysisQueryLiveWithShortIdV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Live/PlatformDataAnalysisQueryLiveWithShortIdV2Request.json new file mode 100644 index 00000000..511de0e1 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Live/PlatformDataAnalysisQueryLiveWithShortIdV2Request.json @@ -0,0 +1,8 @@ +{ + "host_name": "douyin", + "aweme_short_id_list": [], + "page_no": 1, + "page_size": 10, + "start_time": 620444184735, + "end_time": 1644457405 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Live/PlatformDataAnalysisQueryLiveWithShortIdV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Live/PlatformDataAnalysisQueryLiveWithShortIdV2Response.json new file mode 100644 index 00000000..a1dd9a7e --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Live/PlatformDataAnalysisQueryLiveWithShortIdV2Response.json @@ -0,0 +1,25 @@ +{ + "data": { + "ShortDataList": [ + { + "Data": { + "PayCustomerCnt": 0, + "PayOrderAmount": 0, + "RoomDuration": 37532, + "RoomHighestOnlineCount": 6, + "RoomNewFans": 0, + "RoomSessionCnt": 58 + }, + "ShortInfo": { + "AccountType": 1, + "Avat": "https://p3.douyinpic.com/aweme/100x100/aweme-avatar/tos-cn-avt-0015_87906d32936af5f7c66d8bdf10149a7f.jpeg?from=3782654143", + "AwemeShortID": "lmn7455", + "Nickname": "喵喵喵喵" + } + } + ], + "Total": 5 + }, + "err_msg": "success", + "err_no": 0 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOrderDataV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOrderDataV2Response.json new file mode 100644 index 00000000..a3188fd3 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOrderDataV2Response.json @@ -0,0 +1,37 @@ +{ + "data": { + "app_id": "ttxxxfffffffff", + "app_name": "小程序名称", + "order_data": { + "ext_702453453599": { + "anchor_id": "149148", + "app_id": "ttxxxfffffffff", + "app_name": "小程序名称", + "delivery_success_amount": "85", + "nick_name": "test_v3_65", + "order_status": "已退款", + "pay_amount": "175", + "pay_time": "1668222318", + "refund_success_amount": "165", + "room_id": "49483114" + }, + "ext_702453453699": { + "anchor_id": "149148", + "app_id": "ttxxxfffffffff", + "app_name": "小程序名称", + "delivery_success_amount": "85", + "nick_name": "test_v3_65", + "order_status": "已退款", + "pay_amount": "175", + "pay_time": "1668222319", + "refund_success_amount": "165", + "room_id": "49483114" + } + }, + "total_num": 12400, + "has_more": true + }, + "err_msg": "success", + "err_no": 0, + "log_id": "xxxxx" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOverviewDataV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOverviewDataV2Response.json new file mode 100644 index 00000000..3ba2526c --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeOverviewDataV2Response.json @@ -0,0 +1,26 @@ +{ + "data": { + "app_id": "ttxxxfffffffff", + "app_name": "小程序名称", + "over_view_data": { + "app_id": "ttxxxfffffffff", + "app_name": "小程序名称", + "delivery_success_amount": "100", + "delivery_success_order_cnt": "10", + "live_anchors_cnt": "1", + "live_duration": "12000", + "live_session_cnt": "2", + "max_watch_user_cnt": "30", + "pay_amount": "40", + "pay_order_cnt": "20", + "per_watch_duration": "10", + "refund_success_amount": "160", + "refund_success_order_cnt": "80", + "watch_duration": "10", + "watch_user_cnt": "100" + } + }, + "err_msg": "success", + "err_no": 0, + "log_id": "xxxxxx" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeRoomDataV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeRoomDataV2Response.json new file mode 100644 index 00000000..fce14094 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/SmallRoom/PlatformDataAnalysisQuerySmallHomeRoomDataV2Response.json @@ -0,0 +1,49 @@ +{ + "data": { + "app_id": "ttxxxfffffffff", + "app_name": "小程序名称", + "room_data": { + "1001": { + "anchor_id": "12345", + "app_id": "ttxxxfffffffff", + "app_name": "小程序名称", + "delivery_success_amount": "50", + "delivery_success_order_cnt": "60", + "end_time": "1672900091", + "live_duration": "6000", + "max_watch_user_cnt": "2", + "nick_name": "主播nick_name", + "pay_amount": "10", + "pay_order_cnt": "20", + "per_watch_duration": "10", + "refund_success_amount": "30", + "refund_success_order_cnt": "40", + "start_time": "1672900091", + "watch_user_cnt": "100000" + }, + "1002": { + "anchor_id": "12345", + "app_id": "ttxxxfffffffff", + "app_name": "小程序名称", + "delivery_success_amount": "50", + "delivery_success_order_cnt": "60", + "end_time": "1672900091", + "live_duration": "6000", + "max_watch_user_cnt": "3", + "nick_name": "我测试的", + "pay_amount": "10", + "pay_order_cnt": "20", + "per_watch_duration": "10", + "refund_success_amount": "30", + "refund_success_order_cnt": "40", + "start_time": "1672900091", + "watch_user_cnt": "100000" + } + }, + "total_num": 2, + "has_more": false + }, + "err_msg": "success", + "err_no": 0, + "log_id": "xxxxxx" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveDataWithIdV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveDataWithIdV2Request.json new file mode 100644 index 00000000..82936899 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveDataWithIdV2Request.json @@ -0,0 +1,11 @@ +{ + "start_time": 1679241600, + "end_time": 1679328000, + "query_bind_type": 1, + "aweme_short_id_list": [ "今天又明天", "明天何其多" ], + "item_id_list": [ "7169582199207939932", "7169582199207457932" ], + "open_item_id_list": [ "@+mBxX3X5nqAF2xpmBxlSuRAyt+dfQfc7UnuQdDXzWUB9BtjSmH12d3fcFVF++2xOEzYKH+kboOjsmFRO+ahTAQ==", "@+mBxX3X5nqAF2xpmBxlSuRAyt+dfQfc7U32ReT7+UkJ8C4jV3H2wk1C8FVF++2xOkETGWYts5haD9aCpAKVqEQ==" ], + "query_data_type": 4, + "page_no": 1, + "page_size": 100 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveDataWithIdV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveDataWithIdV2Response.json new file mode 100644 index 00000000..4970f003 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveDataWithIdV2Response.json @@ -0,0 +1,107 @@ +{ + "err_no": 0, + "err_msg": "success", + "data": { + "data_list": [ + { + "item_id": "7169582199207939932", + "open_item_id_list": "@+mBxX3X5nqAF2xpmBxlSuRAyt+dfQfc7UnuQdDXzWUB9BtjSmH12d3fcFVF++2xOEzYKH+kboOjsmFRO+ahTAQ==", + "item_title": "无敌战神", + "item_cover": "xxx", + "item_addr": "xxx", + "item_aweme_shortid": "今天又明天", + "item_aweme_type": "1", + "item_aweme_name": "xxx", + "item_aweme_avatar": "xxx", + "item_duration": "449", + "item_create_time": "1679241689", + "item_last_frame_watch_cnt": 2, + "item_completion_rate": "10%", + "item_comment_count": "1", + "item_like_count": "1", + "item_share_count": "1", + "item_vv": "20", + "room_id": "7169582199207939932", + "app_type": "1128", + "room_aweme_shortid": "今天又明天", + "room_aweme_type": "1", + "room_aweme_nickname": "xxx", + "room_aweme_avt": "xxx", + "room_duration": "449", + "room_create_time": "1679241689", + "room_finish_time": "1679241989", + "room_highest_online_count": "1", + "room_once_watch_duration": "10", + "room_comment_count": "1", + "room_like_count": "1", + "room_share_count": "1", + "room_comment_user_count": "1", + "room_like_user_count": "1", + "room_share_user_count": "1", + "mp_show_pv": "2", + "mp_click_pv": "2", + "mp_drainage_pv": "2", + "item_uv": "20", + "mp_show_uv": "2", + "mp_click_uv": "2", + "mp_drainage_uv": "2", + "room_show_pv": "3", + "room_show_uv": "3", + "room_watch_pv": "3", + "room_watch_uv": "3", + "room_watch_rate": "100%", + "room_interactive_rate": "0%", + "room_uv_price": "0", + "mp_click_rate": "100%", + "pay_order_cnt": "1", + "pay_customer_cnt": "1", + "pay_order_amount": "1", + "customer_once_price": "1", + "order_once_price": "1", + "refund_customer_cnt": "0", + "refund_order_cnt": "0", + "refund_amount": "0", + "bc_relation_bind_type": "0" + } + ], + "sum": 20, + "detail_data": { + "1679241600": { + "item_id": "7169582199207939932", + "open_item_id_list": "@+mBxX3X5nqAF2xpmBxlSuRAyt+dfQfc7UnuQdDXzWUB9BtjSmH12d3fcFVF++2xOEzYKH+kboOjsmFRO+ahTAQ==", + "item_title": "无敌战神", + "item_cover": "xxx", + "item_addr": "xxx", + "item_aweme_shortid": "今天又明天", + "item_aweme_type": "1", + "item_aweme_name": "xxx", + "item_aweme_avatar": "xxx", + "item_duration": "449", + "item_create_time": "1679241689", + "item_last_frame_watch_cnt": 2, + "item_completion_rate": "10%", + "item_comment_count": "1", + "item_like_count": "1", + "item_share_count": "1", + "item_vv": "20", + "mp_show_pv": "2", + "mp_click_pv": "2", + "mp_drainage_pv": "2", + "item_uv": "20", + "mp_show_uv": "2", + "mp_click_uv": "2", + "mp_drainage_uv": "2", + "pay_order_cnt": "1", + "pay_customer_cnt": "1", + "pay_order_amount": "1", + "customer_once_price": "1", + "order_once_price": "1", + "refund_customer_cnt": "0", + "refund_order_cnt": "0", + "refund_amount": "0", + "bc_relation_bind_type": "0" + } + } + }, + "log_id": "xxx" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveIdWithAwemeIdV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveIdWithAwemeIdV2Request.json new file mode 100644 index 00000000..5554b494 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveIdWithAwemeIdV2Request.json @@ -0,0 +1,8 @@ +{ + "start_time": 1679241600, + "end_time": 1679328000, + "host_name": "douyin", + "query_bind_type": 0, + "aweme_short_id_list": [ "今天又明天", "明天何其多" ], + "query_data_type": 4 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveIdWithAwemeIdV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveIdWithAwemeIdV2Response.json new file mode 100644 index 00000000..051def0d --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryShortLiveIdWithAwemeIdV2Response.json @@ -0,0 +1,17 @@ +{ + "err_no": 0, + "err_msg": "success", + "data": { + "item_data": { + "今天又明天": [ "7169582199207939932", "7169582199683939932" ], + "明天何其多": [ "7169892199207939932", "7169582129207939932" ] + }, + "live_data": { + }, + "over_view_data": { + "item_watched_cnt": "4", + "item_contribute_cnt": "4" + } + }, + "log_id": "xxx" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoDataV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoDataV2Request.json new file mode 100644 index 00000000..ec5659ae --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoDataV2Request.json @@ -0,0 +1,9 @@ +{ + "aweme_short_id_list": [], + "item_id_list": [], + "open_item_id_list": [], + "start_time": 5177295280, + "end_time": 85726091, + "host_name": "douyin", + "query_bind_type": 4 +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoDataV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoDataV2Response.json new file mode 100644 index 00000000..d3403ec5 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoDataV2Response.json @@ -0,0 +1,68 @@ +{ + "err_no": 0, + "err_msg": "success", + "data": { + "video_deal_overview_data": { + "video_play_cnt": 6005, + "mp_show_pv": 5026, + "mp_click_pv": 25, + "create_order_cnt": 0, + "pay_order_cnt": 0, + "mp_drainage_pv": 0, + "mp_drainage_uv": 0, + "mp_show_uv": 0, + "mp_click_uv": 0, + "video_play_user_cnt": 2000, + "pay_customer_cnt": 0, + "pay_order_amount": 0, + "customer_once_price": 0, + "order_once_price": 0, + "refund_customer_cnt": 0, + "refund_order_cnt": 0, + "refund_amount": 0 + }, + "video_deal_data_list": [ + { + "time": "2023-03-20", + "video_play_cnt": 6005, + "mp_show_pv": 5026, + "mp_click_pv": 25, + "create_order_cnt": 0, + "pay_order_cnt": 0, + "mp_drainage_pv": 0, + "mp_drainage_uv": 0, + "mp_show_uv": 0, + "mp_click_uv": 0, + "video_play_user_cnt": 2000, + "pay_customer_cnt": 0, + "pay_order_amount": 0, + "customer_once_price": 0, + "order_once_price": 0, + "refund_customer_cnt": 0, + "refund_order_cnt": 0, + "refund_amount": 0 + }, + { + "time": "2023-03-21", + "video_play_cnt": 6005, + "mp_show_pv": 5026, + "mp_click_pv": 25, + "create_order_cnt": 0, + "pay_order_cnt": 0, + "mp_drainage_pv": 0, + "mp_drainage_uv": 0, + "mp_show_uv": 0, + "mp_click_uv": 0, + "video_play_user_cnt": 2000, + "pay_customer_cnt": 0, + "pay_order_amount": 0, + "customer_once_price": 0, + "order_once_price": 0, + "refund_customer_cnt": 0, + "refund_order_cnt": 0, + "refund_amount": 0 + } + ] + }, + "log_id": "xxx" +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoWithSourceV2Request.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoWithSourceV2Request.json new file mode 100644 index 00000000..0f3b76bb --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoWithSourceV2Request.json @@ -0,0 +1,6 @@ +{ + "start_time": 268677957895199601, + "end_time": 1550656589714520118, + "host_name": "bwVY0ZzgtM", + "aweme_short_id_list": [ "YsJYkhFIGF" ] +} diff --git a/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoWithSourceV2Response.json b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoWithSourceV2Response.json new file mode 100644 index 00000000..6f6f9186 --- /dev/null +++ b/test/SKIT.FlurlHttpClient.ByteDance.MicroApp.UnitTests/ModelSamples/_/PlatformDataAnalysis/Video/PlatformDataAnalysisQueryVideoWithSourceV2Response.json @@ -0,0 +1,74 @@ +{ + "data": { + "DataList": [ + { + "CommonData": { + "MpDrainagePv": 0, + "MpDrainageUv": 0, + "MpShowPv": 34, + "MpShowUv": 13 + }, + "Scenes": "homepage_follow", + "ScenesName": "关注页", + "VideoPlayCount": 0 + }, + { + "CommonData": { + "MpDrainagePv": 0, + "MpDrainageUv": 0, + "MpShowPv": 20, + "MpShowUv": 13 + }, + "Scenes": "others_homepage", + "ScenesName": "他人主页", + "VideoPlayCount": 0 + }, + { + "CommonData": { + "MpDrainagePv": 0, + "MpDrainageUv": 0, + "MpShowPv": 1, + "MpShowUv": 1 + }, + "Scenes": "homepage_fresh", + "ScenesName": "同城页", + "VideoPlayCount": 0 + }, + { + "CommonData": { + "MpDrainagePv": 0, + "MpDrainageUv": 0, + "MpShowPv": 5, + "MpShowUv": 5 + }, + "Scenes": "general_search", + "ScenesName": "综搜页", + "VideoPlayCount": 0 + }, + { + "CommonData": { + "MpDrainagePv": 15, + "MpDrainageUv": 5, + "MpShowPv": 331, + "MpShowUv": 325 + }, + "Scenes": "homepage_hot", + "ScenesName": "推荐页", + "VideoPlayCount": 0 + }, + { + "CommonData": { + "MpDrainagePv": 86, + "MpDrainageUv": 19, + "MpShowPv": 377, + "MpShowUv": 352 + }, + "Scenes": "other", + "ScenesName": "其它", + "VideoPlayCount": 0 + } + ] + }, + "err_msg": "success", + "err_no": 0 +}