dao

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Description: Author: Michael Cheung Github: https://github.com/gzmichaelcheung Date: 2020-11-23 16:22:40 LastEditors: Michael Cheung LastEditTime: 2020-11-23 16:22:40

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) 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