hldy_vue/src/views/synchronization/directive/serviceDirective/ConfigServiceDirective.api.ts

33 lines
857 B
TypeScript
Raw Normal View History

2025-07-09 17:32:09 +08:00
import { defHttp } from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";
const { createConfirm } = useMessage();
enum Api {
list = '/services/serviceDirective/list',
2025-07-23 17:29:11 +08:00
listByDS = '/services/serviceDirective/listByDS',
queryById = '/services/serviceDirective/queryById',
2025-07-25 15:10:12 +08:00
syncDirective = '/services/serviceDirective/syncDirective',
2025-07-09 17:32:09 +08:00
}
/**
*
* @param params
*/
2025-07-23 17:29:11 +08:00
export const list = (params) => defHttp.get({ url: Api.list, params });
export const queryById = (params) => defHttp.get({ url: Api.queryById, params });
/**
* -
* @param params
*/
2025-07-25 15:10:12 +08:00
export const listByDS = (params) => defHttp.get({ url: Api.listByDS, params });
/**
*
* @param params
* @returns
*/
export const syncDirective = (params) => {
return defHttp.get({ url: Api.syncDirective, params });
};