You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.3 KiB
42 lines
1.3 KiB
import http from '../utils/http/index.js'
|
|
|
|
/**
|
|
* 手机登录获取验证码接口
|
|
* @param {object} data 获取验证码参数
|
|
* @returns 获取验证码结果
|
|
* swagger:http://api-ops-uec-test.qniao.cn/uec/swagger-ui/index.html?urls.primaryName=CustomerApi#/%E7%99%BB%E5%BD%95%E8%AE%A4%E8%AF%81/authorizeByCaptchaUsingPOST
|
|
*/
|
|
export const getAuthCaptcha = (data) => {
|
|
return http.post({
|
|
url: '/uec/get/auth-captcha',
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 手机验证码登录,返回临时token
|
|
* @param {object} data 登录参数
|
|
* @returns {object} 返回参数 {token: '', userId: ''}
|
|
*
|
|
* swagger:http://api-ops-uec-test.qniao.cn/uec/swagger-ui/index.html?urls.primaryName=CustomerApi#/%E7%99%BB%E5%BD%95%E8%AE%A4%E8%AF%81/authorizeByCaptchaUsingPOST
|
|
*/
|
|
export const loginByPhone = (data) => {
|
|
return http.post({
|
|
url: '/uec/authorize/by-captcha',
|
|
data
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 手机验证码登录,返回临时token
|
|
* @param {object} data 登录参数
|
|
* @returns {string} 返回参数 token:string
|
|
*
|
|
* swagger:http://api-ops-yyt-test.qniao.cn/yyt-uec/swagger-ui/index.html?urls.primaryName=CustomerApi#/%E7%99%BB%E5%BD%95%E8%AE%A4%E8%AF%81/getProductLineTokenByLoginTokenUsingPOST
|
|
*/
|
|
export const getQnToken = (data) => {
|
|
return http.post({
|
|
url: '/yyt-uec/authorize/get/product-line-token/by/login-token',
|
|
data
|
|
})
|
|
}
|