访客模块待完成
This commit is contained in:
76
src/api/system/RepairProject/index.ts
Normal file
76
src/api/system/RepairProject/index.ts
Normal file
@@ -0,0 +1,76 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { RepairProjectVO, RepairProjectForm, RepairProjectQuery } from '@/api/repairProject/types';
|
||||
|
||||
/**
|
||||
* 查询报修维修项目管理列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listRepairProject = (query?: RepairProjectQuery): AxiosPromise<RepairProjectVO[]> => {
|
||||
return request({
|
||||
url: '/repairProject/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询报修维修项目管理详细
|
||||
* @param id
|
||||
*/
|
||||
export const getRepairProject = (id: string | number): AxiosPromise<RepairProjectVO> => {
|
||||
return request({
|
||||
url: '/repairProject/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增报修维修项目管理
|
||||
* @param data
|
||||
*/
|
||||
export const addRepairProject = (data: RepairProjectForm) => {
|
||||
return request({
|
||||
url: '/repairProject',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改报修维修项目管理
|
||||
* @param data
|
||||
*/
|
||||
export const updateRepairProject = (data: RepairProjectForm) => {
|
||||
return request({
|
||||
url: '/repairProject',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除报修维修项目管理
|
||||
* @param id
|
||||
*/
|
||||
export const delRepairProject = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/repairProject/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
/**
|
||||
* 查询报修维修项目tree管理列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const gettreelistRepairProject = (query?: RepairProjectQuery): AxiosPromise<RepairProjectVO[]> => {
|
||||
return request({
|
||||
url: '/repairProject/treeList',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
130
src/api/system/RepairProject/type.ts
Normal file
130
src/api/system/RepairProject/type.ts
Normal file
@@ -0,0 +1,130 @@
|
||||
export interface RepairProjectVO {
|
||||
/**
|
||||
* 维修项目表id
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 维修项目名
|
||||
*/
|
||||
projectName: string;
|
||||
|
||||
/**
|
||||
* 父级项目id
|
||||
*/
|
||||
parentId: string | number;
|
||||
|
||||
/**
|
||||
* 项目类型 0公共报修 1个人报修
|
||||
*/
|
||||
projectType: string;
|
||||
|
||||
/**
|
||||
* 项目层级 0,1
|
||||
*/
|
||||
projectLevel: number;
|
||||
|
||||
/**
|
||||
* 排序 (数越小越靠前)
|
||||
*/
|
||||
sortOrder: number;
|
||||
|
||||
/**
|
||||
* 状态 0启用 1停用
|
||||
*/
|
||||
status: string;
|
||||
}
|
||||
|
||||
export interface RepairProjectForm extends BaseEntity {
|
||||
/**
|
||||
* 维修项目表id
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 维修项目名
|
||||
*/
|
||||
projectName?: string;
|
||||
|
||||
/**
|
||||
* 父级项目id
|
||||
*/
|
||||
parentId?: string | number;
|
||||
|
||||
/**
|
||||
* 项目类型 0公共报修 1个人报修
|
||||
*/
|
||||
projectType?: string;
|
||||
|
||||
/**
|
||||
* 项目层级 0,1
|
||||
*/
|
||||
projectLevel?: number;
|
||||
|
||||
/**
|
||||
* 排序 (数越小越靠前)
|
||||
*/
|
||||
sortOrder?: number;
|
||||
|
||||
/**
|
||||
* 状态 0启用 1停用
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
cretaeTime?: string;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
createBy?: number;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
updateTime?: string;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
updateBy?: number;
|
||||
}
|
||||
|
||||
export interface RepairProjectQuery extends PageQuery {
|
||||
/**
|
||||
* 维修项目名
|
||||
*/
|
||||
projectName?: string;
|
||||
|
||||
/**
|
||||
* 父级项目id
|
||||
*/
|
||||
parentId?: string | number;
|
||||
|
||||
/**
|
||||
* 项目类型 0公共报修 1个人报修
|
||||
*/
|
||||
projectType?: string;
|
||||
|
||||
/**
|
||||
* 项目层级 0,1
|
||||
*/
|
||||
projectLevel?: number;
|
||||
|
||||
/**
|
||||
* 排序 (数越小越靠前)
|
||||
*/
|
||||
sortOrder?: number;
|
||||
|
||||
/**
|
||||
* 状态 0启用 1停用
|
||||
*/
|
||||
status?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
Reference in New Issue
Block a user