fix: 修复前端类型标注与GraphQL访问数据不同的问题

- 将类型标注中的id字段改为string
This commit is contained in:
2025-11-15 16:33:30 +08:00
parent 6f08701847
commit 496548afa4
27 changed files with 92 additions and 92 deletions

View File

@ -3,7 +3,7 @@
*/
export interface CompanyProfileView {
/** 唯一标识符 **/
id: number;
id: string;
/** 内容 **/
content: string;

View File

@ -3,7 +3,7 @@
*/
export interface ContactInfoView {
/** 唯一标识符 **/
id: number;
id: string;
/** 内容 **/
content: string;

View File

@ -3,7 +3,7 @@
* 用于在文档库中提供产品筛选功能
*/
export interface DocumentListProductType {
id: number;
id: string;
name: string;
}
@ -12,7 +12,7 @@ export interface DocumentListProductType {
* 用于在文档库中提供产品筛选功能
*/
export interface DocumentListProduct {
id: number;
id: string;
name: string;
type: DocumentListProductType;
}
@ -23,7 +23,7 @@ export interface DocumentListProduct {
*/
export interface DocumentListView {
/** 唯一标识符 **/
id: number;
id: string;
/** 文件UUID **/
fileId: string;

View File

@ -3,7 +3,7 @@
*/
export interface HomepageProductView {
/** 唯一标识符 **/
id: number;
id: string;
/** 产品名称 **/
name: string;
@ -20,7 +20,7 @@ export interface HomepageProductView {
*/
export interface HomepageSolutionView {
/** 唯一标识符 **/
id: number;
id: string;
/** 解决方案标题 **/
title: string;
@ -37,7 +37,7 @@ export interface HomepageSolutionView {
*/
export interface HomepageView {
/** 唯一标识符 **/
id: number;
id: string;
/** 首页图片 **/
carousel: string[];

View File

@ -4,7 +4,7 @@
*/
export interface ProductDocumentView {
/** 唯一标识符 **/
id: number;
id: string;
/** 文件UUID **/
fileId: string;

View File

@ -4,7 +4,7 @@
*/
export interface ProductTypeView {
/** 唯一标识符 **/
id: number;
id: string;
/** 类型名 **/
name: string;
@ -19,7 +19,7 @@ export interface ProductTypeView {
*/
export interface ProductListView {
/** 唯一标识符 **/
id: number;
id: string;
/** 产品名称 **/
name: string;

View File

@ -4,7 +4,7 @@
*/
export interface ProductQuestionView {
/** 唯一标识符 **/
id: number;
id: string;
/** 问题标题 **/
title: string;

View File

@ -4,7 +4,7 @@
*/
export interface ProductSpecView {
/** 唯一标识符 **/
id: number;
id: string;
/** 规格名称 **/
key: string;
@ -19,7 +19,7 @@ export interface ProductSpecView {
*/
export interface ProductSpecGroupView {
/** 唯一标识符 **/
id: number;
id: string;
/** 规格组名称 **/
name: string;

View File

@ -3,7 +3,7 @@ import type { ProductQuestionView } from './product-question-view';
import type { ProductDocumentView } from './product-document-view';
interface ImageView {
id: number;
id: string;
image: string;
caption: string;
}
@ -14,7 +14,7 @@ interface ImageView {
*/
export interface ProductView {
/** 唯一标识符 **/
id: number;
id: string;
/** 产品名称 **/
name: string;

View File

@ -3,7 +3,7 @@
* 用于在常见问题列表中提供产品筛选功能
*/
export interface QuestionListProductType {
id: number;
id: string;
name: string;
}
@ -12,7 +12,7 @@ export interface QuestionListProductType {
* 用于在常见问题列表中提供产品筛选功能
*/
export interface QuestionListProduct {
id: number;
id: string;
name: string;
type: QuestionListProductType;
}
@ -23,7 +23,7 @@ export interface QuestionListProduct {
*/
export interface QuestionListView {
/** 唯一标识符 **/
id: number;
id: string;
/** 问题标题 **/
title: string;

View File

@ -4,7 +4,7 @@
*/
export interface SolutionTypeView {
/** 唯一标识符 **/
id: number;
id: string;
/** 类型名 **/
name: string;
@ -19,7 +19,7 @@ export interface SolutionTypeView {
*/
export interface SolutionListView {
/** 唯一标识符 **/
id: number;
id: string;
/** 标题 **/
title: string;

View File

@ -4,7 +4,7 @@
*/
export interface SolutionView {
/** 唯一标识符 **/
id: number;
id: string;
/** 标题 **/
title: string;