# 接口说明
- 1.最新接口
| 请求方式 | 请求地址 |
|---|---|
| POST | /open/api/third/company/admin |
请求参数:
| 字段 | 名称 | 类型 | 必填 | 描述 |
|---|---|---|---|---|
| timestamp | 时间戳 | long | Y | 13位时间戳 |
| sign | 签名 | string | Y | 4ergfdsawesf |
| access_token | token | string | Y | 登录 token |
| employee_id | 操作人id | string | Y | 操作人id,调用接口人 id |
| employee_type | 用户类型 | string | Y | 类型,0为分贝用户,1为第三方用户 |
| data | 请求数据 | jsonstring | Y | 请求数据 |
请求示例:
"access_token": "xxx.xxx.xxx",
"timestamp": 123456789,
"employee_id": "12345678",
"employee_type":"0",
"sign": "jifejfwojelajflejf",
"data": {}
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
返回结果
{
"request_id": "QdMXjd1ilI3ZOdSI85w8",
"code": 0,
"type": 0,
"msg": "success",
"data": {
"employee": {
"id": "59bf74f423445f31bd64bc5c",
"thirdEmployeeId": "manager_third",
"name": "张三",
"email": "san.zhang@fenbeitong.com",
"phone_num": "17710385317",
"role": 6,
"status": 1,
"birth_date": "1997-05-23 00:00:00",
"gender": 1,
"pinyin": "zhang san",
"org_unit_id": "5cc1598623445f612c73b27a",
"third_org_id": "dingecf942c070fe83f435c2f4657eb6378f",
"org_unit_name": "分贝通科技有限公司",
"org_name": "分贝通科技有限公司",
"employee_number": ""
},
"employeeCertificateBeans": [
{
"cert_type": 2,
"cert_no": "22222222222"
}
],
"air_policy": {
"air_priv_flag": true,
"air_other_flag": false,
"air_verify_flag": false,
"air_rule_limit_flag": false,
"unemployee_air": false,
"exceed_buy_type": 1,
"oneself_limit": 0,
"air_priv_type": 1,
"switch_flag": true
},
"intl_air_policy": {
"air_priv_flag": true,
"air_other_flag": true,
"air_verify_flag": false,
"air_rule_limit_flag": false,
"unemployee_air": false,
"exceed_buy_type": 1,
"oneself_limit": 0,
"air_priv_type": 2,
"switch_flag": true
},
"hotel_policy": {
"hotel_priv_flag": true,
"hotel_other_flag": true,
"hotel_verify_flag": false,
"hotel_rule_limit_flag": true,
"hotel_rule_id": "5ce60d6a23445f3985ca2666",
"unemployee_hotel": true,
"exceed_buy_type": 2,
"oneself_limit": 0,
"hotel_priv_type": 3,
"switch_flag": true,
"hotel_rule_name": "测试酒店规则",
"personal_pay": false
},
"train_policy": {
"train_priv_flag": true,
"train_other_flag": true,
"train_verify_flag": false,
"train_rule_limit_flag": false,
"unemployee_train": false,
"exceed_buy_type": 1,
"oneself_limit": 0,
"train_priv_type": 2,
"switch_flag": true
},
"car_policy": {
"car_priv_flag": true,
"rule_limit_flag": false,
"exceed_buy_flag": false,
"exceed_buy_type": 1,
"personal_pay": false,
"rule_infos": [
{
"type": {
"key": 1,
"value": "用车"
},
"rule_info": []
},
{
"type": {
"key": 2,
"value": "申请用车"
},
"rule_info": []
}
],
"oldVersion": false
},
"mall_policy": {
"mall_priv_flag": true,
"rule_limit_flag": true,
"rule_id": "5d08954e23445f65e153bcb0",
"exceed_buy_flag": true,
"mall_rule_name": "测试采购规则"
},
"dinner_policy": {
"dinner_priv_flag": false,
"rule_limit_flag": false,
"exceed_buy_flag": 1
},
"takeaway_policy": {
"takeaway_priv_flag": true,
"takeaway_other_flag": false,
"unemployee_takeaway": false,
"takeaway_rule_limit_flag": true,
"takeaway_rule_id": 151,
"exceed_buy_type": 2,
"personal_pay": false,
"takeaway_order_verify_flag": false
},
"dinners_policy": {
"rule_priv_flag": false,
"rule_limit_flag": false,
"dinner_policy": {
"dinner_priv_flag": false,
"rule_limit_flag": false,
"exceed_buy_flag": 1
},
"meishi_policy": {
"meishi_priv_flag": false,
"rule_limit_flag": false,
"exceed_buy_type": 1,
"meishi_rule": 1,
"company_id": "5cc1598623445f612c73b27a",
"personal_pay": false
}
},
"shansong_policy": {
"shansong_priv_flag": false
}
}
}
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147