service

package
v0.0.0-...-d25be1a Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommentService

type CommentService interface {
	GetCommentList(ctx context.Context, filter entity.CommentFilter) ([]entity.Comment, error)
	GetCommentByID(ctx context.Context, commentID uuid.UUID) (entity.Comment, error)
	ExistsCommentByID(ctx context.Context, commentID uuid.UUID) (bool, error)
	AddComment(ctx context.Context, comment entity.CommentAdd) (entity.Comment, error)
	UpdateCommentByID(ctx context.Context, commentID uuid.UUID, comment entity.CommentUpdate) (entity.Comment, error)
	DeleteCommentByID(ctx context.Context, commentID uuid.UUID) error
}

type CountryService

type CountryService interface {
	GetCountryList(ctx context.Context, filter entity.CountryFilter) ([]entity.Country, error)
	GetCountryByID(ctx context.Context, countryID uuid.UUID) (entity.Country, error)
	ExistsCountryByID(ctx context.Context, countryID uuid.UUID) (bool, error)
}

type PostService

type PostService interface {
	GetPostList(ctx context.Context, filter entity.PostFilter) ([]entity.Post, error)
	GetPostByID(ctx context.Context, postID uuid.UUID) (entity.Post, error)
	ExistsPostByID(ctx context.Context, postID uuid.UUID) (bool, error)
	AddPost(ctx context.Context, post entity.PostAdd) (entity.Post, error)
	UpdatePostByID(ctx context.Context, postID uuid.UUID, post entity.PostUpdate) (entity.Post, error)
	DeletePostByID(ctx context.Context, postID uuid.UUID) error
}

type TagService

type TagService interface {
	GetTagList(ctx context.Context, filter entity.TagFilter) ([]entity.Tag, error)
	GetTagByID(ctx context.Context, tagID uuid.UUID) (entity.Tag, error)
	ExistsTagByID(ctx context.Context, tagID uuid.UUID) (bool, error)
	AddTag(ctx context.Context, tag entity.TagAdd) (entity.Tag, error)
	UpdateTagByID(ctx context.Context, tagID uuid.UUID, tag entity.TagUpdate) (entity.Tag, error)
	DeleteTagByID(ctx context.Context, tagID uuid.UUID) error
}

type UserService

type UserService interface {
	GetUserList(ctx context.Context, filter entity.UserFilter) ([]entity.User, error)
	GetUserByID(ctx context.Context, userID uuid.UUID) (entity.User, error)
	ExistsUserByID(ctx context.Context, userID uuid.UUID) (bool, error)
	AddUser(ctx context.Context, user entity.UserAdd) (entity.User, error)
	UpdateUserByID(ctx context.Context, userID uuid.UUID, user entity.UserUpdate) (entity.User, error)
	DeleteUserByID(ctx context.Context, userID uuid.UUID) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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