Documentation ¶
Index ¶
- func AddNewCategory(ctx context.Context, newCategory model.NewCategory) (*model.GetCategoryResponse, error)
- func AddPostToCategory(ctx context.Context, categoryID int, postID int) (*model.PostCategoryResponse, error)
- func DeleteCategory(ctx context.Context, categoryID int) (*model.GetCategoryResponse, error)
- func EditCategory(ctx context.Context, newCategory model.NewCategory) (*model.GetCategoryResponse, error)
- func GetAllCategories(ctx context.Context, requesterID int) (*model.GetCategoriesResponse, error)
- func GetPostCategories(ctx context.Context, postId int) (*model.GetCategoriesResponse, error)
- func RemovePostFromCategory(ctx context.Context, categoryID int, postID int) (*model.PostCategoryResponse, error)
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 DeleteCategory ¶
func EditCategory ¶
func EditCategory(ctx context.Context, newCategory model.NewCategory) (*model.GetCategoryResponse, error)
func GetAllCategories ¶
func GetPostCategories ¶
func RemovePostFromCategory ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.