mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 03:23:13 +08:00
25 lines
448 B
TypeScript
Executable File
25 lines
448 B
TypeScript
Executable File
import api from '../index'
|
|
|
|
export default {
|
|
// 登录
|
|
login: (data: {
|
|
account: string
|
|
password: string
|
|
}) => api.post('user/login', data, {
|
|
baseURL: '/mock/',
|
|
}),
|
|
|
|
// 获取权限
|
|
permission: () => api.get('user/permission', {
|
|
baseURL: '/mock/',
|
|
}),
|
|
|
|
// 修改密码
|
|
passwordEdit: (data: {
|
|
password: string
|
|
newpassword: string
|
|
}) => api.post('user/password/edit', data, {
|
|
baseURL: '/mock/',
|
|
}),
|
|
}
|