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.
Click to show internal directories.
Click to hide internal directories.