| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import { defHttp } from '/@/utils/http/axios';
- import { PageParams, ListGetResultModel, NoticeParams } from './model';
- import { Result } from '/#/axios';
- enum Api {
- pageList = '/zfb-api/zfb/platform/notice/list',
- addNotice = '/zfb-api/zfb/platform/notice/save',
- delNotice = '/zfb-api/zfb/platform/notice/delete',
- unreadNoticesList = '/zfb-api/zfb/platform/notice/unreadNoticesList',
- }
- /**
- * @description: Get sample list value
- */
- export const ListApi = (params: PageParams) =>
- defHttp.post<ListGetResultModel>({
- url: Api.pageList,
- params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
- export const addNoticeApi = (params: NoticeParams) =>
- defHttp.post<Result>({
- url: Api.addNotice,
- params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
- export const editNoticeApi = (params: NoticeParams) =>
- defHttp.post<Result>({
- url: Api.addNotice,
- params,
- headers: {
- // @ts-ignore
- ignoreCancelToken: true,
- },
- });
|