chore: backend api

This commit is contained in:
jialin
2026-01-30 20:48:55 +08:00
committed by Lawrence Li
parent af6f90c228
commit a2be7f6b36
22 changed files with 11829 additions and 9118 deletions
@@ -0,0 +1,21 @@
import { useIntl } from '@umijs/max';
import { message } from 'antd';
import { updateBackend } from '../../backends/apis';
import { FormData } from '../../backends/config/types';
const useEnableBackend = () => {
const intl = useIntl();
const handleEnableBackend = async (params: {
id: number;
data: FormData;
}) => {
await updateBackend(params.id, {
data: params.data
});
message.success(intl.formatMessage({ id: 'common.message.success' }));
};
return { handleEnableBackend };
};
export default useEnableBackend;