|
@@ -1108,6 +1108,31 @@ class APIMgr():
|
|
|
response = s.get(f"{cfg.target_host}/entbase/ent/entinfo", headers=hearders, params=params)
|
|
|
return response
|
|
|
|
|
|
+ """分发设置列表接口"""
|
|
|
+ def distribution_list(self):
|
|
|
+ hearders = GSTORE['headers']
|
|
|
+ s = GSTORE['s']
|
|
|
+ data= {
|
|
|
+ "identity":"ent"
|
|
|
+ }
|
|
|
+ response = s.get(f"{cfg.target_host}/entnicheNew/distribute/list", headers=hearders, data=data)
|
|
|
+ return response
|
|
|
+
|
|
|
+ """分发规则修改接口"""
|
|
|
+ def distribution_update(self):
|
|
|
+ hearders = GSTORE['headers']
|
|
|
+ s = GSTORE['s']
|
|
|
+ json= {
|
|
|
+ "id": "67820b98e7364a57c3b7eaf5",
|
|
|
+ "buyerclass": ["财政"],
|
|
|
+ "items": ["测试分组"],
|
|
|
+ "persons": [96208],
|
|
|
+ "area": {"安徽": []},
|
|
|
+ "district": {},
|
|
|
+ "identity": "ent"
|
|
|
+ }
|
|
|
+ response = s.get(f"{cfg.target_host}/entnicheNew/distribute/update", headers=hearders, json=json)
|
|
|
+ return response
|
|
|
|
|
|
apimgr = APIMgr()
|
|
|
|