editor

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewController

func NewController(
	authMFunc network.AuthenticationProvider,
	authorizeMFunc network.AuthorizationProvider,
	service Service,
) network.Controller

Types

type Service

type Service interface {
	GetBlogById(id primitive.ObjectID) (*dto.PrivateBlog, error)
	BlogPublication(blogId primitive.ObjectID, editor *userModel.User, publish bool) error
	GetPaginatedPublished(p *coredto.Pagination) ([]*dto.InfoBlog, error)
	GetPaginatedSubmitted(p *coredto.Pagination) ([]*dto.InfoBlog, error)
}

func NewService

func NewService(db mongo.Database, userService user.Service) Service

Jump to

Keyboard shortcuts

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