This commit is contained in:
linxd
2025-06-27 17:15:45 +08:00
parent ad241f7adb
commit 5c54182ca1
33 changed files with 2648 additions and 315 deletions

View File

@ -0,0 +1,92 @@
// 供应商年度审查模块 dao 接口
declare namespace supplierAnnualReview {
// 基础分页请求参数
interface BasePageRequest {
pageNo: number;
pageSize: number;
[property: string]: any;
}
// 年度审查列表请求参数
interface ReviewListRequest {
basePageRequest: BasePageRequest;
[property: string]: any;
}
// 年度审查列表响应
interface ReviewListResponse {
code: number;
data: ReviewListResponseData;
message: string;
success: boolean;
[property: string]: any;
}
// 年度审查列表响应数据
interface ReviewListResponseData {
countId: null;
current: number;
hitCount: boolean;
maxLimit: null;
optimizeCountSql: boolean;
orders: any[];
pages: number;
records: ReviewRecord[];
searchCount: boolean;
size: number;
total: number;
[property: string]: any;
}
// 年度审查记录
interface ReviewRecord {
annualreviewTheme: string;
basePageRequest: null;
deptName: string;
endTime: string;
id: string;
name: string;
reviewStatus: string;
reviewStatusName: string;
startTime: string;
status: string;
statusName: string;
userId: null;
userName: string;
[property: string]: any;
}
// 年度审查详情响应
interface ReviewDetailResponse {
code: number;
data: ReviewRecord;
message: string;
success: boolean;
[property: string]: any;
}
// 打分项
interface ScoreItem {
examineResult: string;
id: string;
remark: string;
[property: string]: any;
}
// 打分请求
interface ScoreRequest {
id: string;
scoreVoList: ScoreItem[];
[property: string]: any;
}
// 通用API响应
interface ApiResponse<T = any> {
code: number;
data: T;
message: string;
success: boolean;
[property: string]: any;
}
}

View File

@ -0,0 +1,142 @@
// 供应商年度模板管理模块 dao 接口
declare namespace supplierAnnualTemplateManage {
// 基础分页请求参数
interface BasePageRequest {
pageNo: number;
pageSize: number;
[property: string]: any;
}
// 模板列表请求参数
interface TemplateRequest {
basePageRequest: BasePageRequest;
templateName?: string;
categoryId?: string;
tenantName?: string;
[property: string]: any;
}
// 模板列表响应
interface TemplateResponse {
code: number;
data: TemplateResponseData;
message: string;
success: boolean;
[property: string]: any;
}
// 模板列表响应数据
interface TemplateResponseData {
countId: null;
current: number;
hitCount: boolean;
maxLimit: null;
optimizeCountSql: boolean;
orders: any[];
pages: number;
records: TemplateRecord[];
searchCount: boolean;
size: number;
total: number;
[property: string]: any;
}
// 模板记录
interface TemplateRecord {
basePageRequest: null;
categoryId: string;
categoryLimitation: string;
categoryName: null;
copyTemplateId: string;
createBy: string;
createDate: null;
createTime: string;
deleteFlag: null;
delFlag: string;
id: string;
lastUpdateTime: null;
remark: null;
status: string;
templateName: string;
templateType: string;
tenantId: null;
tenantName: null;
updateBy: string;
updateDate: null;
updateTime: string;
[property: string]: any;
}
// 指标记录
interface IndicatorItem {
isStar: string;
itemName: string;
orderBy: string;
id?: string;
createBy?: string;
createTime?: string;
deleteFlag?: null;
delFlag?: string;
lastUpdateTime?: null;
remark?: null;
templateId?: string;
tenantId?: null;
tenantName?: null;
updateBy?: string;
updateDate?: null;
updateTime?: string;
[property: string]: any;
}
// 新增模板请求参数
interface AddTemplateRequest {
categoryId?: string;
categoryLimitation: string;
copyTemplateId?: string;
id?: string;
indicatorList: IndicatorItem[];
status: string;
templateName: string;
templateType?: string;
[property: string]: any;
}
// API通用响应
interface ApiResponse<T = any> {
code: number;
data: T;
message: string;
success: boolean;
[property: string]: any;
}
// 获取全部模板列表响应
interface AllTemplatesResponse {
code: number;
data: TemplateRecord[];
message: string;
success: boolean;
[property: string]: any;
}
// 模板详情数据
interface TemplateDetailData extends TemplateRecord {
indicatorList: IndicatorItem[];
}
// 模板详情响应
interface TemplateDetailResponse {
code: number;
data: TemplateDetailData;
message: string;
success: boolean;
[property: string]: any;
}
// 启用禁用模板请求
interface TemplateStatusRequest {
id: string;
[property: string]: any;
}
}