客户接口/登录授权

登录

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.login 游客可访问

Header parameters
versionstringRequired

版本号

Example: 0.0.1
companyIdstringRequired

公司ID,通过环境变量获取

Example: {{company}}
tracestringRequired

随机跟踪码UUID

Example: {{mock_trace}}
langstringRequired

语言

Example: zh-CN
Body
typeintegerRequired

注册登录方式:1邮箱,2手机号码,3客户账号

phoneAreastringOptional

手机区号;类型为2:手机号码时该字段必填

loginNamestringRequired

账号:邮箱/手机号码

deviceintegerRequired

登录设备:1=移动端web:H5,2=pcweb:PC_Web,3=系统&后台注册:System,4=安卓原生app:Android,5=苹果原生app:iOS,6=鸿蒙OS:HOS,7=pc windows客户端:PC_Win,8=pc mac客户端:PC_Mac,9=不属于以上的:其他

isThirdbooleanRequired

是否第三方

verifyCodestringOptional

验证码

sendTokenstringOptional

验证码发送票据

loginPwdstringOptional

登录密码

bindThirdUserIdstringOptional

绑定第三方userId

thirdSourcestringOptional

第三方源 google,facebook,twitter…

googleCodestringOptional

谷歌验证码

Responses
200Success
application/json
post
/login/customer.app.CustomerWebApiService.login
200Success

客户注册

post

version=0.0.1 bizType=customer.app.CustomerWebApiService.register 游客可访问

Header parameters
versionstringRequired

版本号

Example: 0.0.1
companyIdstringRequired

公司ID,通过环境变量获取

Example: {{company}}
tracestringRequired

随机跟踪码UUID

Example: {{mock_trace}}
langstringRequired

语言

Example: zh-CN
X-Forwarded-ForstringRequired
Body
countrystringRequired

国家

langstringOptional

语言信息,默认en-US

loginNamestringRequired

账号:邮箱/手机号码,与type配合使用

phoneAreastringOptional

手机区号,与注册方式配合使用,默认+86

typeinteger · int32 · min: 1 · max: 3Required

注册方式:1邮箱,2手机号码

registerDevicestringOptional

注册的设备型号

verifyCodestringRequired

验证码

sendTokenstringRequired

验证码发送票据

registerSourceinteger · int32 · min: 1Required

注册来源:1=移动端web:H5,2=pcweb:PC_Web,3=系统&后台注册:System,4=安卓原生app:Android,5=苹果原生app:iOS,6=鸿蒙OS:HOS,7=pc windows客户端:PC_Win,8=pc mac客户端:PC_Mac,9=不属于以上的:其他

utmSourcestringOptional

广告来源(开户链接参数source)

utmMediumstringOptional

广告媒介(开户链接参数medium)

utmCampaignstringOptional

广告系列(开户链接参数campaign)

utmContentstringOptional

广告组(开户链接参数content)

utmTermstringOptional

关键词(开户链接参数term)

customerGroupIdinteger · int64Optional

客户组ID

openAccountTypeinteger · int32Optional

开户类型:0.个人 1.企业 ,默认个人

pwdstringOptional

密码,MD5加密

thirdServerCodestringOptional

第三方系统唯一编号

thirdServerSourcestringOptional

第三方系统来源,如:代理=agent

Responses
200Success
application/json
post
/register/customer.app.CustomerWebApiService.register
200Success

真实模拟账户切换

post
Header parameters
companyIdstringRequired

公司ID,通过环境变量获取

Example: {{company}}
tracestringRequired

随机跟踪码UUID

Example: {{mock_trace}}
tokenstringRequired

登录token

Example: {{LoginResult.data.token}}
langstringRequired

语言

Example: zh-CN
Body
objectOptional
Responses
200Success
application/json
Responseobject
post
/thirdExt/switchAccount
200Success

重置模拟账户

post

version=0.0.1 bizType=customer.app.CustomerDubboApiService.resetAccount

Header parameters
companyIdstringRequired

公司ID,通过环境变量获取

Example: {{company}}
tracestringRequired

随机跟踪码UUID

Example: {{mock_trace}}
tokenstringRequired

登录token

Example: {{LoginResult.data.token}}
langstringRequired

语言

Example: zh-CN
versionstringRequired

版本号

Example: 0.0.1
Body
objectOptional
Responses
200Success
application/json
Responseobject
post
/global/customer.app.CustomerDubboApiService.resetAccount
200Success

获取访问令牌

post

/global/thirdExt/randomKey 通过一次临时Token换取最终访问Token

Header parameters
companyIdstringRequired

公司ID,通过环境变量获取

Example: {{company}}
tracestringRequired

随机跟踪码UUID

Example: {{mock_trace}}
tokenstringOptional

登录token

Example: {{LoginResult.data.token}}
langstringRequired

语言

Example: zh-CN
Body
objectOptional
Responses
200Success
application/json
post
/global/thirdExt/randomKey
200Success

Last updated