fix: 修复前端类型标注与GraphQL访问数据不同的问题
- 将类型标注中的id字段改为string
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
*/
|
||||
export interface CompanyProfileView {
|
||||
/** 唯一标识符 **/
|
||||
id: number;
|
||||
id: string;
|
||||
|
||||
/** 内容 **/
|
||||
content: string;
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
*/
|
||||
export interface ContactInfoView {
|
||||
/** 唯一标识符 **/
|
||||
id: number;
|
||||
id: string;
|
||||
|
||||
/** 内容 **/
|
||||
content: string;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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[];
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
*/
|
||||
export interface ProductDocumentView {
|
||||
/** 唯一标识符 **/
|
||||
id: number;
|
||||
id: string;
|
||||
|
||||
/** 文件UUID **/
|
||||
fileId: string;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
*/
|
||||
export interface ProductQuestionView {
|
||||
/** 唯一标识符 **/
|
||||
id: number;
|
||||
id: string;
|
||||
|
||||
/** 问题标题 **/
|
||||
title: string;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
*/
|
||||
export interface SolutionView {
|
||||
/** 唯一标识符 **/
|
||||
id: number;
|
||||
id: string;
|
||||
|
||||
/** 标题 **/
|
||||
title: string;
|
||||
|
||||
Reference in New Issue
Block a user