17808
2023-09-14 f4e77cdf431974fff8165e67378f1ca0fecdf4f1
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
package com.ycl.common.constant;
/**
 * ding 需要的常量
 */
public interface DingConst {
    /**
     * appkey
     */
    String APP_KEY = ""; //正式
    /**
     * secretKey
     */
    String SECRET_KEY = ""; //正式
 
    /*******接口********/
    /**
     * 超管租户id
     */
//    String TENANT_ID = "50245108";//测试
   // String TENANT_ID = "196729"; //正式
 
    /**
     * 钉 域名
     */
//    String DOMAIN_NAME = "openplatform.dg-work.cn";// 测试:专有钉钉
    String DOMAIN_NAME = "openplatform-pro.ding.zj.gov.cn";// 正式:浙政钉
    /**
     * 钉 请求协议
     */
    String PROTOCAL = "https";
 
    /**
     * TOKEN 获取接口
     */
    String GET_TOKEN = "/gettoken.json";
    /**
     * TOKEN 获取接口
     */
    String GET_TIKER = "/get_jsapi_token.json";
 
    /**
     * 获取用户信息接口
     */
    String GET_USER_INFO = "/rpc/oauth2/dingtalk_app_user.json";
    /**
     * 根据员工Code查询详情
     */
    String GET_EMP_BY_CODE = "/mozi/employee/getEmployeeByCode";
 
    /**
     * 获取通讯录权限范围
     */
    String GET_BOOK_AUTH = "/auth/scopesV2";
 
    /**
     * 分页获取下⼀级组织 Code 列表
     */
    String POST_ORG_PAGE_CODE_LIST = "/mozi/organization/pageSubOrganizationCodes";
 
    /**
     * 批量根据组织Code查询详情
     */
    String POST_ORG_DETIAL_CODE_BATTH = "/mozi/organization/listOrganizationsByCodes";
 
    /**
     * 查询组织下人员详情
     */
    String POST_PERSON_INFO_BY_ORG_CODE = "/mozi/organization/pageOrganizationEmployeePositions";
 
    /**
     * 查询员工任职
     */
    String POST_STAFF_APPOINTMENT = "/mozi/employee/listEmployeePositionsByEmployeeCode";
 
    /**
     * 根据组织Code查询详情
     */
    String POST_ORG_BY_CODE = "/mozi/organization/getOrganizationByCode";
 
    /**
     * 发送工作消息通知
     */
    String POST_SEND_NOTIFY = "/message/workNotification";
 
    /**
     * 发送ding 工作消息链接
     */
    String SEND_DING_WORK_LINK = "dingtalkind://dingtalkclient/page/link?url=";
 
    /**
     * 获取视频
     */
    String GET_VIDEO="/media/download";
 
 
 
}