-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgroupModel.py
More file actions
38 lines (29 loc) · 843 Bytes
/
groupModel.py
File metadata and controls
38 lines (29 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#! /usr/bin/env python
# -*- coding:utf-8 -*-
"""a test module"""
__author__ = 'anne yang'
import requests
# group models
class ApiResult(object):
def get_api_result(apiName, params):
base_url = 'http://192.168.4.215:23110'
r = requests.post(base_url + apiName, json=params)
if r.status_code == 200:
print(r.text)
else:
print(r.status_code)
# 查询营销区拼团列表
def test_cases(self):
apiName = '/groupBuy/getQuickSaleGroupBuyList'
params = {
"uid": "18057911",
"lang": "1",
"top_group_buy_id": "null",
"limit": "30",
"page": "1"
}
# 查询普通区拼团列表
def get_common_group_list(self):
pass
if __name__ == '__main__':
ApiResult.get_api_result()