保洁+入驻
This commit is contained in:
61
apps/web-antd/src/api/property/clean_order/index.ts
Normal file
61
apps/web-antd/src/api/property/clean_order/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { Clean_orderVO, Clean_orderForm, Clean_orderQuery } 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 clean_orderList(params?: Clean_orderQuery) {
|
||||
return requestClient.get<PageResult<Clean_orderVO>>('/property/clean_order/list', { params });
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出保洁订单列表
|
||||
* @param params
|
||||
* @returns 保洁订单列表
|
||||
*/
|
||||
export function clean_orderExport(params?: Clean_orderQuery) {
|
||||
return commonExport('/property/clean_order/export', params ?? {});
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询保洁订单详情
|
||||
* @param id id
|
||||
* @returns 保洁订单详情
|
||||
*/
|
||||
export function clean_orderInfo(id: ID) {
|
||||
return requestClient.get<Clean_orderVO>(`/property/clean_order/${id}`);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增保洁订单
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function clean_orderAdd(data: Clean_orderForm) {
|
||||
return requestClient.postWithMsg<void>('/property/clean_order', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新保洁订单
|
||||
* @param data
|
||||
* @returns void
|
||||
*/
|
||||
export function clean_orderUpdate(data: Clean_orderForm) {
|
||||
return requestClient.putWithMsg<void>('/property/clean_order', data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除保洁订单
|
||||
* @param id id
|
||||
* @returns void
|
||||
*/
|
||||
export function clean_orderRemove(id: ID | IDS) {
|
||||
return requestClient.deleteWithMsg<void>(`/property/clean_order/${id}`);
|
||||
}
|
Reference in New Issue
Block a user