mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-02 23:40:24 +08:00
17 lines
880 B
TypeScript
17 lines
880 B
TypeScript
import request from './request';
|
|
|
|
export default {
|
|
login: (param: any) => request.post('/auth/accounts/login', param),
|
|
otpVerify: (param: any) => request.post('/auth/accounts/otp-verify', param),
|
|
getPublicKey: () => request.get('/common/public-key'),
|
|
getConfigValue: (params: any) => request.get('/sys/configs/value', params),
|
|
oauth2LoginConfig: () => request.get('/auth/oauth2-config'),
|
|
changePwd: (param: any) => request.post('/sys/accounts/change-pwd', param),
|
|
captcha: () => request.get('/sys/captcha'),
|
|
logout: () => request.post('/auth/accounts/logout'),
|
|
getPermissions: () => request.get('/sys/accounts/permissions'),
|
|
oauth2Callback: (params: any) => request.get('/auth/oauth2/callback', params),
|
|
getLdapEnabled: () => request.get('/auth/ldap/enabled'),
|
|
ldapLogin: (param: any) => request.post('/auth/ldap/login', param),
|
|
};
|