feat: 文章保存到草稿。
This commit is contained in:
@@ -12,6 +12,8 @@ export type Scalars = {
|
||||
Float: number;
|
||||
/** A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format. */
|
||||
DateTime: any;
|
||||
/** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
|
||||
Object: any;
|
||||
};
|
||||
|
||||
export type Article = {
|
||||
@@ -21,6 +23,7 @@ export type Article = {
|
||||
content: Scalars['String'];
|
||||
publishedAt?: Maybe<Scalars['DateTime']>;
|
||||
tags: Array<Scalars['String']>;
|
||||
key?: Maybe<Scalars['String']>;
|
||||
html: Scalars['String'];
|
||||
description?: Maybe<Scalars['String']>;
|
||||
};
|
||||
@@ -32,11 +35,25 @@ export type CreateArticleInput = {
|
||||
tags: Array<Scalars['String']>;
|
||||
};
|
||||
|
||||
export type CreateDraftArticleInput = {
|
||||
payload: Scalars['Object'];
|
||||
key: Scalars['String'];
|
||||
automatically?: Maybe<Scalars['Boolean']>;
|
||||
};
|
||||
|
||||
export type CreateTagInput = {
|
||||
name: Scalars['String'];
|
||||
};
|
||||
|
||||
|
||||
export type DraftArticle = {
|
||||
__typename?: 'DraftArticle';
|
||||
id: Scalars['ID'];
|
||||
payload: Scalars['Object'];
|
||||
key: Scalars['String'];
|
||||
automatically: Scalars['Boolean'];
|
||||
};
|
||||
|
||||
export type Hello = {
|
||||
__typename?: 'Hello';
|
||||
message: Scalars['String'];
|
||||
@@ -47,6 +64,9 @@ export type Mutation = {
|
||||
createArticle: Article;
|
||||
updateArticle: Article;
|
||||
removeArticle: Scalars['Int'];
|
||||
putDraftForArticle: DraftArticle;
|
||||
listDraftForArticle: Array<DraftArticle>;
|
||||
lastDraftForArticle: DraftArticle;
|
||||
createTag: Tag;
|
||||
updateTag: Tag;
|
||||
removeTag: Tag;
|
||||
@@ -68,6 +88,21 @@ export type MutationRemoveArticleArgs = {
|
||||
};
|
||||
|
||||
|
||||
export type MutationPutDraftForArticleArgs = {
|
||||
draft: CreateDraftArticleInput;
|
||||
};
|
||||
|
||||
|
||||
export type MutationListDraftForArticleArgs = {
|
||||
key: Scalars['String'];
|
||||
};
|
||||
|
||||
|
||||
export type MutationLastDraftForArticleArgs = {
|
||||
key: Scalars['String'];
|
||||
};
|
||||
|
||||
|
||||
export type MutationCreateTagArgs = {
|
||||
createTagInput: CreateTagInput;
|
||||
};
|
||||
@@ -82,6 +117,7 @@ export type MutationRemoveTagArgs = {
|
||||
id: Scalars['String'];
|
||||
};
|
||||
|
||||
|
||||
export type Query = {
|
||||
__typename?: 'Query';
|
||||
hello: Hello;
|
||||
|
Reference in New Issue
Block a user