using System; using System.Xml.Serialization; using System.Collections.Generic; using Top.Api; namespace DingTalk.Api.Response { /// /// OapiSmartworkHrmRosterMetaGetResponse. /// public class OapiSmartworkHrmRosterMetaGetResponse : DingTalkResponse { /// /// 错误码 /// [XmlElement("errcode")] public long Errcode { get; set; } /// /// 错误信息 /// [XmlElement("errmsg")] public string Errmsg { get; set; } /// /// 花名册分组定义 /// [XmlArray("result")] [XmlArrayItem("group_meta_info")] public List Result { get; set; } /// /// 服务调用成功 /// [XmlElement("success")] public bool Success { get; set; } /// /// FieldMetaInfoDomain Data Structure. /// [Serializable] public class FieldMetaInfoDomain : TopObject { /// /// 是否衍生字段(比如司龄、年龄等系统计算的字段) /// [XmlElement("derived")] public bool Derived { get; set; } /// /// 字段标识 /// [XmlElement("field_code")] public string FieldCode { get; set; } /// /// 字段名称 /// [XmlElement("field_name")] public string FieldName { get; set; } /// /// 字段类型:"TextField", "文本"; "DDPhotoField", "附件"; "DDSelectField", "选项"; "DDDateField", "时间" /// [XmlElement("field_type")] public string FieldType { get; set; } /// /// 选型类型字段的kv值 /// [XmlElement("option_text")] public string OptionText { get; set; } } /// /// GroupMetaInfoDomain Data Structure. /// [Serializable] public class GroupMetaInfoDomain : TopObject { /// /// 分组是否支持明细 /// [XmlElement("detail")] public bool Detail { get; set; } /// /// 花名册分组内字段定义 /// [XmlArray("field_meta_info_list")] [XmlArrayItem("field_meta_info")] public List FieldMetaInfoList { get; set; } /// /// 分组标识 /// [XmlElement("group_id")] public string GroupId { get; set; } /// /// 分组名称 /// [XmlElement("group_name")] public string GroupName { get; set; } } } }