declare namespace API { type APIResponse = { code: number; success: boolean; message: string; data: T; } export type PolicyRequest = { /** * 内容 */ content: string; /** * 内容_英文版 */ contentEn: string; /** * 是否置顶(0.否、1.是) */ isTop: string; /** * 是否设置英文内容(0.否、1.是) */ settingEn: number; /** * 标题 */ title: string; /** * 标题英文 */ titleEn: string; [property: string]: any; } export type RegisterRequest = { coscoSupplierBank: CoscoSupplierBank[]; coscoSupplierBase: CoscoSupplierBase; coscoSupplierInvoice: CoscoSupplierInvoice; coscoSupplierQualifications: CoscoSupplierQualification[]; coscoSupplierSurvey: CoscoSupplierSurvey; coscoSupplierSurveyAttachments: CoscoSupplierSurveyAttachment[]; coscoSupplierSurveyQuestionReply: CoscoSupplierSurveyQuestionReply[]; [property: string]: any; } export type CoscoSupplierBank = { account?: string; accountName?: string; bank?: string; city?: string; currency?: string; interbankNumber?: string; nation?: string; province?: string; [property: string]: any; } export type CoscoSupplierBase = { capital: number; contactsEmail: string; contactsName: string; contactsPhone: string; contactsType: string; enterpriseType: string; idCard: string; legalPerson: string; licenceAccessory: string; licenceDate: string; name: string; nameEn: string; parentCompanyInvestor: string; range: string; regAddress: string; socialCreditCode: string; supplierType: string; telephone: string; workAddress: string; [property: string]: any; } export type CoscoSupplierInvoice = { account: string; address: string; bank: string; head: string; phone: string; qualificationCertificate: string; taxpayerCode: string; taxpayerType: string; [property: string]: any; } export type CoscoSupplierQualification = { accessory?: string; authority?: string; certificateType?: string; code?: string; dateTime?: string; name?: string; termOfValidity?: string; typeLevel?: string; [property: string]: any; } export type CoscoSupplierSurvey = { dateTime: string; email: string; name: string; phone: string; position: string; supplierName: string; [property: string]: any; } export type CoscoSupplierSurveyAttachment = { attachmentsType: string; fileName: string; filePath: string; fileSize: string; fileType: string; fileUrl: string; [property: string]: any; } export type CoscoSupplierSurveyQuestionReply = { replyValue?: string; surveyQuestionId?: string; [property: string]: any; } // 调查问卷返回类型 type SurveyQuestionResponse = { id: string; question: string; orderBy: string; coscoSurveyQuestionOptionList: { id: string; opentionValue: string; optionName: string; }[]; }[] // 基础分页请求参数 export interface BasePageRequest { pageNo: number; pageSize: number; [property: string]: unknown; } // 分页请求参数 export interface PageRequest { basePageRequest: BasePageRequest; title?: string; status?: string; [property: string]: unknown; } // 基础响应格式 export interface Response { code: number; data: T; message: string; success: boolean; [property: string]: unknown; } // 分页数据响应 export interface PageResponse { countId: null; current: number; hitCount: boolean; maxLimit: null; optimizeCountSql: boolean; orders: string[]; pages: number; records: T[]; searchCount: boolean; size: number; total: number; [property: string]: unknown; } // 政策法规数据项 export interface PolicyRecord { basePageRequest: null; content: string; contentEn: string; createBy: string; createDate: null; createTime: string; deleteFlag: null; delFlag: string; id: string; isTop: string; lastUpdateTime: null; publishBy: string | null; publishTime: string | null; settingEn: string; status: string; tenantId: string | null; tenantName: string | null; title: string; titleEn: string | null; updateBy: string | null; updateDate: string | null; updateTime: string; } // 政策法规请求参数 export interface PolicyRequest { id?: string; title: string; titleEn: string; content: string; contentEn: string; isTop: string; settingEn: number; } // 下载中心数据项 export interface DownloadRecord { id: string; name: string; category: string; keyword: string; createTime: string; createBy: string; status: string; // 状态:0-草稿,1-已发布 thumbnail?: string; // 缩略图URL fileUrl?: string; // 文件URL } // 下载中心请求参数 export interface DownloadRequest { id?: string; name: string; category: string; keyword: string; fileId?: string; thumbnailId?: string; } // 下载中心查询参数 export interface DownloadSearchParams { name?: string; category?: string; status?: string; } // 文件上传响应 export interface UploadResponse { id: string; fileName: string; fileSize: number; fileType: string; fileUrl: string; } }