联调接口

This commit is contained in:
xuli3099
2025-08-12 13:43:21 +08:00
parent 74596473ab
commit f5717959ae
15 changed files with 293 additions and 114 deletions

View File

@@ -3,7 +3,7 @@ import request from "@/utils/request"
// 获取客户端版本
export function versionCheck(data) {
return request.post({
url: '/api/versionCheck',
url: '/acc/auth/version',
data
})
}
@@ -11,18 +11,28 @@ export function versionCheck(data) {
// 获取设备绑定状态
export function getBindStatus(data) {
return request.post({
url: '/api/getBindStatus',
url: '/acc/auth/status',
data
})
}
// 获取图片
export function getCaptchaImage() {
return request.get({
url: '/api/captchaImage',
// 申请设备授权
export function authDeviceApply(data) {
return request.post({
url: '/acc/auth/apply',
data
})
}
// App绑定设备授权码
export function authInputCode(data) {
return request.post({
url: '/acc/auth/inputCode',
data
})
}
// 获取验证码
export function getVerifyCode(data) {
return request.post({
@@ -34,11 +44,18 @@ export function getVerifyCode(data) {
// 登录
export function login(data) {
return request.post({
url: '/api/user/login',
url: '/acc/auth/login',
data
})
}
// 登出
export function logout(data) {
return request.post({
url: '/acc/auth/logout',
data
})
}
// 获取用户信息
export function getUserInfo(data) {