categoryModel

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	ID        int32  `db:"id"`
	Title     string `db:"title"`
	Slug      string `db:"slug"`
	Content   string `db:"content"`
	CreatedAt int32  `db:"created_at"`
	UpdatedAt int32  `db:"updated_at"`
}

func GetAllCategories

func GetAllCategories(requestorId int32) (success bool, allCategories []*Category)

GetAllCategories func

func GetPostCategories

func GetPostCategories(postId int32) (success bool, foundCategory []*Category)

GetPostCategories func

type PostCategory

type PostCategory struct {
	PostId     int32 `db:"post_id"`
	CategoryId int32 `db:"category_id"`
}

Jump to

Keyboard shortcuts

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