|
@@ -1076,6 +1076,28 @@ class APIMgr():
|
|
response = self.s.post(f"{cfg.target_host_wxapi}/debrisproduct/getPriceList", headers=headers_1)
|
|
response = self.s.post(f"{cfg.target_host_wxapi}/debrisproduct/getPriceList", headers=headers_1)
|
|
return response
|
|
return response
|
|
|
|
|
|
|
|
+ """子部门"""
|
|
|
|
+ def subdepartment(self):
|
|
|
|
+ hearders = GSTORE['headers']
|
|
|
|
+ s = GSTORE['s']
|
|
|
|
+ data = {
|
|
|
|
+ "id":26741
|
|
|
|
+ }
|
|
|
|
+ response = s.post(f"{cfg.target_host}/entbase/department/childrens", headers=hearders, data=data)
|
|
|
|
+ return response
|
|
|
|
+
|
|
|
|
+ """添加人员"""
|
|
|
|
+ def add_personnel(self):
|
|
|
|
+ hearders = GSTORE['headers']
|
|
|
|
+ s = GSTORE['s']
|
|
|
|
+ data = {
|
|
|
|
+ "name":"贾路瑶",
|
|
|
|
+ "phone":"19588533063",
|
|
|
|
+ "id":26741
|
|
|
|
+ }
|
|
|
|
+ response = s.post(f"{cfg.target_host}/entbase/person/add", headers=hearders, data=data)
|
|
|
|
+ return response
|
|
|
|
+
|
|
apimgr = APIMgr()
|
|
apimgr = APIMgr()
|
|
|
|
|
|
|
|
|