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/horizontalWellService.ts

69 lines
1.5 KiB
TypeScript

1 month ago
import { apiClient } from '../utils/apiClient';
1 month ago
const requestUrl = '/HorizontalWell';
1 month ago
/**
*
* @returns
*/
export const fetchCalcHoriWellFracturCoord = async () => {
1 month ago
return apiClient(`${requestUrl}/stagePointParameter`);
1 month ago
}
/**
*
* @param {clientId} clientId
* @returns layers
*/
export const fetchLayers = async (drawId: string, clientId: string) => {
1 month ago
return apiClient(`${requestUrl}/layers?clientId=${clientId}&drawId=${drawId}`)
1 month ago
}
/**
*
* @param {} param
* @returns
*/
export const updateParameter = async (param: any) => {
1 month ago
console.log('水平井更新参数');
console.info(param);
return apiClient(`${requestUrl}/updateParameter`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify(param),
});
1 month ago
}
/**
* API
*/
export const bizApiStatus = async () => {
1 month ago
return apiClient(`${requestUrl}/bizstatus`);
1 month ago
}
/**
*
* @param {*} applyData
* @returns
*/
export const applyBaseDraw = async (applyData: any) => {
1 month ago
return apiClient(`${requestUrl}/applyBaseDraw`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify(applyData),
})
1 month ago
}
/**
*
* @returns
*/
export const getStagePointParam = async () => {
1 month ago
return apiClient(`${requestUrl}/stagePointParameter`);
1 month ago
}