using System; using System.Xml.Serialization; using System.Collections.Generic; using Top.Api; namespace DingTalk.Api.Response { /// /// OapiCrmObjectmetaFollowrecordDescribeResponse. /// public class OapiCrmObjectmetaFollowrecordDescribeResponse : DingTalkResponse { /// /// 错误码 /// [XmlElement("errcode")] public long Errcode { get; set; } /// /// 错误信息 /// [XmlElement("errmsg")] public string Errmsg { get; set; } /// /// result /// [XmlElement("result")] public DObjectDomain Result { get; set; } /// /// SelectOptionsDomain Data Structure. /// [Serializable] public class SelectOptionsDomain : TopObject { /// /// 选项key /// [XmlElement("key")] public string Key { get; set; } /// /// 选项名 /// [XmlElement("value")] public string Value { get; set; } } /// /// ReferenceFieldsDomain Data Structure. /// [Serializable] public class ReferenceFieldsDomain : TopObject { /// /// 引用的关联对象字段格式 /// [XmlElement("format")] public string Format { get; set; } /// /// 引用的关联对象字段显示名 /// [XmlElement("label")] public string Label { get; set; } /// /// 引用的关联对象的字段名称 /// [XmlElement("name")] public string Name { get; set; } /// /// 引用的关联对象字段是否可空 /// [XmlElement("nillable")] public bool Nillable { get; set; } /// /// 引用的关联对象的字段选项列表 /// [XmlArray("select_options")] [XmlArrayItem("select_options")] public List SelectOptions { get; set; } /// /// 引用的关联对象字段类型 /// [XmlElement("type")] public string Type { get; set; } /// /// 引用的关联对象字段单位 /// [XmlElement("unit")] public string Unit { get; set; } } /// /// RollUpSummaryFieldsDomain Data Structure. /// [Serializable] public class RollUpSummaryFieldsDomain : TopObject { /// /// 汇总方法 /// [XmlElement("aggregator")] public string Aggregator { get; set; } /// /// 需要汇总的明细内字段名 /// [XmlElement("name")] public string Name { get; set; } } /// /// FieldsDomain Data Structure. /// [Serializable] public class FieldsDomain : TopObject { /// /// 是否自定义字段 /// [XmlElement("customized")] public bool Customized { get; set; } /// /// 日期格式 /// [XmlElement("format")] public string Format { get; set; } /// /// 字段展示名 /// [XmlElement("label")] public string Label { get; set; } /// /// 字段名称 /// [XmlElement("name")] public string Name { get; set; } /// /// 是否可空 /// [XmlElement("nillable")] public bool Nillable { get; set; } /// /// 是否引用关联 /// [XmlElement("quote")] public bool Quote { get; set; } /// /// 引用的关联对象的字段列表 /// [XmlArray("reference_fields")] [XmlArrayItem("reference_fields")] public List ReferenceFields { get; set; } /// /// 关联对象名称 /// [XmlElement("reference_to")] public string ReferenceTo { get; set; } /// /// 对MasterDetail类型有效:roll-up summary字段列表 /// [XmlArray("roll_up_summary_fields")] [XmlArrayItem("roll_up_summary_fields")] public List RollUpSummaryFields { get; set; } /// /// 选项列表 /// [XmlArray("select_options")] [XmlArrayItem("select_options")] public List SelectOptions { get; set; } /// /// 字段类型 /// [XmlElement("type")] public string Type { get; set; } /// /// 日期单位/金额单位 /// [XmlElement("unit")] public string Unit { get; set; } } /// /// DObjectDomain Data Structure. /// [Serializable] public class DObjectDomain : TopObject { /// /// 表单code /// [XmlElement("code")] public string Code { get; set; } /// /// 是否自定义对象 /// [XmlElement("customized")] public bool Customized { get; set; } /// /// 字段列表 /// [XmlArray("fields")] [XmlArrayItem("fields")] public List Fields { get; set; } /// /// 对象名称 /// [XmlElement("name")] public string Name { get; set; } /// /// 表单状态 /// [XmlElement("status")] public string Status { get; set; } } } }