1
zrg
2024-10-15 a1e3e548ea03ceb32d07bf9f73f4719dd14f7f2e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Top.Api.Util;
using Top.Api;
using Top.Api.DingTalk;
 
namespace DingTalk.Api.Request
{
    /// <summary>
    /// TOP API: dingtalk.oapi.enterprise.subarea.totaldata.stat
    /// </summary>
    public class OapiEnterpriseSubareaTotaldataStatRequest : BaseDingTalkRequest<DingTalk.Api.Response.OapiEnterpriseSubareaTotaldataStatResponse>
    {
        /// <summary>
        /// 企业ID
        /// </summary>
        public string CorpId { get; set; }
 
        /// <summary>
        /// 排序
        /// </summary>
        public string OrderBy { get; set; }
 
        public OrderByDomain OrderBy_ { set { this.OrderBy = TopUtils.ObjectToJson(value); } } 
 
        /// <summary>
        /// 分页查询条数,最多30条
        /// </summary>
        public Nullable<long> PageSize { get; set; }
 
        /// <summary>
        /// 分页起始点
        /// </summary>
        public Nullable<long> PageStart { get; set; }
 
        /// <summary>
        /// act_ratio_1d_001 所辖区域活跃率; act_usr_cnt_1d_001 活跃用户数最近1天; active_mbr_cnt_std_001 历史截至当日激活会员数; active_mbr_ratio 所辖区域用户的激活率; city_lat 所属城市维度; city_lng 所属城市经度; county_lat 区/县纬度; county_lng 区/县经度; mbr_cnt_std_063 历史截至当日企业会员数; online_org_cnt 所辖区域在线组织数 ; org_online_ratio 所辖区域组织覆盖率 ; real_org_cnt 所辖区域实际组织数 ; send_message_cnt_1d 发送消息数量; send_message_user_cnt_1d 发送消息人数;
        /// </summary>
        public string ReturnFields { get; set; }
 
        /// <summary>
        /// 查询时间
        /// </summary>
        public string StatDate { get; set; }
 
        #region IDingTalkRequest Members
 
        public override string GetApiName()
        {
            return "dingtalk.oapi.enterprise.subarea.totaldata.stat";
        }
 
        public override string GetApiCallType()
        {
            return DingTalkConstants.CALL_TYPE_OAPI;
        }
 
        public override IDictionary<string, string> GetParameters()
        {
            TopDictionary parameters = new TopDictionary();
            parameters.Add("corp_id", this.CorpId);
            parameters.Add("order_by", this.OrderBy);
            parameters.Add("page_size", this.PageSize);
            parameters.Add("page_start", this.PageStart);
            parameters.Add("return_fields", this.ReturnFields);
            parameters.Add("stat_date", this.StatDate);
            if (this.otherParams != null)
            {
                parameters.AddAll(this.otherParams);
            }
            return parameters;
        }
 
        public override void Validate()
        {
            RequestValidator.ValidateRequired("corp_id", this.CorpId);
            RequestValidator.ValidateRequired("page_size", this.PageSize);
            RequestValidator.ValidateRequired("page_start", this.PageStart);
            RequestValidator.ValidateRequired("return_fields", this.ReturnFields);
            RequestValidator.ValidateMaxListSize("return_fields", this.ReturnFields, 50);
            RequestValidator.ValidateRequired("stat_date", this.StatDate);
        }
 
    /// <summary>
/// OrderByDomain Data Structure.
/// </summary>
[Serializable]
 
public class OrderByDomain : TopObject
{
            /// <summary>
            /// 排查的key
            /// </summary>
            [XmlElement("field")]
            public string Field { get; set; }
    
            /// <summary>
            /// 升序或者降序
            /// </summary>
            [XmlElement("order")]
            public string Order { get; set; }
}
 
        #endregion
    }
}