作者 dengyuting

add接口

name: 获取合伙人类型
base_url: ${ENV(base_manager_url)}
request:
headers:
Content-Type: application/json;charset=utf-8
User-Agent: okhttp/3.12.3
Authorization: Bearer ${get_m_accesstoken()}
json:
id:
method: POST
url: /v1/common/partnerType
validate:
- eq:
- content.msg
- ok
- length_equals:
- content.data
- 4
\ No newline at end of file
... ...
name: /v1/partners/list
name: 获取合伙人
base_url: ${ENV(base_manager_url)}
variables:
partnerName: '合伙人'
request:
headers:
Content-Type: application/json;charset=utf-8
User-Agent: okhttp/3.12.3
Authorization: Bearer ${get_m_accesstoken()}
json:
partnerName: $partnerName
partnerType:
pageNumber: 1
pageSize: 10
id:
method: POST
url: v1/partners/list
url: /v1/common/partner
validate:
- eq:
- content.msg
... ...
name: 事业分红列表
name: 分红列表
base_url: ${ENV(base_manager_url)}
#variables:
# orderid: ${get_actual_id_from_database()}
# msg: ok
variables:
orderType: 1
partnerCategoryId: 1
searchText: ""
request:
headers:
Content-Type: application/json;charset=utf-8
... ... @@ -11,8 +12,9 @@ request:
json:
pageNumber: 1
pageSize: 500
partner: ''
searchText: ''
orderType: $orderType
partnerCategoryId: $partnerCategoryId
searchText: $searchText
method: POST
url: /v1/dividends/list
# extract:
... ...
name: 获取当前用户信息
base_url: ${ENV(base_manager_url)}
request:
headers:
Content-Type: application/json;charset=utf-8
User-Agent: okhttp/3.12.3
Authorization: Bearer ${get_m_accesstoken()}
json:
id:
method: POST
url: /v1/auth/profile
validate:
- eq:
- content.msg
- ok
- eq:
- content.data.user.adminType
- ${convert_to_string(1)}
\ No newline at end of file
... ...
name: 账号登录:/auth/login
name: 企业平台单点登录, 账号登录:/auth/login
base_url: ${ENV(base_manager_url)}
variables:
secret: ${get_secret($url)}
... ...
name: /v1/partners/list
name: 合伙人列表:/v1/partners/list
base_url: ${ENV(base_manager_url)}
variables:
partnerType: 2
partnerName: '123'
request:
headers:
Content-Type: application/json;charset=utf-8
User-Agent: okhttp/3.12.3
Authorization: Bearer ${get_m_accesstoken()}
json:
partnerName: ""
partnerName: $partnerName
partnerType: $partnerType
pageNumber: 1
pageSize: 10
pageSize: 100
method: POST
url: /v1/partners/list
validate:
... ...