feat(work): 随官方更新设置工作台自定义展示相关接口模型

This commit is contained in:
Fu Diwei 2022-06-22 22:10:37 +08:00
parent 7301b8a1aa
commit f0c0245de1
3 changed files with 46 additions and 1 deletions

View File

@ -97,6 +97,27 @@
[Newtonsoft.Json.JsonProperty("pagepath")]
[System.Text.Json.Serialization.JsonPropertyName("pagepath")]
public string? MiniProgramPagePath { get; set; }
/// <summary>
/// 获取或设置高度类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("height")]
[System.Text.Json.Serialization.JsonPropertyName("height")]
public string? HeightType { get; set; }
/// <summary>
/// 获取或设置是否隐藏标题。
/// </summary>
[Newtonsoft.Json.JsonProperty("hide_title")]
[System.Text.Json.Serialization.JsonPropertyName("hide_title")]
public bool? RequireHideTitle { get; set; }
/// <summary>
/// 获取或设置是否开启 WebView 内的链接跳转能力。
/// </summary>
[Newtonsoft.Json.JsonProperty("enable_webview_click")]
[System.Text.Json.Serialization.JsonPropertyName("enable_webview_click")]
public bool? EnableWebviewClick { get; set; }
}
public class ListTemplate

View File

@ -99,6 +99,27 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
[Newtonsoft.Json.JsonProperty("pagepath")]
[System.Text.Json.Serialization.JsonPropertyName("pagepath")]
public string? MiniProgramPagePath { get; set; }
/// <summary>
/// 获取或设置高度类型。
/// </summary>
[Newtonsoft.Json.JsonProperty("height")]
[System.Text.Json.Serialization.JsonPropertyName("height")]
public string? HeightType { get; set; }
/// <summary>
/// 获取或设置是否隐藏标题。
/// </summary>
[Newtonsoft.Json.JsonProperty("hide_title")]
[System.Text.Json.Serialization.JsonPropertyName("hide_title")]
public bool? RequireHideTitle { get; set; }
/// <summary>
/// 获取或设置是否开启 WebView 内的链接跳转能力。
/// </summary>
[Newtonsoft.Json.JsonProperty("enable_webview_click")]
[System.Text.Json.Serialization.JsonPropertyName("enable_webview_click")]
public bool? EnableWebviewClick { get; set; }
}
public class ListTemplate

View File

@ -55,7 +55,10 @@
"webview": {
"url": "http://www.qq.com",
"jump_url": "http://www.qq.com",
"pagepath": "pages/index"
"pagepath": "pages/index",
"height":"single_row",
"hide_title":true,
"enable_webview_click":true
},
"replace_user_data": true
}