4 changed files with 168 additions and 18 deletions
@ -0,0 +1,25 @@
@@ -0,0 +1,25 @@
|
||||
/** |
||||
* 提供api模板规范代码参考,请尽量保证编写代码风格跟模板规范代码一致 |
||||
* Copyright © 2020-2022 <a href="http://www.entfrm.com/">entfrm</a> All rights reserved. |
||||
* author entfrm开发团队-王翔 |
||||
*/ |
||||
import type { MapTaskPresetParams, MapTaskPreset, MapTaskPresetResult } from '../entity/mapTaskPreset'; |
||||
import { defHttp } from '/@/utils/http/axios'; |
||||
|
||||
enum Api { |
||||
list = '/common_proxy/common/mapTaskPreset/list', |
||||
get = '/common_proxy/common/mapTaskPreset', |
||||
add = '/common_proxy/common/mapTaskPreset/save', |
||||
edit = '/common_proxy/common/mapTaskPreset/update', |
||||
del = '/common_proxy/common/mapTaskPreset/remove' |
||||
} |
||||
|
||||
export const listMapTaskPreset = (params?: Partial<MapTaskPresetParams>) => defHttp.get({ url: Api.list, params }); |
||||
|
||||
export const addMapTaskPreset = (params: Partial<MapTaskPreset>) => defHttp.post({ url: Api.add, data: params }); |
||||
|
||||
export const editMapTaskPreset = (params: Partial<MapTaskPreset>) => defHttp.put({ url: Api.edit, data: params }); |
||||
|
||||
export const getMapTaskPreset = (id: string) => defHttp.get<MapTaskPreset>({ url: `${Api.get}/${id}` }); |
||||
|
||||
export const delMapTaskPreset = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); |
@ -0,0 +1,35 @@
@@ -0,0 +1,35 @@
|
||||
|
||||
/** |
||||
* @program: kicc-ui |
||||
* @description: 地图任务交接预设表实体类 |
||||
* @author: entfrm开发团队-王翔 |
||||
* @since: 2022/8/24 |
||||
*/ |
||||
|
||||
import type { R } from '/#/axios'; |
||||
import type { CommonEntity, Page } from '/@/api/common/data/entity'; |
||||
|
||||
export type MapTaskPresetParams = Page & MapTaskPreset; |
||||
|
||||
export interface MapTaskPreset extends CommonEntity { |
||||
id: string; |
||||
name: string; |
||||
orginPresetId: string; |
||||
orginPresetName: string; |
||||
orginPresetLng: number; |
||||
orginPresetLat: number; |
||||
destinationPresetId: string; |
||||
destinationPresetName: string; |
||||
destinationPresetLng: number; |
||||
destinationPresetLat: number; |
||||
courierUserId: string; |
||||
fileId: string; |
||||
estimateTime: string; |
||||
requireTime: string; |
||||
batchCode: string; |
||||
mapLogisticId: string; |
||||
taskId: string; |
||||
version: string; |
||||
} |
||||
|
||||
export type MapTaskPresetResult = R<MapTaskPreset[]>; |
Loading…
Reference in new issue