Merge branch 'master' of http://47.109.37.87:3000/by2025/admin-vben5
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6m0s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 6m0s
# Conflicts: # apps/web-antd/vite.config.mts
This commit is contained in:
61
apps/web-antd/src/api/property/rentalPlan/index.ts
Normal file
61
apps/web-antd/src/api/property/rentalPlan/index.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import type { RentalPlanVO, RentalPlanForm, RentalPlanQuery } 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}`);
|
||||
}
|
114
apps/web-antd/src/api/property/rentalPlan/model.d.ts
vendored
Normal file
114
apps/web-antd/src/api/property/rentalPlan/model.d.ts
vendored
Normal file
@@ -0,0 +1,114 @@
|
||||
import type { PageQuery, BaseEntity } from '#/api/common';
|
||||
|
||||
export interface RentalPlanVO {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 方案名称
|
||||
*/
|
||||
planName: string;
|
||||
|
||||
/**
|
||||
* 租赁周期
|
||||
*/
|
||||
rentalPeriod: number;
|
||||
|
||||
/**
|
||||
* 适用场景
|
||||
*/
|
||||
scene: string;
|
||||
|
||||
/**
|
||||
* 价格
|
||||
*/
|
||||
price: number;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remarks: string;
|
||||
|
||||
}
|
||||
|
||||
export interface RentalPlanForm extends BaseEntity {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 方案名称
|
||||
*/
|
||||
planName?: string;
|
||||
|
||||
/**
|
||||
* 租赁周期
|
||||
*/
|
||||
rentalPeriod?: number;
|
||||
|
||||
/**
|
||||
* 适用场景
|
||||
*/
|
||||
scene?: string;
|
||||
|
||||
/**
|
||||
* 价格
|
||||
*/
|
||||
price?: number;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remarks?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface RentalPlanQuery extends PageQuery {
|
||||
/**
|
||||
* 方案名称
|
||||
*/
|
||||
planName?: string;
|
||||
|
||||
/**
|
||||
* 租赁周期
|
||||
*/
|
||||
rentalPeriod?: number;
|
||||
|
||||
/**
|
||||
* 适用场景
|
||||
*/
|
||||
scene?: string;
|
||||
|
||||
/**
|
||||
* 价格
|
||||
*/
|
||||
price?: number;
|
||||
|
||||
/**
|
||||
* 状态
|
||||
*/
|
||||
state?: number;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
remarks?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
Reference in New Issue
Block a user