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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sc-common-interface
3
- Version: 2.5.0
3
+ Version: 2.5.2
4
4
  Summary: SC贴文销售公用的接口
5
5
  Home-page: UNKNOWN
6
6
  Author: river
@@ -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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sc-common-interface
3
- Version: 2.5.0
3
+ Version: 2.5.2
4
4
  Summary: SC贴文销售公用的接口
5
5
  Home-page: UNKNOWN
6
6
  Author: river
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name='sc-common-interface',
5
- version='2.5.0',
5
+ version='2.5.2',
6
6
  description='SC贴文销售公用的接口',
7
7
  author='river',
8
8
  packages=find_packages(),