mirror of
https://gitee.com/fudiwei/DotNetCore.SKIT.FlurlHttpClient.Wechat.git
synced 2025-12-29 01:44: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; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,13 +10,32 @@
|
||||
"fieldid": 11001,
|
||||
"field_name": "姓名",
|
||||
"field_type": 1,
|
||||
"value_type": 1,
|
||||
"is_must": true
|
||||
},
|
||||
{
|
||||
"fieldid": 11002,
|
||||
"field_name": "别名",
|
||||
"field_type": 1,
|
||||
"value_type": 1,
|
||||
"is_must": false
|
||||
},
|
||||
{
|
||||
"fieldid": 12010,
|
||||
"field_name": "职位",
|
||||
"field_type": 2,
|
||||
"value_type": 3,
|
||||
"is_must": false,
|
||||
"option_list": [
|
||||
{
|
||||
"id": 1,
|
||||
"value": "总经理"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"value": "秘书"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -28,6 +47,7 @@
|
||||
"fieldid": 12024,
|
||||
"field_name": "工号",
|
||||
"field_type": 1,
|
||||
"value_type": 1,
|
||||
"is_must": true
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user