|
@@ -1188,6 +1188,32 @@ class APIMgr():
|
|
|
response = self.s.post(f"{cfg.target_host}/entnicheNew/subscribe/area/get", headers=headers,json=json)
|
|
|
return response
|
|
|
|
|
|
+ # 获取信息类型
|
|
|
+ def entnichenew_infotype(self):
|
|
|
+ headers = GSTORE['headers']
|
|
|
+ s = GSTORE['s']
|
|
|
+ json = {
|
|
|
+ "identity": "ent"
|
|
|
+ }
|
|
|
+ response = self.s.post(f"{cfg.target_host}/entnicheNew/subscribe/index", headers=headers,json=json)
|
|
|
+ return response
|
|
|
+
|
|
|
+ # 修改信息类型
|
|
|
+ def entnichenew_infotype_update(self):
|
|
|
+ headers = GSTORE['headers']
|
|
|
+ s = GSTORE['s']
|
|
|
+ json = {
|
|
|
+ "msg": [
|
|
|
+ "预告",
|
|
|
+ "预审",
|
|
|
+ "预审结果",
|
|
|
+ "论证意见",
|
|
|
+ "需求公示"
|
|
|
+ ],
|
|
|
+ "identity": "ent"
|
|
|
+ }
|
|
|
+ response = self.s.post(f"{cfg.target_host}/entnicheNew/subscribe/infotype/update", headers=headers,json=json)
|
|
|
+ return response
|
|
|
|
|
|
apimgr = APIMgr()
|
|
|
|