smartpush 1.5.1__py3-none-any.whl → 1.5.2__py3-none-any.whl
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.
- smartpush/base/url_enum.py +5 -0
- smartpush/form/form_after.py +11 -5
- {smartpush-1.5.1.dist-info → smartpush-1.5.2.dist-info}/METADATA +1 -1
- {smartpush-1.5.1.dist-info → smartpush-1.5.2.dist-info}/RECORD +6 -6
- {smartpush-1.5.1.dist-info → smartpush-1.5.2.dist-info}/WHEEL +0 -0
- {smartpush-1.5.1.dist-info → smartpush-1.5.2.dist-info}/top_level.txt +0 -0
smartpush/base/url_enum.py
CHANGED
@@ -16,6 +16,11 @@ class URL(Enum):
|
|
16
16
|
editCrowdPackage = '/crowdPackage/editCrowdPackage', 'POST'
|
17
17
|
crowdPersonList = '/crowdPackage/crowdPersonList', 'POST'
|
18
18
|
|
19
|
+
"""
|
20
|
+
:type 表单操作
|
21
|
+
"""
|
22
|
+
deleteForm = '/form/deleteFormInfo', 'GET'
|
23
|
+
|
19
24
|
@property
|
20
25
|
def method(self):
|
21
26
|
return self.value[1]
|
smartpush/form/form_after.py
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
import json
|
2
2
|
from tenacity import retry, stop_after_attempt, wait_fixed
|
3
|
-
from smartpush.base.request_base import RequestBase
|
3
|
+
from smartpush.base.request_base import RequestBase, FormRequestBase
|
4
4
|
from smartpush.base.url_enum import URL
|
5
5
|
from smartpush.export.basic.GetOssUrl import log_attempt
|
6
6
|
|
7
7
|
|
8
|
-
class FormAfter(
|
8
|
+
class FormAfter(FormRequestBase):
|
9
9
|
def __init__(self, form_id, headers, host):
|
10
|
-
super().__init__(headers, host)
|
11
|
-
self.form_id = form_id
|
10
|
+
super().__init__(form_id,headers, host)
|
12
11
|
|
13
12
|
@retry(stop=stop_after_attempt(3), wait=wait_fixed(2), after=log_attempt)
|
14
13
|
def callPageFormReportDetail(self, reportDetailType, start_time=None, end_time=None):
|
@@ -70,6 +69,13 @@ class FormAfter(RequestBase):
|
|
70
69
|
result.raise_for_status()
|
71
70
|
return result['resultData']
|
72
71
|
|
72
|
+
@retry(stop=stop_after_attempt(3), wait=wait_fixed(2), after=log_attempt)
|
73
|
+
def callDeleteForm(self, merchant_id):
|
74
|
+
params = {"formId": self.form_id, "merchant_id": merchant_id}
|
75
|
+
result = self.get(url=self.host + URL.deleteForm.url, params=params)
|
76
|
+
result.raise_for_status()
|
77
|
+
print(f"删除id{self.form_id}表单成功")
|
78
|
+
|
73
79
|
# -------- 处理数据 --------------
|
74
80
|
def collectFormDetails(self, key, start_time=None, end_time=None):
|
75
81
|
"""
|
@@ -140,4 +146,4 @@ class FormAfter(RequestBase):
|
|
140
146
|
return data.get(num_type)
|
141
147
|
|
142
148
|
def getCrowdPersonList(self, _id, page=1, pageSize=20, filter_type="email", filter_value=""):
|
143
|
-
self.callCrowdPersonList(self,_id,page,pageSize,filter_type,filter_value)
|
149
|
+
self.callCrowdPersonList(self, _id, page, pageSize, filter_type, filter_value)
|
@@ -3,7 +3,7 @@ smartpush/get_jira_info.py,sha256=OYaDV6VPAmkGKYLlRnsi1ZyKHU8xEiVnjsYrc41ZR0U,17
|
|
3
3
|
smartpush/base/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
smartpush/base/faker_data.py,sha256=TOd5EKVImxZpsKEW_dtKa2iqiUGqU7OBkOM8pvqKVUc,24643
|
5
5
|
smartpush/base/request_base.py,sha256=Fn1uPWgaZQZdu8yyi2n13nuiKPVeR95iwx99sG6XGVU,574
|
6
|
-
smartpush/base/url_enum.py,sha256=
|
6
|
+
smartpush/base/url_enum.py,sha256=xj98cd22sZ39TzKfhVEERgSJ1WScn7R4HVU-z8KTbM8,874
|
7
7
|
smartpush/export/__init__.py,sha256=D9GbWcmwnetEndFDty5XbVienFK1WjqV2yYcQp3CM84,99
|
8
8
|
smartpush/export/basic/ExcelExportChecker.py,sha256=3IAeu1kjFS4MpDxjVB1htAcRA1BtfpH3xEkZyP4htAA,19963
|
9
9
|
smartpush/export/basic/GetOssUrl.py,sha256=LeF1y1_uJaYXth1KvO6mEDS29ezb9tliBv5SrbqYkXc,6136
|
@@ -12,7 +12,7 @@ smartpush/export/basic/__init__.py,sha256=6tcrS-2NSlsJo-UwEsnGUmwCf7jgOsh_UEbM0F
|
|
12
12
|
smartpush/flow/MockFlow.py,sha256=MI8WIMZyKlxrV5QVs8rXX6iD07Ldl37_L5Yb5FWqHzU,8595
|
13
13
|
smartpush/flow/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
14
14
|
smartpush/form/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
15
|
-
smartpush/form/form_after.py,sha256=
|
15
|
+
smartpush/form/form_after.py,sha256=vuxtOnADC0PJd53h_KM9yEfVpeQHIC8JTPrRE8bw7VA,6225
|
16
16
|
smartpush/form/form_assert.py,sha256=wPIRfQHhr7lN1fFd-mp0z_qKMtF4jfrNxRWvp2xfqCg,257
|
17
17
|
smartpush/form/form_before.py,sha256=CCvAC_2yWPlnQGtjEA8LPLy9853Nq3nNjcL2GewFWIs,175
|
18
18
|
smartpush/form/form_client_operation.py,sha256=gg-5uHXCyMa_ypBSYPYFVxXdwZdYBJsNtUCqayknMBw,303
|
@@ -22,7 +22,7 @@ smartpush/utils/ListDictUtils.py,sha256=Fm5_d7UyY6xB8gySMPdl5jIFSRhXZcYXdYW-_L1a
|
|
22
22
|
smartpush/utils/StringUtils.py,sha256=n8mo9k0JQN63MReImgv-66JxmmymOGknR8pH2fkQrAo,4139
|
23
23
|
smartpush/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
24
|
smartpush/utils/form_utils.py,sha256=ld-g_Dm_ZlnagQt7imYfUc87bcBRVlTctywuLtzmjXQ,849
|
25
|
-
smartpush-1.5.
|
26
|
-
smartpush-1.5.
|
27
|
-
smartpush-1.5.
|
28
|
-
smartpush-1.5.
|
25
|
+
smartpush-1.5.2.dist-info/METADATA,sha256=MOQLSgRKyErD-iK5bpZI1r5F2poLsWA2d7vM2fWg8PI,131
|
26
|
+
smartpush-1.5.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
27
|
+
smartpush-1.5.2.dist-info/top_level.txt,sha256=5_CXqu08EfbPaKLjuSAOAqCmGU6shiatwDU_ViBGCmg,10
|
28
|
+
smartpush-1.5.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|