You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kev/Drawer/drawer-htmlroot/services/microSeismicService.ts

57 lines
1.5 KiB
TypeScript

1 month ago
import { apiClient } from '../utils/apiClient';
1 month ago
const requestUrl = '/MicroSeismic';
1 month ago
/**
* csv
* @param {*} microSeismicInfo
* @returns
*/
export const ApplyScatterCalc = async (microSeismicInfo: any) => {
1 month ago
// return fetch(`${requestUrl}/scatterfile`, {
// method: "POST",
// headers: {
// "Content-Type": "application/json",
// },
// body: JSON.stringify(microSeismicInfo)
// });
return apiClient(`${requestUrl}/scatterfile`, {
method: 'POST',
headers:
{
'Content-Type': 'application/json',
},
body: JSON.stringify(microSeismicInfo),
});
1 month ago
}
/**
*
* @returns
*/
export const MicroSeismicCalclist = async (projectId: string) => {
1 month ago
return apiClient(`${requestUrl}/getMicroSeismicCalclist?projectId=${projectId}`);
1 month ago
}
/**
*
* @param {string} colorName,
* @returns
*/
export const GetGridColorList = async (colorName: string) => {
1 month ago
return apiClient(`${requestUrl}/gridcolorlist?colorName=${colorName}`);
1 month ago
}
/**
* X,Y,Z
* @param {string} projectName
* @returns
*/
export const fetchGridParamData = async (projectName: string) => {
1 month ago
return apiClient(`${requestUrl}/getgridparameter?project_Name=${projectName}`);
1 month ago
}