post

package
v0.0.0-...-7aa88fd Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(post *model.Post) error

func Detail

func Detail(id uint) (model.Post, error)

func DetailByURL

func DetailByURL(url string) (model.Post, error)

func List

func List(limit, offset int, opt model.Option) (int64, []model.Post, error)

func Remove

func Remove(id uint) error

func Update

func Update(id uint, post *model.Post) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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