feat: core 增加 xpack 节点管理

This commit is contained in:
ssongliu
2024-07-25 14:43:41 +08:00
parent cabca70ee5
commit fafa042ee9
36 changed files with 411 additions and 116 deletions
+7 -7
View File
@@ -2,29 +2,29 @@ import { Login } from '@/api/interface/auth';
import http from '@/api';
export const loginApi = (params: Login.ReqLoginForm) => {
return http.post<Login.ResLogin>(`/auth/login`, params);
return http.post<Login.ResLogin>(`/core/auth/login`, params);
};
export const mfaLoginApi = (params: Login.MFALoginForm) => {
return http.post<Login.ResLogin>(`/auth/mfalogin`, params);
return http.post<Login.ResLogin>(`/core/auth/mfalogin`, params);
};
export const getCaptcha = () => {
return http.get<Login.ResCaptcha>(`/auth/captcha`);
return http.get<Login.ResCaptcha>(`/core/auth/captcha`);
};
export const logOutApi = () => {
return http.post<any>(`/auth/logout`);
return http.post<any>(`/core/auth/logout`);
};
export const checkIsSafety = (code: string) => {
return http.get<string>(`/auth/issafety?code=${code}`);
return http.get<string>(`/core/auth/issafety?code=${code}`);
};
export const checkIsDemo = () => {
return http.get<boolean>('/auth/demo');
return http.get<boolean>('/core/auth/demo');
};
export const getLanguage = () => {
return http.get<string>(`/auth/language`);
return http.get<string>(`/core/auth/language`);
};
+1 -1
View File
@@ -26,7 +26,7 @@ export const unbindLicense = () => {
};
export const getSettingInfo = () => {
return http.post<Setting.SettingInfo>(`/settings/search`);
return http.post<Setting.SettingInfo>(`/core/settings/search`);
};
export const getSystemAvailable = () => {
return http.get(`/settings/search/available`);