categoryController

package
v0.0.0-...-352c0ba Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNewCategory

func AddNewCategory(ctx context.Context, newCategory model.NewCategory) (*model.GetCategoryResponse, error)

func AddPostToCategory

func AddPostToCategory(ctx context.Context, categoryID int, postID int) (*model.PostCategoryResponse, error)

func DeleteCategory

func DeleteCategory(ctx context.Context, categoryID int) (*model.GetCategoryResponse, error)

func EditCategory

func EditCategory(ctx context.Context, newCategory model.NewCategory) (*model.GetCategoryResponse, error)

func GetAllCategories

func GetAllCategories(ctx context.Context, requesterID int) (*model.GetCategoriesResponse, error)

func GetPostCategories

func GetPostCategories(ctx context.Context, postId int) (*model.GetCategoriesResponse, error)

func RemovePostFromCategory

func RemovePostFromCategory(ctx context.Context, categoryID int, postID int) (*model.PostCategoryResponse, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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