This commit is contained in:
61
apps/web-antd/src/api/property/assetManage/depot/index.ts
Normal file
61
apps/web-antd/src/api/property/assetManage/depot/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { DepotVO, DepotForm, DepotQuery } from './model';
|
||||
|
||||
import type { ID, IDS } from '#/api/common';
|
||||
import type { PageResult } from '#/api/common';
|
||||
|
||||
import { commonExport } from '#/api/helper';
|
||||
import { requestClient } from '#/api/request';
|
||||
|
||||
/**
|
||||
* 查询仓库管理列表
|
||||
* @param params
|
||||
* @returns 仓库管理列表
|
||||
*/
|
||||
export function depotList(params?: DepotQuery) {
|
||||
return requestClient.get<PageResult<DepotVO>>('/property/depot/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出仓库管理列表
|
||||
* @param params
|
||||
* @returns 仓库管理列表
|
||||
*/
|
||||
export function depotExport(params?: DepotQuery) {
|
||||
return commonExport('/property/depot/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询仓库管理详情
|
||||
* @param id id
|
||||
* @returns 仓库管理详情
|
||||
*/
|
||||
export function depotInfo(id: ID) {
|
||||
return requestClient.get<DepotVO>(`/property/depot/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增仓库管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function depotAdd(data: DepotForm) {
|
||||
return requestClient.postWithMsg<void>('/property/depot', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新仓库管理
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function depotUpdate(data: DepotForm) {
|
||||
return requestClient.putWithMsg<void>('/property/depot', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除仓库管理
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function depotRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/depot/${id}`);
|
||||
}
|
89
apps/web-antd/src/api/property/assetManage/depot/model.d.ts
vendored
Normal file
89
apps/web-antd/src/api/property/assetManage/depot/model.d.ts
vendored
Normal file
@@ -0,0 +1,89 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface DepotVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 类型名称
|
||||
*/
|
||||
depotName: string;
|
||||
|
||||
/**
|
||||
* 描述信息
|
||||
*/
|
||||
msg: string;
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
modelType: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state: number;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
createTime: string;
|
||||
|
||||
}
|
||||
|
||||
export interface DepotForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 类型名称
|
||||
*/
|
||||
depotName?: string;
|
||||
|
||||
/**
|
||||
* 描述信息
|
||||
*/
|
||||
msg?: string;
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
modelType?: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: number;
|
||||
|
||||
}
|
||||
|
||||
export interface DepotQuery extends PageQuery {
|
||||
/**
|
||||
* 类型名称
|
||||
*/
|
||||
depotName?: string;
|
||||
|
||||
/**
|
||||
* 描述信息
|
||||
*/
|
||||
msg?: string;
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
modelType?: string;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user