feat: 添加Content类型
This commit is contained in:
@ -31,6 +31,11 @@
|
|||||||
"type": "relation",
|
"type": "relation",
|
||||||
"relation": "oneToMany",
|
"relation": "oneToMany",
|
||||||
"target": "api::production.production"
|
"target": "api::production.production"
|
||||||
|
},
|
||||||
|
"recommend_solutions": {
|
||||||
|
"type": "relation",
|
||||||
|
"relation": "oneToMany",
|
||||||
|
"target": "api::solution.solution"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -84,7 +84,7 @@
|
|||||||
"type": "relation",
|
"type": "relation",
|
||||||
"relation": "manyToMany",
|
"relation": "manyToMany",
|
||||||
"target": "api::question.question",
|
"target": "api::question.question",
|
||||||
"inversedBy": "productions"
|
"inversedBy": "related_productions"
|
||||||
},
|
},
|
||||||
"production_documents": {
|
"production_documents": {
|
||||||
"type": "relation",
|
"type": "relation",
|
||||||
@ -92,21 +92,6 @@
|
|||||||
"target": "api::production-document.production-document",
|
"target": "api::production-document.production-document",
|
||||||
"mappedBy": "related_productions"
|
"mappedBy": "related_productions"
|
||||||
},
|
},
|
||||||
"documents": {
|
|
||||||
"type": "media",
|
|
||||||
"pluginOptions": {
|
|
||||||
"i18n": {
|
|
||||||
"localized": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"multiple": true,
|
|
||||||
"allowedTypes": [
|
|
||||||
"images",
|
|
||||||
"files",
|
|
||||||
"videos",
|
|
||||||
"audios"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"show_in_production_list": {
|
"show_in_production_list": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"pluginOptions": {
|
"pluginOptions": {
|
||||||
|
|||||||
@ -32,7 +32,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"productions": {
|
"related_productions": {
|
||||||
"type": "relation",
|
"type": "relation",
|
||||||
"relation": "manyToMany",
|
"relation": "manyToMany",
|
||||||
"target": "api::production.production",
|
"target": "api::production.production",
|
||||||
|
|||||||
@ -1,34 +0,0 @@
|
|||||||
{
|
|
||||||
"kind": "singleType",
|
|
||||||
"collectionName": "total_documents",
|
|
||||||
"info": {
|
|
||||||
"singularName": "total-document",
|
|
||||||
"pluralName": "total-documents",
|
|
||||||
"displayName": "TotalDocument"
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"draftAndPublish": true
|
|
||||||
},
|
|
||||||
"pluginOptions": {
|
|
||||||
"i18n": {
|
|
||||||
"localized": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"attributes": {
|
|
||||||
"documents": {
|
|
||||||
"type": "media",
|
|
||||||
"pluginOptions": {
|
|
||||||
"i18n": {
|
|
||||||
"localized": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"multiple": true,
|
|
||||||
"allowedTypes": [
|
|
||||||
"images",
|
|
||||||
"files",
|
|
||||||
"videos",
|
|
||||||
"audios"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
/**
|
|
||||||
* total-document controller
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi'
|
|
||||||
|
|
||||||
export default factories.createCoreController('api::total-document.total-document');
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
/**
|
|
||||||
* total-document router
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi';
|
|
||||||
|
|
||||||
export default factories.createCoreRouter('api::total-document.total-document');
|
|
||||||
@ -1,7 +0,0 @@
|
|||||||
/**
|
|
||||||
* total-document service
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi';
|
|
||||||
|
|
||||||
export default factories.createCoreService('api::total-document.total-document');
|
|
||||||
58
types/generated/contentTypes.d.ts
vendored
58
types/generated/contentTypes.d.ts
vendored
@ -483,6 +483,10 @@ export interface ApiHomepageHomepage extends Struct.SingleTypeSchema {
|
|||||||
'oneToMany',
|
'oneToMany',
|
||||||
'api::production.production'
|
'api::production.production'
|
||||||
>;
|
>;
|
||||||
|
recommend_solutions: Schema.Attribute.Relation<
|
||||||
|
'oneToMany',
|
||||||
|
'api::solution.solution'
|
||||||
|
>;
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
updatedAt: Schema.Attribute.DateTime;
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||||
Schema.Attribute.Private;
|
Schema.Attribute.Private;
|
||||||
@ -596,15 +600,6 @@ export interface ApiProductionProduction extends Struct.CollectionTypeSchema {
|
|||||||
createdAt: Schema.Attribute.DateTime;
|
createdAt: Schema.Attribute.DateTime;
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||||
Schema.Attribute.Private;
|
Schema.Attribute.Private;
|
||||||
documents: Schema.Attribute.Media<
|
|
||||||
'images' | 'files' | 'videos' | 'audios',
|
|
||||||
true
|
|
||||||
> &
|
|
||||||
Schema.Attribute.SetPluginOptions<{
|
|
||||||
i18n: {
|
|
||||||
localized: true;
|
|
||||||
};
|
|
||||||
}>;
|
|
||||||
locale: Schema.Attribute.String;
|
locale: Schema.Attribute.String;
|
||||||
localizations: Schema.Attribute.Relation<
|
localizations: Schema.Attribute.Relation<
|
||||||
'oneToMany',
|
'oneToMany',
|
||||||
@ -697,11 +692,11 @@ export interface ApiQuestionQuestion extends Struct.CollectionTypeSchema {
|
|||||||
'oneToMany',
|
'oneToMany',
|
||||||
'api::question.question'
|
'api::question.question'
|
||||||
>;
|
>;
|
||||||
productions: Schema.Attribute.Relation<
|
publishedAt: Schema.Attribute.DateTime;
|
||||||
|
related_productions: Schema.Attribute.Relation<
|
||||||
'manyToMany',
|
'manyToMany',
|
||||||
'api::production.production'
|
'api::production.production'
|
||||||
>;
|
>;
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
title: Schema.Attribute.String &
|
title: Schema.Attribute.String &
|
||||||
Schema.Attribute.Required &
|
Schema.Attribute.Required &
|
||||||
Schema.Attribute.SetPluginOptions<{
|
Schema.Attribute.SetPluginOptions<{
|
||||||
@ -814,46 +809,6 @@ export interface ApiSolutionSolution extends Struct.CollectionTypeSchema {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiTotalDocumentTotalDocument extends Struct.SingleTypeSchema {
|
|
||||||
collectionName: 'total_documents';
|
|
||||||
info: {
|
|
||||||
displayName: 'TotalDocument';
|
|
||||||
pluralName: 'total-documents';
|
|
||||||
singularName: 'total-document';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: true;
|
|
||||||
};
|
|
||||||
pluginOptions: {
|
|
||||||
i18n: {
|
|
||||||
localized: true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
documents: Schema.Attribute.Media<
|
|
||||||
'images' | 'files' | 'videos' | 'audios',
|
|
||||||
true
|
|
||||||
> &
|
|
||||||
Schema.Attribute.SetPluginOptions<{
|
|
||||||
i18n: {
|
|
||||||
localized: true;
|
|
||||||
};
|
|
||||||
}>;
|
|
||||||
locale: Schema.Attribute.String;
|
|
||||||
localizations: Schema.Attribute.Relation<
|
|
||||||
'oneToMany',
|
|
||||||
'api::total-document.total-document'
|
|
||||||
>;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface PluginContentReleasesRelease
|
export interface PluginContentReleasesRelease
|
||||||
extends Struct.CollectionTypeSchema {
|
extends Struct.CollectionTypeSchema {
|
||||||
collectionName: 'strapi_releases';
|
collectionName: 'strapi_releases';
|
||||||
@ -1372,7 +1327,6 @@ declare module '@strapi/strapi' {
|
|||||||
'api::question.question': ApiQuestionQuestion;
|
'api::question.question': ApiQuestionQuestion;
|
||||||
'api::solution-type.solution-type': ApiSolutionTypeSolutionType;
|
'api::solution-type.solution-type': ApiSolutionTypeSolutionType;
|
||||||
'api::solution.solution': ApiSolutionSolution;
|
'api::solution.solution': ApiSolutionSolution;
|
||||||
'api::total-document.total-document': ApiTotalDocumentTotalDocument;
|
|
||||||
'plugin::content-releases.release': PluginContentReleasesRelease;
|
'plugin::content-releases.release': PluginContentReleasesRelease;
|
||||||
'plugin::content-releases.release-action': PluginContentReleasesReleaseAction;
|
'plugin::content-releases.release-action': PluginContentReleasesReleaseAction;
|
||||||
'plugin::i18n.locale': PluginI18NLocale;
|
'plugin::i18n.locale': PluginI18NLocale;
|
||||||
|
|||||||
Reference in New Issue
Block a user