卸货区域前端代码生成
This commit is contained in:
122
src/api/mdm/PlaceLngUnload/index.ts
Normal file
122
src/api/mdm/PlaceLngUnload/index.ts
Normal file
@ -0,0 +1,122 @@
|
||||
import { LngBPlaceLngUnloadPageModel, LngBPlaceLngUnloadPageParams, LngBPlaceLngUnloadPageResult } from './model/PlaceLngUnloadModel';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { ErrorMessageMode } from '/#/axios';
|
||||
|
||||
enum Api {
|
||||
Page = '/mdm/placeLngUnload/page',
|
||||
List = '/mdm/placeLngUnload/list',
|
||||
Info = '/mdm/placeLngUnload/info',
|
||||
LngBPlaceLngUnload = '/mdm/placeLngUnload',
|
||||
|
||||
|
||||
|
||||
Enable = '/mdm/placeLngUnload/enable',
|
||||
Disable= '/mdm/placeLngUnload/disable',
|
||||
|
||||
DataLog = '/mdm/placeLngUnload/datalog',
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 查询LngBPlaceLngUnload分页列表
|
||||
*/
|
||||
export async function getLngBPlaceLngUnloadPage(params: LngBPlaceLngUnloadPageParams, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngBPlaceLngUnloadPageResult>(
|
||||
{
|
||||
url: Api.Page,
|
||||
params,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 获取LngBPlaceLngUnload信息
|
||||
*/
|
||||
export async function getLngBPlaceLngUnload(id: String, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.get<LngBPlaceLngUnloadPageModel>(
|
||||
{
|
||||
url: Api.Info,
|
||||
params: { id },
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 新增LngBPlaceLngUnload
|
||||
*/
|
||||
export async function addLngBPlaceLngUnload(lngBPlaceLngUnload: Recordable, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.post<boolean>(
|
||||
{
|
||||
url: Api.LngBPlaceLngUnload,
|
||||
params: lngBPlaceLngUnload,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 更新LngBPlaceLngUnload
|
||||
*/
|
||||
export async function updateLngBPlaceLngUnload(lngBPlaceLngUnload: Recordable, mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.put<boolean>(
|
||||
{
|
||||
url: Api.LngBPlaceLngUnload,
|
||||
params: lngBPlaceLngUnload,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 删除LngBPlaceLngUnload(批量删除)
|
||||
*/
|
||||
export async function deleteLngBPlaceLngUnload(ids: string[], mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.delete<boolean>(
|
||||
{
|
||||
url: Api.LngBPlaceLngUnload,
|
||||
data: ids,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @description: 启用数据LngBPlaceLngUnload
|
||||
*/
|
||||
export async function enableLngBPlaceLngUnload(ids: string[], mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.post<boolean>(
|
||||
{
|
||||
url: Api.Enable,
|
||||
data: ids,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
/**
|
||||
* @description: 作废数据LngBPlaceLngUnload
|
||||
*/
|
||||
export async function disableLngBPlaceLngUnload(ids: string[], mode: ErrorMessageMode = 'modal') {
|
||||
return defHttp.post<boolean>(
|
||||
{
|
||||
url: Api.Disable,
|
||||
data: ids,
|
||||
},
|
||||
{
|
||||
errorMessageMode: mode,
|
||||
},
|
||||
);
|
||||
}
|
||||
56
src/api/mdm/PlaceLngUnload/model/PlaceLngUnloadModel.ts
Normal file
56
src/api/mdm/PlaceLngUnload/model/PlaceLngUnloadModel.ts
Normal file
@ -0,0 +1,56 @@
|
||||
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
|
||||
|
||||
/**
|
||||
* @description: LngBPlaceLngUnload分页参数 模型
|
||||
*/
|
||||
export interface LngBPlaceLngUnloadPageParams extends BasicPageParams {
|
||||
fullName: string;
|
||||
|
||||
valid: string;
|
||||
|
||||
code: string;
|
||||
|
||||
regionCode: string;
|
||||
|
||||
addr: string;
|
||||
|
||||
longitude: string;
|
||||
|
||||
latitude: string;
|
||||
|
||||
sort: string;
|
||||
|
||||
note: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: LngBPlaceLngUnload分页返回值模型
|
||||
*/
|
||||
export interface LngBPlaceLngUnloadPageModel {
|
||||
id: string;
|
||||
|
||||
code: string;
|
||||
|
||||
fullName: string;
|
||||
|
||||
regionCode: string;
|
||||
|
||||
addr: string;
|
||||
|
||||
valid: string;
|
||||
|
||||
longitude: string;
|
||||
|
||||
latitude: string;
|
||||
|
||||
sort: string;
|
||||
|
||||
note: string;
|
||||
}
|
||||
|
||||
0;
|
||||
|
||||
/**
|
||||
* @description: LngBPlaceLngUnload分页返回值结构
|
||||
*/
|
||||
export type LngBPlaceLngUnloadPageResult = BasicFetchResult<LngBPlaceLngUnloadPageModel>;
|
||||
Reference in New Issue
Block a user