dao

package
v0.0.0-...-8406b6b Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package dao dao 层进行了数据访问对象的封装,并针对业务所需的字段进行了处理。

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, state uint8) (int, error)

func (*Dao) CreateTag

func (d *Dao) CreateTag(name string, state uint8, createdBy string) error

func (*Dao) DeleteTag

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

func (*Dao) GetAuth

func (d *Dao) GetAuth(appKey, appSecret string) (model.Auth, error)

func (*Dao) GetTagList

func (d *Dao) GetTagList(name string, state uint8, page, pageSize int) ([]*model.Tag, error)

func (*Dao) UpdateTag

func (d *Dao) UpdateTag(id uint32, name string, state *uint8, modifiedBy string) error

Jump to

Keyboard shortcuts

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