Files
geg-gas-web/src/api/dayPlan/LngAppro/index.ts
‘huanghaiixia’ f822654100 lng计量代码生成
2026-03-13 17:54:27 +08:00

90 lines
1.8 KiB
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 { LngLngApproPageModel, LngLngApproPageParams, LngLngApproPageResult } from './model/LngApproModel';
import { defHttp } from '/@/utils/http/axios';
import { ErrorMessageMode } from '/#/axios';
enum Api {
Page = '/dayPlan/lngAppro/page',
List = '/dayPlan/lngAppro/list',
Info = '/dayPlan/lngAppro/info',
LngLngAppro = '/dayPlan/lngAppro',
DataLog = '/dayPlan/lngAppro/datalog',
}
/**
* @description: 查询LngLngAppro分页列表
*/
export async function getLngLngApproPage(params: LngLngApproPageParams, mode: ErrorMessageMode = 'modal') {
return defHttp.get<LngLngApproPageResult>(
{
url: Api.Page,
params,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 获取LngLngAppro信息
*/
export async function getLngLngAppro(id: String, mode: ErrorMessageMode = 'modal') {
return defHttp.get<LngLngApproPageModel>(
{
url: Api.Info,
params: { id },
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 新增LngLngAppro
*/
export async function addLngLngAppro(lngLngAppro: Recordable, mode: ErrorMessageMode = 'modal') {
return defHttp.post<boolean>(
{
url: Api.LngLngAppro,
params: lngLngAppro,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 更新LngLngAppro
*/
export async function updateLngLngAppro(lngLngAppro: Recordable, mode: ErrorMessageMode = 'modal') {
return defHttp.put<boolean>(
{
url: Api.LngLngAppro,
params: lngLngAppro,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 删除LngLngAppro批量删除
*/
export async function deleteLngLngAppro(ids: string[], mode: ErrorMessageMode = 'modal') {
return defHttp.delete<boolean>(
{
url: Api.LngLngAppro,
data: ids,
},
{
errorMessageMode: mode,
},
);
}