mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-12-29 18:04:42 +08:00
feat(work): 随官方更新人事助手获取员工字段配置接口模型
This commit is contained in:
@@ -13,6 +13,26 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
{
|
||||
public class Field
|
||||
{
|
||||
public static class Types
|
||||
{
|
||||
public class Option
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置选项的枚举值。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("id")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("id")]
|
||||
public int OptionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置选项的文本内容。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("value")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("value")]
|
||||
public string Value { get; set; } = default!;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置字段 ID。
|
||||
/// </summary>
|
||||
@@ -34,12 +54,26 @@ namespace SKIT.FlurlHttpClient.Wechat.Work.Models
|
||||
[System.Text.Json.Serialization.JsonPropertyName("field_type")]
|
||||
public int FieldType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置字段值类型。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("value_type")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("value_type")]
|
||||
public int ValueType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置是否必须。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("is_must")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("is_must")]
|
||||
public bool IsMust { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置选项列表。
|
||||
/// </summary>
|
||||
[Newtonsoft.Json.JsonProperty("option_list")]
|
||||
[System.Text.Json.Serialization.JsonPropertyName("option_list")]
|
||||
public Types.Option[]? OptionList { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user