61 lines
1.0 KiB
JavaScript
61 lines
1.0 KiB
JavaScript
/*
|
|
* @Descripttion:
|
|
* @version:
|
|
* @Author: kBank
|
|
* @Date: 2022-10-24 10:45:39
|
|
*/
|
|
import request from '@/utils/request'
|
|
|
|
export function login(data) {
|
|
return request({
|
|
url: '/system/auth/manage/login',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function getInfo() {
|
|
return request({
|
|
url: '/system/manage/user/get-info',
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
export function logout() {
|
|
return request({
|
|
url: '/system/auth/manage/logout',
|
|
method: 'delete'
|
|
})
|
|
}
|
|
// 获取验证码
|
|
export function getCodeImg(params) {
|
|
return request({
|
|
url: '/code',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
// 结算国列表
|
|
export function userCountryList(params) {
|
|
return request({
|
|
url: '/system/manage/user-country/list',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
// 切换结算国
|
|
export function changeList(id) {
|
|
return request({
|
|
url: '/system/manage/user-country/change/' + id,
|
|
method: 'post',
|
|
})
|
|
}
|
|
// 切换语言
|
|
export function languages(params) {
|
|
return request({
|
|
url: '/system/pub/enums/get-languages',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|