|
@@ -149,7 +149,7 @@ class APIMgr():
|
|
return response
|
|
return response
|
|
|
|
|
|
#采购单位搜索
|
|
#采购单位搜索
|
|
- def buyersousuo(self, buyerName, province=None, city=None, buyerClass=None, isCheckFollow=True, isCheckReceive=True,
|
|
|
|
|
|
+ def buyer_search(self, buyerName, province=None, city=None, buyerClass=None, isCheckFollow=True, isCheckReceive=True,
|
|
isContact=0, pageSize=10, pageNum=1):
|
|
isContact=0, pageSize=10, pageNum=1):
|
|
if buyerClass is None:
|
|
if buyerClass is None:
|
|
buyerClass = []
|
|
buyerClass = []
|
|
@@ -403,6 +403,7 @@ class APIMgr():
|
|
}
|
|
}
|
|
response =s.post(f"{cfg.target_host}/publicapply/identity/switch", headers=self.headers,params=params)
|
|
response =s.post(f"{cfg.target_host}/publicapply/identity/switch", headers=self.headers,params=params)
|
|
return response
|
|
return response
|
|
|
|
+ """获取用户信息"""
|
|
def User_info(self):
|
|
def User_info(self):
|
|
headers = {
|
|
headers = {
|
|
'content-Type': 'application/json',
|
|
'content-Type': 'application/json',
|
|
@@ -418,7 +419,6 @@ class APIMgr():
|
|
s = GSTORE["s"]
|
|
s = GSTORE["s"]
|
|
response =s.get(f"{cfg.target_host}/entnicheNew/buy/whetherbuy",headers=headers)
|
|
response =s.get(f"{cfg.target_host}/entnicheNew/buy/whetherbuy",headers=headers)
|
|
return response
|
|
return response
|
|
-
|
|
|
|
def Commonly_List(self):
|
|
def Commonly_List(self):
|
|
headers = {
|
|
headers = {
|
|
'content-Type': 'application/json',
|
|
'content-Type': 'application/json',
|
|
@@ -428,6 +428,7 @@ class APIMgr():
|
|
s = GSTORE['s']
|
|
s = GSTORE['s']
|
|
response =s.post(f"{cfg.target_host}/userCenter/workDesktop/renew/commonlyList",headers=headers)
|
|
response =s.post(f"{cfg.target_host}/userCenter/workDesktop/renew/commonlyList",headers=headers)
|
|
return response
|
|
return response
|
|
|
|
+ """权限校验"""
|
|
def Authorised_info(self):
|
|
def Authorised_info(self):
|
|
headers = {
|
|
headers = {
|
|
"Content-Type":"application/json",
|
|
"Content-Type":"application/json",
|
|
@@ -436,6 +437,41 @@ class APIMgr():
|
|
s = GSTORE['s']
|
|
s = GSTORE['s']
|
|
response =s.post(f"{cfg.target_host}/resourceCenter/waitEmpowerDetail",headers=headers)
|
|
response =s.post(f"{cfg.target_host}/resourceCenter/waitEmpowerDetail",headers=headers)
|
|
return response
|
|
return response
|
|
|
|
+ """未登录采购单位列表"""
|
|
|
|
+ def nologin_buyer_list(self):
|
|
|
|
+ headers = GSTORE['headers']
|
|
|
|
+ s = GSTORE['s']
|
|
|
|
+ data = {"buyerName":"","province":[],"city":[],"buyerClass":[],"isCheckFollow":False,"isCheckReceive":False,"isContact":0,"pageSize":10,"pageNum":1}
|
|
|
|
+ response =s.post(f"{cfg.target_host}/jyapi/jybx/buyer/eType/buyerList",headers=headers,json=data)
|
|
|
|
+ return response
|
|
|
|
+ """未登录供应商列表"""
|
|
|
|
+ def nologin_supplySearch(self):
|
|
|
|
+ headers = GSTORE['headers']
|
|
|
|
+ s = GSTORE['s']
|
|
|
|
+ data = {"keywords":"信息","searchType":"title","province":"","city":"","time":"","status":"0","pageSize":50,"pageIndex":1}
|
|
|
|
+ response =s.post(f"{cfg.target_host}/jyinfo/supplySearch",headers=headers,json=data)
|
|
|
|
+ return response
|
|
|
|
+ """未登录企业搜索"""
|
|
|
|
+ def nologin_enterpriseSearch(self):
|
|
|
|
+ headers = GSTORE['headers']
|
|
|
|
+ s = GSTORE['s']
|
|
|
|
+ params = {"match":"科技"}
|
|
|
|
+ response =s.post(f"{cfg.target_host}/publicapply/enterpriseSearch/doQuery",headers=headers, params=params)
|
|
|
|
+ return response
|
|
|
|
+ """未登录招标信息搜索"""
|
|
|
|
+ def nologin_Tender_search(self ):
|
|
|
|
+ headers = GSTORE['headers']
|
|
|
|
+ s = GSTORE['s']
|
|
|
|
+ params = {"match":"科技"}
|
|
|
|
+ response =s.post(f"{cfg.target_host}/jyapi/jybx/core/fType/searchList",headers=headers, params=params)
|
|
|
|
+ return response
|
|
|
|
+ """未登录拟在建搜索"""
|
|
|
|
+ def nologin_Proposed_construction_search(self ):
|
|
|
|
+ headers = GSTORE['headers']
|
|
|
|
+ s = GSTORE['s']
|
|
|
|
+ params = {"match":"科技"}
|
|
|
|
+ response =s.post(f"{cfg.target_host}/front/project/nzj/search",headers=headers, params=params)
|
|
|
|
+ return response
|
|
apimgr = APIMgr()
|
|
apimgr = APIMgr()
|
|
|
|
|
|
|
|
|