sc-common-interface 2.4.9__tar.gz → 2.5.1__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.4.9
3
+ Version: 2.5.1
4
4
  Summary: SC贴文销售公用的接口
5
5
  Home-page: UNKNOWN
6
6
  Author: river
@@ -1434,9 +1434,38 @@ def remove_live_product(data):
1434
1434
  return response
1435
1435
 
1436
1436
 
1437
+ def change_keyword_status(data):
1438
+ env = data["env"]
1439
+ headers = data["headers"]
1440
+ sales_id = data["sales_id"]
1441
+ product_id = data["product_id"]
1442
+ status = "true"
1443
+ if "status" in data:
1444
+ status = data["status"]
1445
+ url = "%s/api/posts/post/sales/%s/product/keyword/status/%s"%(env,sales_id,status)
1446
+ body = {
1447
+ "spuIdList": [
1448
+ product_id
1449
+ ]
1450
+ }
1451
+ response = requests.put(url, headers=headers,json=body).json()
1452
+ return response
1437
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
1438
1467
 
1439
1468
 
1440
1469
 
1441
1470
  if __name__=="__main__":
1442
- pass
1471
+ pass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sc-common-interface
3
- Version: 2.4.9
3
+ Version: 2.5.1
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.4.9',
5
+ version='2.5.1',
6
6
  description='SC贴文销售公用的接口',
7
7
  author='river',
8
8
  packages=find_packages(),