1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-04 04:54:16 +08:00
2022-09-20 14:55:08 +08:00

31 lines
790 B
Go

import http from '@/api';
import { Setting } from '../interface/setting';
export const getSettingInfo = () => {
return http.post<Setting.SettingInfo>(`/settings/search`);
};
export const updateSetting = (param: Setting.SettingUpdate) => {
return http.put(`/settings`, param);
};
export const updatePassword = (param: Setting.PasswordUpdate) => {
return http.put(`/settings/password`, param);
};
export const syncTime = () => {
return http.post(`/settings/time/sync`, {});
};
export const cleanMonitors = () => {
return http.post(`/settings/monitor/clean`, {});
};
export const getMFA = () => {
return http.get<Setting.MFAInfo>(`/settings/mfa`, {});
};
export const bindMFA = (param: Setting.MFABind) => {
return http.post(`/settings/mfa/bind`, param);
};