|
@@ -59,6 +59,7 @@ class APIMgr():
|
|
|
# 把response对象返回出去
|
|
|
return response
|
|
|
|
|
|
+ """退出登录"""
|
|
|
def mgr_logout(self):
|
|
|
url = f"{cfg.target_host}/front/signOut"
|
|
|
headers = GSTORE['headers']
|
|
@@ -142,7 +143,7 @@ class APIMgr():
|
|
|
"vt": ""})
|
|
|
return response
|
|
|
|
|
|
- #不登录招标搜索
|
|
|
+ # 不登录招标搜索
|
|
|
def notloggedin_search(self, keyword='科技', publishtime='thisyear', selectType='content,title'):
|
|
|
headers = GSTORE['headers']
|
|
|
params={"keywords": keyword , "publishtime": publishtime, "timeslot": "", "area": "", "subtype": "",
|
|
@@ -170,14 +171,14 @@ class APIMgr():
|
|
|
{"needFilter":"1","msgType":"0","isRead":"-1","offset":"1","pageSize":"5"})
|
|
|
return response
|
|
|
|
|
|
- # 用户中台
|
|
|
+ """用户中台"""
|
|
|
def get_userCenter(self):
|
|
|
hearders = GSTORE['headers']
|
|
|
s = GSTORE['s']
|
|
|
response = s.post(f"{cfg.target_host}/userCenter/workDesktop/menuInfo", headers=hearders)
|
|
|
return response
|
|
|
|
|
|
- # 我的订单
|
|
|
+ """我的订单"""
|
|
|
def get_myOrder(self):
|
|
|
hearders = GSTORE['headers']
|
|
|
s = GSTORE['s']
|
|
@@ -190,6 +191,104 @@ class APIMgr():
|
|
|
response = s.post(f"{cfg.target_host}/subscribepay/orderListDetails/myOrder", headers=hearders, params=params)
|
|
|
return response
|
|
|
|
|
|
+ """数据自动导出"""
|
|
|
+ def get_dataExport(self,publishtime=1672502400_1688951529,keyword='数据',selectType='title'):
|
|
|
+ hearders = GSTORE['headers']
|
|
|
+ s = GSTORE['s']
|
|
|
+ params={
|
|
|
+ "publishtime":publishtime,
|
|
|
+ "area":"",
|
|
|
+ "city":"",
|
|
|
+ "region":"",
|
|
|
+ "industry":"",
|
|
|
+ "buyerclass":"",
|
|
|
+ "keyword": [{"keyword":keyword,"appended":[],"exclude":[]}],
|
|
|
+ "selectType":selectType,
|
|
|
+ "minprice":"",
|
|
|
+ "maxprice":"",
|
|
|
+ "subtype":"",
|
|
|
+ "buyer":"",
|
|
|
+ "winner":"",
|
|
|
+ "dataType": 2
|
|
|
+ }
|
|
|
+ response = s.post(f"{cfg.target_host}/front/dataExport/sieveData", headers=hearders, params=params)
|
|
|
+ return response
|
|
|
+
|
|
|
+
|
|
|
+ """数据导出记录"""
|
|
|
+ def Export_recordList(self):
|
|
|
+ hearders = GSTORE['headers']
|
|
|
+ s = GSTORE['s']
|
|
|
+ params={
|
|
|
+ "pageNum": 0,
|
|
|
+ "pageSize": 10
|
|
|
+ }
|
|
|
+ response = s.post(f"{cfg.target_host}/subscribepay/dataExportPack/recordList", headers=hearders, params=params)
|
|
|
+ return response
|
|
|
+
|
|
|
+ """剑鱼文库搜索"""
|
|
|
+ def Library_search(self,keyWord='数据'):
|
|
|
+ hearders = GSTORE['headers']
|
|
|
+ s = GSTORE['s']
|
|
|
+ params={
|
|
|
+ "keyWord":keyWord,
|
|
|
+ "tag":"",
|
|
|
+ "sort": "tSort",
|
|
|
+ "num": 1,
|
|
|
+ "size": 10
|
|
|
+ }
|
|
|
+ response = s.post(f"{cfg.target_host}/jydocs/search", headers=hearders, params=params)
|
|
|
+ return response
|
|
|
+
|
|
|
+ """剑鱼文库收藏"""
|
|
|
+ def Library_collection(self):
|
|
|
+ hearders = GSTORE['headers']
|
|
|
+ s = GSTORE['s']
|
|
|
+ params={
|
|
|
+ "sign": 1,
|
|
|
+ "num": 1,
|
|
|
+ "size": 10
|
|
|
+ }
|
|
|
+ response = s.post(f"{cfg.target_host}/jydocs/user/list", headers=hearders, params=params)
|
|
|
+ return response
|
|
|
+
|
|
|
+ """剑鱼文库我的文库"""
|
|
|
+ def My_library(self):
|
|
|
+ hearders = GSTORE['headers']
|
|
|
+ s = GSTORE['s']
|
|
|
+ params={
|
|
|
+ "sign": 0,
|
|
|
+ "num": 1,
|
|
|
+ "size": 10
|
|
|
+ }
|
|
|
+ response = s.post(f"{cfg.target_host}/jydocs/user/list", headers=hearders, params=params)
|
|
|
+ return response
|
|
|
+
|
|
|
+ """项目进度监控"""
|
|
|
+ def Project_monitoring(self):
|
|
|
+ hearders = GSTORE['headers']
|
|
|
+ s = GSTORE['s']
|
|
|
+ params={
|
|
|
+ "pageNum": 0,
|
|
|
+ "pageSize": 500
|
|
|
+ }
|
|
|
+ response = s.post(f"{cfg.target_host}/bigmember/follow/project/list", headers=hearders, params=params)
|
|
|
+ return response
|
|
|
+
|
|
|
+ """企业情报监控"""
|
|
|
+ def Enterprise_monitoring(self):
|
|
|
+ hearders = GSTORE['headers']
|
|
|
+ s = GSTORE['s']
|
|
|
+ params={
|
|
|
+ "pageNum": 0,
|
|
|
+ "pageSize": 10,
|
|
|
+ "match":"",
|
|
|
+ "group":"",
|
|
|
+ }
|
|
|
+ response = s.post(f"{cfg.target_host}/bigmember/follow/ent/list", headers=hearders, params=params)
|
|
|
+ return response
|
|
|
+
|
|
|
+
|
|
|
apimgr = APIMgr()
|
|
|
|
|
|
|