graph

package
v0.0.0-...-f270e70 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IResolverUsecase

type IResolverUsecase interface {
	Login(ctx context.Context, now time.Time, input model.LoginInput) (bool, error)
	Logout(now time.Time, userId int) (bool, error)
	DeleteUser(ctx context.Context, now time.Time, userId int, user model.UserInfoByToken) (bool, error)
	CreateBlog(now time.Time, input model.CreateBlogInput, userId int) (*model.Blog, error)
	CreateArticle(now time.Time, input model.CreateArticleInput, userId int) (*model.Article, error)
	UpdateBlog(now time.Time, input model.UpdateBlogInput, userId int) (*model.Blog, error)
	UpdateArticle(now time.Time, input model.UpdateArticleInput, userId int) (*model.Article, error)
	DeleteBlog(id string, userId int) (bool, error)
	DeleteArticle(id string, userId int) (bool, error)
	UpdateConfig(role model.Role, input model.UpdateConfigInput) (*model.Config, error)
	Blogs(userId int) ([]*model.Blog, error)
	BlogByID(id string, userId int) (*model.Blog, error)
	BlogByBlogKey(now time.Time, input model.BlogByBlogKeyInput, userId *int) (*model.Blog, error)
	IsAuthor(blogKey string, userId int) (bool, error)
	Articles(now time.Time, input model.BlogByBlogKeyInput, paginationInput model.ArticlePaginationInput, userId *int) (*model.ArticleConnection, error)
	ArticleByArticleKey(now time.Time, input model.ArticleByArticleKeyInput, userId *int) (*model.Article, error)
	MasterParameter() (*model.MasterParameter, error)
	Config(role model.Role) (*model.Config, error)
}

type Resolver

type Resolver struct {
	ResolverUsecase IResolverUsecase
}

func (*Resolver) Mutation

func (r *Resolver) Mutation() generated.MutationResolver

Mutation returns generated.MutationResolver implementation.

func (*Resolver) Query

func (r *Resolver) Query() generated.QueryResolver

Query returns generated.QueryResolver implementation.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL