blogservice

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlogPost

type BlogPost struct {
	PostId  uint64
	Creator profileservice.UserProfile
	Date    string
	Title   string
	Content string
}

type BlogService

type BlogService interface {
	CreatePost(ctx context.Context, userId uint64, title string, content string) (uint64, error)
	GetPost(ctx context.Context, userId uint64, postId uint64) (BlogPost, error)
	GetPosts(ctx context.Context, userId uint64, start uint64, end uint64, filter string) (uint64, []BlogPost, error)
	DeletePost(ctx context.Context, userId uint64, postId uint64) error
	CreateRight(ctx context.Context, userId uint64) bool
	DeleteRight(ctx context.Context, userId uint64) bool
}

Jump to

Keyboard shortcuts

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