def message_type_list():
    request = Api_request.Api_request()
    data = ''
    url = '/api/v1/message/messageTypeList'
    re = request.post_re(data,url)
    print(re.text)
    return re.text
Esempio n. 2
0
def bank_card():
    r= Api_request.Api_request()
    url = '/api/v1/account/bank/card'
    data = ''
    re = r.post_re(data,url)
    #print(re.text)
    return re.text
Esempio n. 3
0
def question():
    r= Api_request.Api_request()
    url = '/api/v1/question'
    data = ''
    re = r.post_re(data,url)
    print(re.text)
    return re.text
Esempio n. 4
0
def wechatconfig():
    request = Api_request.Api_request()
    data = ''
    url='/api/v1/configure/wechatConfig'
    re = request.post_re(data,url)
    print(re.text)
    return re.text
Esempio n. 5
0
def customer():
    r = Api_request.Api_request()
    url = '/api/v1/customer'
    data=''
    re =r.post_re(data,url)
    print(re.text)
    return re.text
Esempio n. 6
0
def bank_list():
    r = Api_request.Api_request()
    url = '/api/v1/bank'
    data = {"token": data_lib.token}
    re = r.post_re(data, url)
    print(re.text)
    return re.text
Esempio n. 7
0
def getNotice():
    request = Api_request.Api_request()
    url = '/api/v1/message/getNotice'
    data = {"id": '1'}
    re = request.get_re(data, url)
    print(re.text)
    return re.text
Esempio n. 8
0
def user_center():
    data =''
    url = '/api/v1/customer/teamHistory'
    request = Api_request.Api_request()
    re = request.post_re(data,url)
    print(re.text)
    return re.text
Esempio n. 9
0
def my_team():
    request = Api_request.Api_request()
    url = '/api/v1/customer/team'
    data = {"pageIndex": '', "pageSize": ''}
    re = request.post_re(data, url)
    print(re.text)
    return re.text
Esempio n. 10
0
def systemtime():
    request = Api_request.Api_request()
    url = '/api/v1/configure/systemTime'
    data = ''
    re = request.get_re(data, url)
    print(re.text)
    return re.text
Esempio n. 11
0
def messagelist():
    request = Api_request.Api_request()
    data={
	"id":'1',
	"pageSize":'',
	"pageNo":''
    }
    url='/api/v1/message/messageList'
    re =request.post_re(data,url)
    print(re.text)
    return re.text
Esempio n. 12
0
def orderlist():
    data = {
        "cardType": 'CARD',
        "keyword": '',
        "pageNo": 1,
        "pageSize": 10,
        "showTrash": 0,
        "status": 'null'
    }
    request = Api_request.Api_request()
    url = '/api/v1/orderRecord/listV2'
    re = request.post_re(data, url)
    print(re.text)
    return re.text
Esempio n. 13
0
def bank_query():
    request = Api_request.Api_request()
    data = {"id": '1', "name": '', "logo": ''}
    url = '/api/v1/bankConfig/support/query/banks'
    re = request.post_re(data, url)
    return re.text
Esempio n. 14
0
 def test_moorelive(self):
     #设定所要读取对应数据的行数
     q = request.mooreliveTest(exel.getUrl, exel.getMethod, exel.getData)
     result = q.get_request()
     print(result)
     self.assertEqual(result['code'], 201, msg='状态测试不成功')