hldy_yunwei_vue/src/views/deviceSync/DeviceSync.api.ts

20 lines
533 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { defHttp } from '/@/utils/http/axios';
enum Api {
getOrgInfo = '/admin/orgapplyinfo/orgApplyInfo/getOrgInfo',
addNuIot = '/admin/nuBaseInfo/nuBaseInfo/addNuIot',
}
/**
* 获取机构详细信息包含sys_depart信息
* @param params orgCode部门编码 不传查所有
* @returns
*/
export const getOrgInfo = (params) => defHttp.get({ url: Api.getOrgInfo, params });
export const addNuIot = (params, isUpdate) => {
return defHttp.post({ url: Api.addNuIot, params }, { isTransformResponse: false });
};