mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-03-04 13:04:13 +08:00
15 lines
410 B
Go
15 lines
410 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);
|
|
};
|