sc-common-interface 2.5.0__tar.gz → 2.5.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sc-common-interface-2.5.0 → sc-common-interface-2.5.2}/PKG-INFO +1 -1
- {sc-common-interface-2.5.0 → sc-common-interface-2.5.2}/sc_common_interface/LiveCommonInterface.py +29 -1
- {sc-common-interface-2.5.0 → sc-common-interface-2.5.2}/sc_common_interface.egg-info/PKG-INFO +1 -1
- {sc-common-interface-2.5.0 → sc-common-interface-2.5.2}/setup.py +1 -1
- {sc-common-interface-2.5.0 → sc-common-interface-2.5.2}/sc_common_interface/McCommonInterface.py +0 -0
- {sc-common-interface-2.5.0 → sc-common-interface-2.5.2}/sc_common_interface/Platform.py +0 -0
- {sc-common-interface-2.5.0 → sc-common-interface-2.5.2}/sc_common_interface/PostCommonInterface.py +0 -0
- {sc-common-interface-2.5.0 → sc-common-interface-2.5.2}/sc_common_interface/__init__.py +0 -0
- {sc-common-interface-2.5.0 → sc-common-interface-2.5.2}/sc_common_interface.egg-info/SOURCES.txt +0 -0
- {sc-common-interface-2.5.0 → sc-common-interface-2.5.2}/sc_common_interface.egg-info/dependency_links.txt +0 -0
- {sc-common-interface-2.5.0 → sc-common-interface-2.5.2}/sc_common_interface.egg-info/requires.txt +0 -0
- {sc-common-interface-2.5.0 → sc-common-interface-2.5.2}/sc_common_interface.egg-info/top_level.txt +0 -0
- {sc-common-interface-2.5.0 → sc-common-interface-2.5.2}/setup.cfg +0 -0
{sc-common-interface-2.5.0 → sc-common-interface-2.5.2}/sc_common_interface/LiveCommonInterface.py
RENAMED
|
@@ -1451,6 +1451,34 @@ def change_keyword_status(data):
|
|
|
1451
1451
|
response = requests.put(url, headers=headers,json=body).json()
|
|
1452
1452
|
return response
|
|
1453
1453
|
|
|
1454
|
+
def delete_product_set(data):
|
|
1455
|
+
env = data["env"]
|
|
1456
|
+
headers = data["headers"]
|
|
1457
|
+
sales_id = data["sales_id"]
|
|
1458
|
+
product_id = data["product_id"]
|
|
1459
|
+
url = "%s/admin/api/bff-web/live/sale/%s/sale_list/product_set"%(env,sales_id)
|
|
1460
|
+
body = {
|
|
1461
|
+
"ids": [
|
|
1462
|
+
product_id
|
|
1463
|
+
]
|
|
1464
|
+
}
|
|
1465
|
+
res = requests.delete(url,headers=headers,json=body).json()
|
|
1466
|
+
return res
|
|
1467
|
+
|
|
1468
|
+
def search_product_set(data):
|
|
1469
|
+
env = data["env"]
|
|
1470
|
+
headers = data["headers"]
|
|
1471
|
+
sales_id = data["sales_id"]
|
|
1472
|
+
query = ""
|
|
1473
|
+
if "query" in data:
|
|
1474
|
+
query = data["query"]
|
|
1475
|
+
url = "%s/admin/api/bff-web/live/sale/%s/product/product_set/list"%(env,sales_id)
|
|
1476
|
+
param = {"pageNum":1,"pageSize":10,"query":query}
|
|
1477
|
+
print(param)
|
|
1478
|
+
res = requests.get(url,headers=headers,params=param).json()
|
|
1479
|
+
return res
|
|
1480
|
+
|
|
1481
|
+
|
|
1454
1482
|
|
|
1455
1483
|
if __name__=="__main__":
|
|
1456
|
-
pass
|
|
1484
|
+
pass
|
{sc-common-interface-2.5.0 → sc-common-interface-2.5.2}/sc_common_interface/McCommonInterface.py
RENAMED
|
File without changes
|
|
File without changes
|
{sc-common-interface-2.5.0 → sc-common-interface-2.5.2}/sc_common_interface/PostCommonInterface.py
RENAMED
|
File without changes
|
|
File without changes
|
{sc-common-interface-2.5.0 → sc-common-interface-2.5.2}/sc_common_interface.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{sc-common-interface-2.5.0 → sc-common-interface-2.5.2}/sc_common_interface.egg-info/requires.txt
RENAMED
|
File without changes
|
{sc-common-interface-2.5.0 → sc-common-interface-2.5.2}/sc_common_interface.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|