|
@@ -1030,6 +1030,39 @@ class APIMgr():
|
|
|
response = self.s.post(f"{cfg.target_host}/bigmember/search/buyer/association?name=河南科技大学", headers=header)
|
|
|
return response
|
|
|
|
|
|
+ # 工作桌面商机情报列表
|
|
|
+ def workdesk_intelligence(self):
|
|
|
+ header = GSTORE['headers']
|
|
|
+ data = {
|
|
|
+ "msgType": 5,
|
|
|
+ "needDealtWithCount": True,
|
|
|
+ "offset": 1,
|
|
|
+ "size": 5
|
|
|
+ }
|
|
|
+ response =self.s.post(f"{cfg.target_host}/jyapi/messageCenter/WorkDeskList", headers=header, json=data)
|
|
|
+ return response
|
|
|
+ #商品积分查询
|
|
|
+ def goods_points(self):
|
|
|
+ header = GSTORE['headers']
|
|
|
+ response = self.s.post(f"{cfg.target_host}/jyintegral/productPoints/introduction",headers=header)
|
|
|
+ return response
|
|
|
+ #工作桌面首页-我的消息-未读消息数量
|
|
|
+ def workdesk_unread_messages(self):
|
|
|
+ header = GSTORE['headers']
|
|
|
+ json ={
|
|
|
+ "size": 20,
|
|
|
+ "msgType": -1,
|
|
|
+ "offset": 1,
|
|
|
+ "isRead": 0,
|
|
|
+ "isColumn": False,
|
|
|
+ "isColumnNewMsg": False,
|
|
|
+ "isContainLetter": False,
|
|
|
+ "isMsgList": False
|
|
|
+ }
|
|
|
+
|
|
|
+ response =self.s.post(f"{cfg.target_host}/jyapi/messageCenter/MessageList",headers=header,json=json)
|
|
|
+ return response
|
|
|
+
|
|
|
apimgr = APIMgr()
|
|
|
|
|
|
|