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
using System;
using System.Collections.Generic;
using Top.Api.Util;
using Top.Api;
using Top.Api.DingTalk;
 
namespace DingTalk.Api.Request
{
    /// <summary>
    /// TOP API: dingtalk.oapi.ddpaas.objectdata.query
    /// </summary>
    public class OapiDdpaasObjectdataQueryRequest : BaseDingTalkRequest<DingTalk.Api.Response.OapiDdpaasObjectdataQueryResponse>
    {
        /// <summary>
        /// 钉钉PaaS 应用 ID
        /// </summary>
        public string AppUuid { get; set; }
 
        /// <summary>
        /// 用户ID
        /// </summary>
        public string CurrentOperatorUserid { get; set; }
 
        /// <summary>
        /// 查询游标
        /// </summary>
        public string Cursor { get; set; }
 
        /// <summary>
        /// 钉钉 PaaS 表单编号
        /// </summary>
        public string FormCode { get; set; }
 
        /// <summary>
        /// 查询条件DSL
        /// </summary>
        public string QueryDsl { get; set; }
 
        /// <summary>
        /// 分页限制
        /// </summary>
        public Nullable<long> Size { get; set; }
 
        #region IDingTalkRequest Members
 
        public override string GetApiName()
        {
            return "dingtalk.oapi.ddpaas.objectdata.query";
        }
 
        public override string GetApiCallType()
        {
            return DingTalkConstants.CALL_TYPE_OAPI;
        }
 
        public override IDictionary<string, string> GetParameters()
        {
            TopDictionary parameters = new TopDictionary();
            parameters.Add("app_uuid", this.AppUuid);
            parameters.Add("current_operator_userid", this.CurrentOperatorUserid);
            parameters.Add("cursor", this.Cursor);
            parameters.Add("form_code", this.FormCode);
            parameters.Add("query_dsl", this.QueryDsl);
            parameters.Add("size", this.Size);
            if (this.otherParams != null)
            {
                parameters.AddAll(this.otherParams);
            }
            return parameters;
        }
 
        public override void Validate()
        {
            RequestValidator.ValidateRequired("app_uuid", this.AppUuid);
            RequestValidator.ValidateRequired("form_code", this.FormCode);
        }
 
        #endregion
    }
}