dao

package
v0.0.0-...-1bfcc7b Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 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 Dao

type Dao struct {
	// contains filtered or unexported fields
}

func New

func New(engine *gorm.DB) *Dao

func (*Dao) CountTag

func (d *Dao) CountTag(name string, status int8) (int, error)

func (*Dao) CreateTag

func (d *Dao) CreateTag(name string, stauts int8) error

func (*Dao) DeleteTag

func (d *Dao) DeleteTag(id int64) error

func (*Dao) GetTag

func (d *Dao) GetTag(id int64) (*model.BlogTag, error)

func (*Dao) GetTagList

func (d *Dao) GetTagList(name string, status int8, page int, pageSize int) ([]*model.BlogTag, error)

func (*Dao) UpdateTag

func (d *Dao) UpdateTag(id int64, name string, status int8) error

Jump to

Keyboard shortcuts

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