generalCustomerLoan_list.py
1.22 KB
# -*- coding: utf-8 -*-
from commons import common as com
from commons.MySession import hg
class generalCustomerLoan_list():
"普通客户模式——列表查询"
def __init__(self):
self.url = "http://test.gateway.diligrp.com:8285/hg-trading/api/generalCustomerLoan/list"
self.header = {
"Connection" :"keep-alive",
"Accept" :"application/json, text/plain, */*",
"UAP_accessToken" :".-.----",
"ignoreCancelToken" :"true",
"UAP_refreshToken" :".-.----",
"Content-Type" :"application/json;charset=UTF-8",
"Accept-Language" :"zh-CN,zh;q=0.9",
"Accept-Encoding" :"gzip, deflate"
}
self.body={
"current": 1,
"size": 10,
"enforcerState": "1",
"customerId": 141995,
"batch": "2109000098",
"settleDateStart": "2020-09-08",
"settleDateEnd": "2025-09-08"
}
# tt = generalCustomerLoan_list()
# re = hg.post(url = tt.url,headers = tt.header,json=tt.body,proxies=hg.myproxies)
# print(re.json())