90 lines
2.1 KiB
TypeScript
90 lines
2.1 KiB
TypeScript
|
|
import { LngPriceSalesPngAppPageModel, LngPriceSalesPngAppPageParams, LngPriceSalesPngAppPageResult } from './model/PriceSalesPngAppModel';
|
|||
|
|
import { defHttp } from '/@/utils/http/axios';
|
|||
|
|
import { ErrorMessageMode } from '/#/axios';
|
|||
|
|
|
|||
|
|
enum Api {
|
|||
|
|
Page = '/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,
|
|||
|
|
},
|
|||
|
|
);
|
|||
|
|
}
|