143 lines
2.5 KiB
TypeScript
143 lines
2.5 KiB
TypeScript
// 供应商评价模板管理模块 dao 接口
|
|
|
|
declare namespace SupplierTemplateManage {
|
|
/**
|
|
* 模板查询请求参数
|
|
*/
|
|
interface TemplateRequest {
|
|
basePageRequest: {
|
|
pageNo: number;
|
|
pageSize: number;
|
|
}
|
|
templateName?: string;
|
|
status?: string;
|
|
}
|
|
|
|
/**
|
|
* 模板查询响应
|
|
*/
|
|
interface TemplateResponse {
|
|
code: number;
|
|
success: boolean;
|
|
data: {
|
|
records: TemplateItem[];
|
|
total: number;
|
|
size: number;
|
|
current: number;
|
|
pages: number;
|
|
};
|
|
message: string;
|
|
}
|
|
|
|
/**
|
|
* 模板项
|
|
*/
|
|
interface TemplateItem {
|
|
id: string;
|
|
templateName: string;
|
|
status: string;
|
|
createTime: string;
|
|
updateTime: string;
|
|
createBy: string;
|
|
updateBy: string;
|
|
[key: string]: any;
|
|
}
|
|
|
|
/**
|
|
* 模板详情响应
|
|
*/
|
|
interface TemplateDetailResponse {
|
|
code: number;
|
|
success: boolean;
|
|
data: {
|
|
id: string;
|
|
templateName: string;
|
|
status: string;
|
|
dimensions: TemplateDimension[];
|
|
indicatorStMore: string;
|
|
indicatorNdMore: string;
|
|
[key: string]: any;
|
|
};
|
|
message: string;
|
|
}
|
|
|
|
/**
|
|
* 模板维度
|
|
*/
|
|
interface TemplateDimension {
|
|
id: string;
|
|
dimensionName: string;
|
|
dimensionWeight: number;
|
|
indicators: TemplateIndicator[];
|
|
[key: string]: any;
|
|
}
|
|
|
|
/**
|
|
* 模板指标
|
|
*/
|
|
interface TemplateIndicator {
|
|
id: string;
|
|
indicatorName: string;
|
|
indicatorWeight: number;
|
|
[key: string]: any;
|
|
}
|
|
|
|
/**
|
|
* 二级指标
|
|
*/
|
|
interface IndicatorNd {
|
|
id?: string;
|
|
indicatorName: string;
|
|
indicatorWeight: number;
|
|
starLevel?: number;
|
|
[key: string]: any;
|
|
}
|
|
|
|
/**
|
|
* 一级指标
|
|
*/
|
|
interface IndicatorSt {
|
|
id?: string;
|
|
indicatorName: string;
|
|
indicatorWeight: number;
|
|
indicatorNdList: IndicatorNd[];
|
|
[key: string]: any;
|
|
}
|
|
|
|
/**
|
|
* 新增模板请求
|
|
*/
|
|
interface TemplateAddRequest {
|
|
templateName: string;
|
|
dimensions: {
|
|
dimensionName: string;
|
|
dimensionWeight: number;
|
|
indicators: {
|
|
indicatorName: string;
|
|
indicatorWeight: number;
|
|
}[];
|
|
}[];
|
|
}
|
|
|
|
/**
|
|
* 更新模板请求
|
|
*/
|
|
interface TemplateUpdateRequest {
|
|
id: string;
|
|
templateName: string;
|
|
dimensions: {
|
|
id?: string;
|
|
dimensionName: string;
|
|
dimensionWeight: number;
|
|
indicators: {
|
|
id?: string;
|
|
indicatorName: string;
|
|
indicatorWeight: number;
|
|
}[];
|
|
}[];
|
|
}
|
|
}
|
|
|
|
export = SupplierTemplateManage;
|
|
export as namespace SupplierTemplateManage;
|