m_partner_edit_api.yml
903 字节
name: 合伙人编辑
base_url: ${ENV(base_manager_url)}
variables:
account: ${get_account_from_database(partner_info)}
id: ${get_id_from_database(partner_info)}
partnerName: ${get_partnername_from_database(partner_info)}
area: ${get_area_from_database(partner_info)}
salesmanName: ${get_salesman_from_database(partner_info)}
phone: ${get_phone_from_database(partner_info)}
request:
headers:
Content-Type: application/json;charset=utf-8
User-Agent: okhttp/3.12.3
Authorization: Bearer ${get_m_accesstoken()}
json:
partnerName: $partnerName
partnerType: 1
area: $area
account: $account
state: 1
cooperationTime: ${get_today()}
salesmanName: $salesmanName
phone: $phone
id: $id
method: POST
url: v1/partners/edit
validate:
- eq:
- content.msg
- ok