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.
82 lines
1.3 KiB
82 lines
1.3 KiB
|
1 month ago
|
import request from '@/utils/request'
|
||
|
|
|
||
|
|
|
||
|
|
export function login(data) {
|
||
|
|
return request({
|
||
|
|
url: '/api/v1/auth/login/access-token',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export function logout() {
|
||
|
|
return request({
|
||
|
|
url: '/api/v1/auth/logout',
|
||
|
|
method: 'post'
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export function getUserInfo() {
|
||
|
|
return request({
|
||
|
|
url: '/api/v1/users/info',
|
||
|
|
method: 'post',
|
||
|
|
data: {}
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export function getUserStateList() {
|
||
|
|
return request({
|
||
|
|
url: '/api/v1/users/ops/state/list',
|
||
|
|
method: 'post',
|
||
|
|
data: {}
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export function changePassword(data) {
|
||
|
|
return request({
|
||
|
|
url: '/api/v1/users/ops/passedit',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export function updateAvatar(data) {
|
||
|
|
return request({
|
||
|
|
url:'/api/v1/users/ops/avatar/update',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export function updateUserState(data) {
|
||
|
|
return request({
|
||
|
|
url: '/api/v1/users/ops/state/update',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export function updateSignature(data) {
|
||
|
|
return request({
|
||
|
|
url: '/api/v1/users/ops/signature/update',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export function sendPhoneCode(data) {
|
||
|
|
return request({
|
||
|
|
url:'/api/v1/auth/phone_code_send',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|
||
|
|
|
||
|
|
export function checkPhoneCode(data) {
|
||
|
|
return request({
|
||
|
|
url: '/api/v1/auth/phone_code_check',
|
||
|
|
method: 'post',
|
||
|
|
data
|
||
|
|
})
|
||
|
|
}
|