Commit 5a895d74d6f6f812b349a33ea387c62d02466552
1 parent
5a9777b3
更新文件
Showing
3 changed files
with
123 additions
and
0 deletions
commons/api/hg/loan_generalCustomer/generalCustomerLoan_delete.py
0 → 100644
1 | +# -*- coding: utf-8 -*- | |
2 | +""" | |
3 | +@Time : 2021/8/31 14:43 | |
4 | +@Auth : wlm | |
5 | +@File :createAndTrade.py | |
6 | +@IDE :PyCharm | |
7 | +""" | |
8 | +""" | |
9 | +普通客户模式——删除借款 | |
10 | +""" | |
11 | +from commons import common as com | |
12 | +from commons.MySession import hg | |
13 | + | |
14 | +class generalCustomerLoan_delete(): | |
15 | + | |
16 | + def __init__(self): | |
17 | + self.url = "http://test.gateway.diligrp.com:8285/hg-trading/api/generalCustomerLoan/delete/66?_t="+str(com.time_stamp()) | |
18 | + self.header = { | |
19 | + "Connection" :"keep-alive", | |
20 | + "Accept" :"application/json, text/plain, */*", | |
21 | + "UAP_accessToken" :".-.---", | |
22 | + "UAP_refreshToken" :".-.---", | |
23 | + "Accept-Language" :"zh-CN,zh;q=0.9", | |
24 | + "Accept-Encoding" :"gzip, deflate" | |
25 | + } | |
26 | + | |
27 | + self.sql='SELECT id FROM customer_loan WHERE batch="2109000088";' | |
28 | + | |
29 | + | |
30 | + | |
31 | +# tt = generalCustomerLoan_delete() | |
32 | +# re = hg.get(url = tt.url,headers = tt.header,proxies=hg.myproxies) | |
33 | +# print(re.json()) | |
34 | +# | ... | ... |
commons/api/hg/loan_generalCustomer/generalCustomerLoan_list.py
0 → 100644
1 | +# -*- coding: utf-8 -*- | |
2 | +""" | |
3 | +@Time : 2021/8/31 14:43 | |
4 | +@Auth : wlm | |
5 | +@File :createAndTrade.py | |
6 | +@IDE :PyCharm | |
7 | +""" | |
8 | +""" | |
9 | +普通客户模式——列表查看 | |
10 | +""" | |
11 | +from commons import common as com | |
12 | +from commons.MySession import hg | |
13 | + | |
14 | +class generalCustomerLoan_list(): | |
15 | + | |
16 | + def __init__(self): | |
17 | + self.url = "http://test.gateway.diligrp.com:8285/hg-trading/api/generalCustomerLoan/list" | |
18 | + self.header = { | |
19 | + "Connection" :"keep-alive", | |
20 | + "Accept" :"application/json, text/plain, */*", | |
21 | + "UAP_accessToken" :".-.----", | |
22 | + "ignoreCancelToken" :"true", | |
23 | + "UAP_refreshToken" :".-.----", | |
24 | + "Content-Type" :"application/json;charset=UTF-8", | |
25 | + "Accept-Language" :"zh-CN,zh;q=0.9", | |
26 | + "Accept-Encoding" :"gzip, deflate" | |
27 | + } | |
28 | + self.body={ | |
29 | + "current": 1, | |
30 | + "size": 10, | |
31 | + "enforcerState": "1", | |
32 | + "customerId": 141995, | |
33 | + "batch": "2109000098", | |
34 | + "settleDateStart": "2021-09-08", | |
35 | + "settleDateEnd": "2021-09-08" | |
36 | + } | |
37 | + | |
38 | +# tt = generalCustomerLoan_list() | |
39 | +# re = hg.post(url = tt.url,headers = tt.header,json=tt.body,proxies=hg.myproxies) | |
40 | +# print(re.json()) | |
41 | + | ... | ... |
commons/api/hg/loan_generalCustomer/generalCustomerLoan_save.py
0 → 100644
1 | +# -*- coding: utf-8 -*- | |
2 | +""" | |
3 | +@Time : 2021/8/31 14:43 | |
4 | +@Auth : wlm | |
5 | +@File :createAndTrade.py | |
6 | +@IDE :PyCharm | |
7 | +""" | |
8 | +""" | |
9 | +普通客户模式——新增预付款 | |
10 | +""" | |
11 | + | |
12 | +from commons.MySession import hg | |
13 | + | |
14 | +class generalCustomerLoan_save(): | |
15 | + | |
16 | + def __init__(self): | |
17 | + self.url = "http://test.gateway.diligrp.com:8285/hg-trading/api/generalCustomerLoan/save" | |
18 | + self.header = { | |
19 | + "Connection" :"keep-alive", | |
20 | + "Content-Length" :"25", | |
21 | + "Accept" :"application/json, text/plain, */*", | |
22 | + "UAP_accessToken" :".-.--", | |
23 | + "ignoreCancelToken" :"true", | |
24 | + "UAP_refreshToken" :".-.--", | |
25 | + "Content-Type" :"application/json;charset=UTF-8", | |
26 | + "Accept-Language" :"zh-CN,zh;q=0.9", | |
27 | + "Accept-Encoding" :"gzip, deflate" | |
28 | + } | |
29 | + self.body = { | |
30 | + "batch": "2109000073", | |
31 | + "customerName": "拜登", | |
32 | + "customerIdcard": "110101198001012331", | |
33 | + "customerCard": "888810043394", | |
34 | + "tradeAmountText": "20.00", | |
35 | + "availableAmountText": "10.11", | |
36 | + "feeAmountText": "9.89", | |
37 | + "advancePrice": 2000, | |
38 | + "ratifierName": "杭果借款", | |
39 | + "tradePrice": 2000, | |
40 | + "feePrice": 989, | |
41 | + "customerId": 141995, | |
42 | + "customerAccountId": 107791, | |
43 | + "ratifierId": 453 | |
44 | + } | |
45 | + | |
46 | +# tt = generalCustomerLoan_save() | |
47 | +# re = hg.post(url = tt.url,json = tt.body,headers = tt.header,proxies=hg.myproxies) | |
48 | +# print(re.json()) | ... | ... |