Files
geg-gas-web/src/api/price/PriceSalesPngApp/index.ts
‘huanghaiixia’ 1b24d0284e 价格申请列表
2026-03-05 17:46:46 +08:00

91 lines
2.1 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 { LngPriceSalesPngAppPageModel, LngPriceSalesPngAppPageParams, LngPriceSalesPngAppPageResult } from './model/PriceSalesPngAppModel';
import { defHttp } from '/@/utils/http/axios';
import { ErrorMessageMode } from '/#/axios';
enum Api {
// Page = '/price/priceSalesPngApp/page',
Page = '/magic-api/price/priceSalesPngApp/page',
List = '/price/priceSalesPngApp/list',
Info = '/price/priceSalesPngApp/info',
LngPriceSalesPngApp = '/price/priceSalesPngApp',
DataLog = '/price/priceSalesPngApp/datalog',
}
/**
* @description: 查询LngPriceSalesPngApp分页列表
*/
export async function getLngPriceSalesPngAppPage(params: LngPriceSalesPngAppPageParams, mode: ErrorMessageMode = 'modal') {
return defHttp.get<LngPriceSalesPngAppPageResult>(
{
url: Api.Page,
params,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 获取LngPriceSalesPngApp信息
*/
export async function getLngPriceSalesPngApp(id: String, mode: ErrorMessageMode = 'modal') {
return defHttp.get<LngPriceSalesPngAppPageModel>(
{
url: Api.Info,
params: { id },
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 新增LngPriceSalesPngApp
*/
export async function addLngPriceSalesPngApp(lngPriceSalesPngApp: Recordable, mode: ErrorMessageMode = 'modal') {
return defHttp.post<boolean>(
{
url: Api.LngPriceSalesPngApp,
params: lngPriceSalesPngApp,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 更新LngPriceSalesPngApp
*/
export async function updateLngPriceSalesPngApp(lngPriceSalesPngApp: Recordable, mode: ErrorMessageMode = 'modal') {
return defHttp.put<boolean>(
{
url: Api.LngPriceSalesPngApp,
params: lngPriceSalesPngApp,
},
{
errorMessageMode: mode,
},
);
}
/**
* @description: 删除LngPriceSalesPngApp批量删除
*/
export async function deleteLngPriceSalesPngApp(ids: string[], mode: ErrorMessageMode = 'modal') {
return defHttp.delete<boolean>(
{
url: Api.LngPriceSalesPngApp,
data: ids,
},
{
errorMessageMode: mode,
},
);
}