import { defHttp } from '/@/utils/http/axios'; import { UserSubscreNotificationListResult } from './model'; export const getAll = () => { return defHttp.get({ url: '/api/notifications/my-subscribes/all', }); }; export const subscribe = (name: string) => { return defHttp.post({ url: '/api/notifications/my-subscribes', data: { name: name, }, }); }; export const unSubscribe = (name: string) => { return defHttp.delete({ url: `/api/notifications/my-subscribes?name=${name}`, }); };