dao

package
v0.0.0-...-17d8290 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 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
}

type PostDao

type PostDao struct {
	Dao
}

func NewPost

func NewPost(db *gorm.DB) *PostDao

func (PostDao) Get

func (dao PostDao) Get(id int32) (*entity.ZbpPost, error)

func (PostDao) GetList

func (dao PostDao) GetList() ([]entity.ZbpPost, error)

type RouteDao

type RouteDao struct {
	Dao
}

func NewRoute

func NewRoute(db *gorm.DB) *RouteDao

func (RouteDao) GetById

func (dao RouteDao) GetById(ids []int) []entity.Routers

func (RouteDao) GetOne

func (dao RouteDao) GetOne(path string, method string) entity.Routers

func (RouteDao) Save

func (dao RouteDao) Save(route entity.Routers) entity.Routers

func (RouteDao) SetDelFlag

func (dao RouteDao) SetDelFlag()

type UserDao

type UserDao struct {
	Dao
}

func User

func User(db *gorm.DB) *UserDao

func (UserDao) Get

func (dao UserDao) Get(name string) (*entity.ZbpMember, error)

Jump to

Keyboard shortcuts

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