116 lines
2.7 KiB
TypeScript
116 lines
2.7 KiB
TypeScript
![]() |
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;
|
||
|
}[];
|
||
|
}[]
|
||
|
}
|