Skip to content

Commit

Permalink
feat(microapp): 新增短视频分析、直播分析、小房子直播分析、留资分析等相关接口
Browse files Browse the repository at this point in the history
  • Loading branch information
fudiwei committed May 27, 2024
1 parent 925598a commit 0817eda
Show file tree
Hide file tree
Showing 47 changed files with 3,625 additions and 2 deletions.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
using System.Collections.Generic;

namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models
{
/// <summary>
/// <para>表示 [POST] /api/platform/v2/data_analysis/query_component_with_data/ 接口的请求。</para>
/// </summary>
public class PlatformDataAnalysisQueryComponentWithDataV2Request : DouyinMicroAppRequest
{
/// <summary>
/// 获取或设置开始时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("start_time")]
[System.Text.Json.Serialization.JsonPropertyName("start_time")]
public long StartTimestamp { get; set; }

/// <summary>
/// 获取或设置结束时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("end_time")]
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
public long EndTimestamp { get; set; }

/// <summary>
/// 获取或设置组件配置 ID 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("componentId_list")]
[System.Text.Json.Serialization.JsonPropertyName("componentId_list")]
public IList<string>? ComponentIdList { get; set; }

/// <summary>
/// 获取或设置是否查询短视频维度。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_query_video")]
[System.Text.Json.Serialization.JsonPropertyName("is_query_video")]
public bool IsQueryVideo { get; set; }

/// <summary>
/// 获取或设置是否查询直播维度。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_query_live")]
[System.Text.Json.Serialization.JsonPropertyName("is_query_live")]
public bool IsQueryLive { get; set; }

/// <summary>
/// 获取或设置分页页数。
/// <para>默认值:1</para>
/// </summary>
[Newtonsoft.Json.JsonProperty("page_no")]
[System.Text.Json.Serialization.JsonPropertyName("page_no")]
public int PageNumber { get; set; } = 1;

/// <summary>
/// 获取或设置分页每页数量。
/// <para>默认值:10</para>
/// </summary>
[Newtonsoft.Json.JsonProperty("page_size")]
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
public int PageSize { get; set; } = 10;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models
{
/// <summary>
/// <para>表示 [POST] /api/platform/v2/data_analysis/query_component_with_data/ 接口的响应。</para>
/// </summary>
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
{
}
}

/// <summary>
/// 获取或设置留资组件数据列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("DataList")]
[System.Text.Json.Serialization.JsonPropertyName("DataList")]
public Types.ComponentData[] ComponentDataList { get; set; } = default!;

/// <summary>
/// 获取或设置总数量。
/// </summary>
[Newtonsoft.Json.JsonProperty("Total")]
[System.Text.Json.Serialization.JsonPropertyName("Total")]
public int TotalCount { get; set; }
}
}

/// <summary>
/// 获取或设置返回数据。
/// </summary>
[Newtonsoft.Json.JsonProperty("data")]
[System.Text.Json.Serialization.JsonPropertyName("data")]
public Types.Data Data { get; set; } = default!;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
using System.Collections.Generic;

namespace SKIT.FlurlHttpClient.ByteDance.MicroApp.Models
{
/// <summary>
/// <para>表示 [POST] /api/platform/v2/data_analysis/query_component_with_detail/ 接口的请求。</para>
/// </summary>
public class PlatformDataAnalysisQueryComponentWithDetailV2Request : DouyinMicroAppRequest
{
/// <summary>
/// 获取或设置开始时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("start_time")]
[System.Text.Json.Serialization.JsonPropertyName("start_time")]
public long StartTimestamp { get; set; }

/// <summary>
/// 获取或设置结束时间戳。
/// </summary>
[Newtonsoft.Json.JsonProperty("end_time")]
[System.Text.Json.Serialization.JsonPropertyName("end_time")]
public long EndTimestamp { get; set; }

/// <summary>
/// 获取或设置组件配置 ID 列表。
/// </summary>
[Newtonsoft.Json.JsonProperty("componentId_list")]
[System.Text.Json.Serialization.JsonPropertyName("componentId_list")]
public IList<string>? ComponentIdList { get; set; }

/// <summary>
/// 获取或设置是否查询短视频维度。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_query_video")]
[System.Text.Json.Serialization.JsonPropertyName("is_query_video")]
public bool IsQueryVideo { get; set; }

/// <summary>
/// 获取或设置是否查询直播维度。
/// </summary>
[Newtonsoft.Json.JsonProperty("is_query_live")]
[System.Text.Json.Serialization.JsonPropertyName("is_query_live")]
public bool IsQueryLive { get; set; }

/// <summary>
/// 获取或设置分页页数。
/// <para>默认值:1</para>
/// </summary>
[Newtonsoft.Json.JsonProperty("page_no")]
[System.Text.Json.Serialization.JsonPropertyName("page_no")]
public int PageNumber { get; set; } = 1;

/// <summary>
/// 获取或设置分页每页数量。
/// <para>默认值:10</para>
/// </summary>
[Newtonsoft.Json.JsonProperty("page_size")]
[System.Text.Json.Serialization.JsonPropertyName("page_size")]
public int PageSize { get; set; } = 10;
}
}
Loading

0 comments on commit 0817eda

Please sign in to comment.