|
@@ -166,7 +166,13 @@ class APIMgr():
|
|
|
response =s.post(f"{cfg.target_host}/jyapi/jybx/buyer/eType/buyerList", headers=headers, json=data)
|
|
|
# response.raise_for_status() # 如果请求失败,会抛出异常
|
|
|
return response
|
|
|
-
|
|
|
+ #消息中心列表
|
|
|
+ def get_messagelist(self):
|
|
|
+ headers = GSTORE['headers']
|
|
|
+ s = GSTORE['s']
|
|
|
+ response=s.post(f"{cfg.target_host}/jymessageCenter/messageList",headers=headers,params=
|
|
|
+ {"needFilter":"1","msgType":"0","isRead":"-1","offset":"1","pageSize":"5"})
|
|
|
+ return response
|
|
|
apimgr = APIMgr()
|
|
|
|
|
|
|