2025-06-17 14:20:06 +08:00
|
|
|
|
declare namespace API {
|
|
|
|
|
type APIResponse<T> = {
|
|
|
|
|
code: number;
|
|
|
|
|
success: boolean;
|
|
|
|
|
message: string;
|
|
|
|
|
data: T;
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-17 18:32:33 +08:00
|
|
|
|
export type PolicyRequest = {
|
|
|
|
|
/**
|
|
|
|
|
* 内容
|
|
|
|
|
*/
|
|
|
|
|
content: string;
|
|
|
|
|
/**
|
|
|
|
|
* 内容_英文版
|
|
|
|
|
*/
|
|
|
|
|
contentEn: string;
|
|
|
|
|
/**
|
|
|
|
|
* 是否置顶(0.否、1.是)
|
|
|
|
|
*/
|
|
|
|
|
isTop: string;
|
|
|
|
|
/**
|
|
|
|
|
* 是否设置英文内容(0.否、1.是)
|
|
|
|
|
*/
|
|
|
|
|
settingEn: number;
|
|
|
|
|
/**
|
|
|
|
|
* 标题
|
|
|
|
|
*/
|
|
|
|
|
title: string;
|
|
|
|
|
/**
|
|
|
|
|
* 标题英文
|
|
|
|
|
*/
|
|
|
|
|
titleEn: string;
|
|
|
|
|
[property: string]: any;
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-17 14:20:06 +08:00
|
|
|
|
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-17 18:32:33 +08:00
|
|
|
|
|
2025-06-18 14:37:42 +08:00
|
|
|
|
// 通用响应类型
|
|
|
|
|
type Response<T = any> = {
|
|
|
|
|
success: boolean;
|
|
|
|
|
data: T;
|
|
|
|
|
message?: string;
|
|
|
|
|
code?: number;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 分页响应类型
|
|
|
|
|
type PageResponse<T = any> = {
|
|
|
|
|
records: T[];
|
|
|
|
|
total: number;
|
|
|
|
|
size: number;
|
|
|
|
|
current: number;
|
|
|
|
|
pages: number;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// 基础分页请求
|
|
|
|
|
interface BasePageRequest {
|
2025-06-17 18:32:33 +08:00
|
|
|
|
pageNo: number;
|
|
|
|
|
pageSize: number;
|
2025-06-18 14:37:42 +08:00
|
|
|
|
[property: string]: any;
|
2025-06-17 18:32:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 分页请求参数
|
2025-06-18 14:37:42 +08:00
|
|
|
|
interface PageRequest {
|
2025-06-17 18:32:33 +08:00
|
|
|
|
basePageRequest: BasePageRequest;
|
2025-06-18 14:37:42 +08:00
|
|
|
|
[property: string]: any;
|
2025-06-17 18:32:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 政策法规数据项
|
|
|
|
|
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;
|
|
|
|
|
}
|
2025-06-17 21:06:27 +08:00
|
|
|
|
|
|
|
|
|
// 通知中心数据项
|
|
|
|
|
export interface NoticeRecord {
|
|
|
|
|
id: string;
|
|
|
|
|
title: string;
|
|
|
|
|
titleEn?: string;
|
|
|
|
|
content: string;
|
|
|
|
|
contentEn?: string;
|
|
|
|
|
createTime: string;
|
|
|
|
|
createBy: string;
|
|
|
|
|
status: string; // 状态:0-草稿,1-已发布,2-已下架
|
|
|
|
|
isTop: string; // 是否置顶:0-否,1-是
|
|
|
|
|
settingEn?: number; // 是否设置英文:0-否,1-是
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 通知中心请求参数
|
|
|
|
|
export interface NoticeRequest {
|
|
|
|
|
id?: string;
|
|
|
|
|
title: string;
|
|
|
|
|
titleEn?: string;
|
|
|
|
|
content: string;
|
|
|
|
|
contentEn?: string;
|
|
|
|
|
isTop: string;
|
|
|
|
|
settingEn?: number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 通知中心查询参数
|
|
|
|
|
export interface NoticeSearchParams {
|
|
|
|
|
title?: string;
|
|
|
|
|
status?: string;
|
2025-06-18 14:37:42 +08:00
|
|
|
|
pageNo?: number;
|
|
|
|
|
pageSize?: number;
|
2025-06-17 21:06:27 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 帮助中心数据项
|
|
|
|
|
export interface HelpRecord {
|
|
|
|
|
id: string;
|
|
|
|
|
title: string;
|
|
|
|
|
titleEn?: string;
|
|
|
|
|
type: string; // 类型,对应页面中的category
|
|
|
|
|
content: string;
|
|
|
|
|
contentEn?: string;
|
|
|
|
|
createTime: string;
|
|
|
|
|
createBy: string;
|
|
|
|
|
updateTime?: string;
|
|
|
|
|
updateBy?: string;
|
|
|
|
|
status: string; // 状态:0-草稿,1-已发布,2-已下架
|
|
|
|
|
isTop: string; // 是否置顶:0-否,1-是
|
|
|
|
|
settingEn: number; // 是否设置英文:0-否,1-是
|
|
|
|
|
answerContent?: string;
|
|
|
|
|
answerContentNe?: string;
|
|
|
|
|
publishBy?: string | null;
|
|
|
|
|
publishTime?: string | null;
|
|
|
|
|
deleteFlag?: null;
|
|
|
|
|
delFlag?: string;
|
|
|
|
|
tenantId?: string | null;
|
|
|
|
|
tenantName?: string | null;
|
|
|
|
|
lastUpdateTime?: null;
|
|
|
|
|
createDate?: null;
|
|
|
|
|
updateDate?: null;
|
|
|
|
|
basePageRequest?: null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 帮助中心请求参数
|
|
|
|
|
export interface HelpRequest {
|
|
|
|
|
id?: string;
|
|
|
|
|
title: string;
|
|
|
|
|
titleEn?: string;
|
|
|
|
|
type: string; // 类型,对应页面中的category
|
|
|
|
|
content: string;
|
|
|
|
|
contentEn?: string;
|
|
|
|
|
isTop: string;
|
|
|
|
|
settingEn: number;
|
|
|
|
|
answerContent?: string;
|
|
|
|
|
answerContentNe?: number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 帮助中心查询参数
|
|
|
|
|
export interface HelpSearchParams {
|
|
|
|
|
title?: string;
|
|
|
|
|
type?: string; // 类型,对应页面中的category
|
|
|
|
|
status?: string;
|
|
|
|
|
pageNo?: number;
|
|
|
|
|
pageSize?: number;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 用户提问数据项
|
|
|
|
|
export interface UserQuestionRecord {
|
|
|
|
|
id: string;
|
|
|
|
|
userId: string;
|
|
|
|
|
username: string;
|
|
|
|
|
email?: string;
|
|
|
|
|
question: string;
|
|
|
|
|
answer?: string;
|
|
|
|
|
createTime: string;
|
|
|
|
|
answerTime?: string;
|
|
|
|
|
status: string; // 状态:0-未回答,1-已回答
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 用户提问查询参数
|
|
|
|
|
export interface UserQuestionSearchParams {
|
|
|
|
|
question?: string;
|
|
|
|
|
status?: string;
|
|
|
|
|
pageNo?: number;
|
|
|
|
|
pageSize?: number;
|
|
|
|
|
}
|
2025-06-18 14:37:42 +08:00
|
|
|
|
|
|
|
|
|
// 用户问题记录类型
|
|
|
|
|
interface QuestionRecord {
|
|
|
|
|
id: string;
|
|
|
|
|
title: string;
|
|
|
|
|
type: string;
|
|
|
|
|
content: string;
|
|
|
|
|
answerContent?: string;
|
|
|
|
|
userName: string;
|
|
|
|
|
companyName: string;
|
|
|
|
|
fullName: string;
|
|
|
|
|
contactDetails: string;
|
|
|
|
|
email: string;
|
|
|
|
|
askTime: string;
|
|
|
|
|
answerTime?: string;
|
|
|
|
|
answerBy?: string;
|
|
|
|
|
isAnswer: string; // 0-未回答,1-已回答
|
|
|
|
|
isPublished?: number; // 0-未发布,1-已发布
|
|
|
|
|
isTop?: number; // 0-未置顶,1-已置顶
|
|
|
|
|
createTime?: string;
|
|
|
|
|
updateTime?: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 问题列表请求参数
|
|
|
|
|
interface QuestionListRequest {
|
|
|
|
|
isAnswer?: number; // 0-未回答,1-已回答
|
|
|
|
|
title?: string;
|
|
|
|
|
type?: string;
|
|
|
|
|
[property: string]: any;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 问题添加请求参数
|
|
|
|
|
interface QuestionAddRequest {
|
|
|
|
|
title: string;
|
|
|
|
|
content: string;
|
|
|
|
|
type: string;
|
|
|
|
|
fullName: string;
|
|
|
|
|
companyName: string;
|
|
|
|
|
userName: string;
|
|
|
|
|
contactDetails: string;
|
|
|
|
|
email: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 问题回答请求参数
|
|
|
|
|
interface QuestionAnswerRequest {
|
|
|
|
|
id: string;
|
|
|
|
|
answerContent: string;
|
|
|
|
|
isPublished?: number; // 0-未发布,1-已发布
|
|
|
|
|
isTop?: number; // 0-未置顶,1-已置顶
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 问题状态更新请求参数
|
|
|
|
|
interface QuestionStatusRequest {
|
|
|
|
|
id: string;
|
|
|
|
|
isPublished?: number; // 0-未发布,1-已发布
|
|
|
|
|
isTop?: number; // 0-未置顶,1-已置顶
|
|
|
|
|
}
|
2025-06-18 16:37:25 +08:00
|
|
|
|
// 友情链接分类类型定义
|
|
|
|
|
interface CategoryType {
|
|
|
|
|
id: string;
|
|
|
|
|
name: string;
|
|
|
|
|
type: string;
|
|
|
|
|
parentId: string;
|
|
|
|
|
orderBy: string;
|
|
|
|
|
remark: string;
|
|
|
|
|
delFlag?: string;
|
|
|
|
|
createTime?: string;
|
|
|
|
|
updateTime?: string;
|
|
|
|
|
createBy?: string;
|
|
|
|
|
updateBy?: string;
|
|
|
|
|
key?: string;
|
|
|
|
|
children?: CategoryType[];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 友情链接类型定义
|
|
|
|
|
interface LinkType {
|
|
|
|
|
id: string;
|
|
|
|
|
classificationId: string;
|
|
|
|
|
name: string;
|
|
|
|
|
nameEn: string;
|
|
|
|
|
thumbnail: string;
|
|
|
|
|
url: string;
|
|
|
|
|
status: string;
|
|
|
|
|
orderBy: string;
|
|
|
|
|
createTime?: string;
|
|
|
|
|
updateTime?: string;
|
|
|
|
|
categoryName?: string; // 用于显示
|
2025-06-18 18:46:32 +08:00
|
|
|
|
// 以下是详情接口返回的额外字段
|
|
|
|
|
createBy?: string;
|
|
|
|
|
createDate?: string | null;
|
|
|
|
|
updateBy?: string | null;
|
|
|
|
|
updateDate?: string | null;
|
|
|
|
|
tenantId?: string | null;
|
|
|
|
|
tenantName?: string | null;
|
|
|
|
|
deleteFlag?: string | null;
|
|
|
|
|
lastUpdateTime?: string | null;
|
|
|
|
|
delFlag?: string;
|
|
|
|
|
remark?: string | null;
|
|
|
|
|
basePageRequest?: null;
|
2025-06-18 16:37:25 +08:00
|
|
|
|
}
|
|
|
|
|
// 友情链接分类请求参数
|
|
|
|
|
export interface CategoryRequest {
|
|
|
|
|
id?: string;
|
|
|
|
|
name: string;
|
|
|
|
|
type: string;
|
|
|
|
|
parentId: string;
|
|
|
|
|
orderBy: string;
|
|
|
|
|
remark: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 友情链接分类响应数据
|
|
|
|
|
export interface CategoryItem {
|
|
|
|
|
id: string;
|
|
|
|
|
name: string;
|
|
|
|
|
type: string;
|
|
|
|
|
parentId: string;
|
|
|
|
|
orderBy: string;
|
|
|
|
|
remark: string;
|
|
|
|
|
delFlag: string;
|
|
|
|
|
createTime: string;
|
|
|
|
|
updateTime: string;
|
|
|
|
|
createBy: string;
|
|
|
|
|
updateBy?: string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 友情链接请求参数
|
|
|
|
|
export interface LinkRequest {
|
|
|
|
|
id?: string | number;
|
|
|
|
|
classificationId: string;
|
|
|
|
|
name: string;
|
|
|
|
|
nameEn: string;
|
|
|
|
|
thumbnail: string;
|
|
|
|
|
url: string;
|
|
|
|
|
orderBy: number | string;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 友情链接响应数据
|
|
|
|
|
export interface LinkItem {
|
|
|
|
|
id: string;
|
|
|
|
|
classificationId: string;
|
|
|
|
|
name: string;
|
|
|
|
|
nameEn: string;
|
|
|
|
|
thumbnail: string;
|
|
|
|
|
url: string;
|
|
|
|
|
status: string;
|
|
|
|
|
orderBy: string;
|
|
|
|
|
delFlag: string;
|
|
|
|
|
createTime: string;
|
|
|
|
|
updateTime: string;
|
|
|
|
|
createBy: string;
|
|
|
|
|
updateBy?: string;
|
|
|
|
|
remark?: string;
|
|
|
|
|
basePageRequest?: null;
|
|
|
|
|
}
|
2025-06-17 14:20:06 +08:00
|
|
|
|
}
|