feat: 合并代码
This commit is contained in:
70
apps/web-antd/src/api/property/reportStatistics/index.ts
Normal file
70
apps/web-antd/src/api/property/reportStatistics/index.ts
Normal file
@@ -0,0 +1,70 @@
|
||||
import type { statisticsByTimeQuery } 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 rentalPlanList(params?: RentalPlanQuery) {
|
||||
// return requestClient.get<PageResult<RentalPlanVO>>('/property/rentalPlan/list', { params });
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 导出绿植租赁-租赁方案列表
|
||||
// * @param params
|
||||
// * @returns 绿植租赁-租赁方案列表
|
||||
// */
|
||||
// export function rentalPlanExport(params?: RentalPlanQuery) {
|
||||
// return commonExport('/property/rentalPlan/export', params ?? {});
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 查询绿植租赁-租赁方案详情
|
||||
// * @param id id
|
||||
// * @returns 绿植租赁-租赁方案详情
|
||||
// */
|
||||
// export function rentalPlanInfo(id: ID) {
|
||||
// return requestClient.get<RentalPlanVO>(`/property/rentalPlan/${id}`);
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 新增绿植租赁-租赁方案
|
||||
// * @param data
|
||||
// * @returns void
|
||||
// */
|
||||
// export function rentalPlanAdd(data: RentalPlanForm) {
|
||||
// return requestClient.postWithMsg<void>('/property/rentalPlan', data);
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 更新绿植租赁-租赁方案
|
||||
// * @param data
|
||||
// * @returns void
|
||||
// */
|
||||
// export function rentalPlanUpdate(data: RentalPlanForm) {
|
||||
// return requestClient.putWithMsg<void>('/property/rentalPlan', data);
|
||||
// }
|
||||
|
||||
// /**
|
||||
// * 删除绿植租赁-租赁方案
|
||||
// * @param id id
|
||||
// * @returns void
|
||||
// */
|
||||
// export function rentalPlanRemove(id: ID | IDS) {
|
||||
// return requestClient.deleteWithMsg<void>(`/property/rentalPlan/${id}`);
|
||||
// }
|
||||
|
||||
/**
|
||||
* 查询订单数量趋势
|
||||
* @param timeUnit
|
||||
* @returns void
|
||||
*/
|
||||
export function statisticsByTime(params:statisticsByTimeQuery) {
|
||||
return requestClient.get<any>('/property/rentalOrder/statisticsByTime', { params });
|
||||
}
|
7
apps/web-antd/src/api/property/reportStatistics/model.d.ts
vendored
Normal file
7
apps/web-antd/src/api/property/reportStatistics/model.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
export interface statisticsByTimeQuery {
|
||||
/**
|
||||
* 日期范围参数(1日 2周 3月)
|
||||
*
|
||||
*/
|
||||
timeUnit?: number;
|
||||
}
|
Reference in New Issue
Block a user