Files
fe_portal_frontend/src/servers/api/typings.d.ts

372 lines
8.1 KiB
TypeScript
Raw Normal View History

declare namespace API {
type APIResponse<T> = {
code: number;
success: boolean;
message: string;
data: T;
}
// 下载中心相关类型
export type DownloadListParams = {
pageNo: string;
pageSize: string;
}
export type DownloadRecord = {
pageNo: null;
pageSize: null;
createBy: string;
createTime: string;
updateBy: string;
updateTime: string;
remark: null;
lastUpdateTime: string;
id: string;
columnType: string;
name: string;
isBold: string;
keywords: string;
thumbnail: string;
fileName: string;
fileType: string;
fileSize: string;
filePath: string;
fileUrl: string;
isTop: string;
status: string;
publishBy: string;
publishTime: string;
delFlag: string;
statusText: string;
}
export type DownloadListResponse = {
records: DownloadRecord[];
total: number;
size: number;
current: number;
orders: string[];
optimizeCountSql: boolean;
hitCount: boolean;
countId: null;
maxLimit: null;
searchCount: boolean;
pages: number;
}
// 通知中心相关类型
export type NoticeListParams = {
pageNo: string;
pageSize: string;
}
export type NoticeRecord = {
pageNo: null;
pageSize: null;
createBy: string;
createTime: string;
updateBy: string;
updateTime: string;
remark: null;
lastUpdateTime: string;
id: string;
title: string;
titleEn: string;
content: string;
contentEn: string;
settingEn: string;
columnType: string;
publishBy: string;
publishTime: string;
isTop: string;
status: string;
delFlag: string;
statusText: string;
}
export type NoticeListResponse = {
records: NoticeRecord[];
total: number;
size: number;
current: number;
orders: string[];
optimizeCountSql: boolean;
hitCount: boolean;
countId: null;
maxLimit: null;
searchCount: boolean;
pages: number;
}
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 type BasePageRequest = {
pageNo: number;
pageSize: number;
[property: string]: any;
}
// 帮助中心列表请求参数
export type HelpCenterListRequest = {
basePageRequest: BasePageRequest;
[property: string]: any;
}
// 帮助中心列表响应数据中的记录
export type HelpCenterRecord = {
answerContent?: string;
answerContentNe?: string;
basePageRequest?: null;
content?: string;
contentEn?: string;
createBy?: string;
createDate?: null;
createTime?: string;
deleteFlag?: null;
delFlag?: string;
id?: string;
isTop?: string;
lastUpdateTime?: null;
publishBy?: null;
publishTime?: null;
settingEn?: string;
status?: string;
tenantId?: null;
tenantName?: null;
title?: string;
titleEn?: string;
type?: string;
updateBy?: string;
updateDate?: null;
updateTime?: string;
[property: string]: any;
}
// 帮助中心列表响应数据
export type HelpCenterListResponse = {
countId: null;
current: number;
hitCount: boolean;
maxLimit: null;
optimizeCountSql: boolean;
orders: any[];
pages: number;
records: HelpCenterRecord[];
searchCount: boolean;
size: number;
total: number;
[property: string]: any;
}
// 帮助中心详情请求参数
export type HelpCenterDetailRequest = {
id: string;
[property: string]: any;
}
// 帮助中心详情响应数据
export type HelpCenterDetailResponse = {
answerContent: string;
answerContentNe: string;
basePageRequest: null;
content: string;
contentEn: string;
createBy: string;
createDate: null;
createTime: string;
deleteFlag: null;
delFlag: string;
id: string;
isTop: string;
lastUpdateTime: null;
publishBy: null;
publishTime: null;
settingEn: string;
status: string;
tenantId: null;
tenantName: null;
title: string;
titleEn: string;
type: string;
updateBy: string;
updateDate: null;
updateTime: string;
[property: string]: any;
}
// 用户提问添加请求参数
export type HelpCenterQuestionAddRequest = {
companyName: string;
contactDetails: string;
content: string;
email: string;
fullName: string;
title: string;
type: string;
userName: string;
}
// 关于我们响应数据类型
export interface AboutUsData {
address: string;
addressEn: string;
addressImg: string;
contactsConsult: string;
contactsConsultEn: string;
contactsEmail: string;
contactsEmailEn: string;
contactsPhone: string;
contactsPhoneEn: string;
content: string;
contentEn: string;
createBy: string;
createDate: null;
createTime: string;
deleteFlag: null;
delFlag: string;
id: string;
lastUpdateTime: null;
tenantId: null;
tenantName: null;
title: string;
titleEn: string;
updateBy: string;
updateDate: null;
updateTime: string;
[property: string]: any;
}
2025-06-30 19:48:57 +08:00
export type CoscoPortalsLinksClassification = {
id: string;
name: string;
nameEn: string;
links: CoscoPortalsLinks[];
}[]
export type CoscoPortalsLinks = {
basePageRequest: null;
classificationId: string;
createBy: string;
createDate: null;
createTime: string;
delFlag: string;
deleteFlag: null;
id: string;
lastUpdateTime: null;
name: string;
nameEn: string;
orderBy: string;
remark: null;
status: string;
tenantId: null;
tenantName: null;
thumbnail: string;
url: string;
}
}