2021-06-07 17:22:07 +08:00
|
|
|
import request from './request'
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
login: (param: any) => request.request('POST', '/sys/accounts/login', param, null),
|
2022-07-18 20:36:31 +08:00
|
|
|
changePwd: (param: any) => request.request('POST', '/sys/accounts/change-pwd', param, null),
|
|
|
|
|
getPublicKey: () => request.request('GET', '/common/public-key', null, null),
|
2021-07-28 18:03:19 +08:00
|
|
|
captcha: () => request.request('GET', '/sys/captcha', null, null),
|
2021-06-07 17:22:07 +08:00
|
|
|
logout: (param: any) => request.request('POST', '/sys/accounts/logout/{token}', param, null),
|
|
|
|
|
getMenuRoute: (param: any) => request.request('Get', '/sys/resources/account', param, null)
|
|
|
|
|
}
|