2025-06-17 14:03:57 +08:00
|
|
|
declare namespace API {
|
|
|
|
type APIResponse<T> = {
|
|
|
|
code: number;
|
|
|
|
success: boolean;
|
|
|
|
message: string;
|
|
|
|
data: T;
|
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
}[];
|
|
|
|
}[]
|
2025-06-18 20:14:11 +08:00
|
|
|
|
|
|
|
// 基础分页请求参数
|
|
|
|
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;
|
|
|
|
[property: string]: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 关于我们响应数据类型
|
|
|
|
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-17 14:03:57 +08:00
|
|
|
}
|