Files
cunkebao_v3/Store_vue/api/modules/auth.js

21 lines
659 B
JavaScript
Raw Normal View History

2025-04-15 17:08:52 +08:00
import { request, requestWithRetry } from '../config'
// 认证相关API
export const authApi = {
// 用户登录
2025-10-29 10:30:50 +08:00
// @param {string} account - 账号
// @param {string} password - 密码
// @param {string} deviceId - 设备ID仅APP端传递H5端为空字符串
login: (account, password, deviceId) => {
2025-04-15 17:08:52 +08:00
return request({
url: '/v1/auth/login',
method: 'POST',
data: {
account: account,
password: password,
2025-10-29 10:30:50 +08:00
typeId: 2, // 固定为2
deviceId: deviceId || '' // 设备ID仅APP端有值
2025-04-15 17:08:52 +08:00
}
})
}
}