dao

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AbstractDao

type AbstractDao struct {
	DB *gorm.DB
	*utils.ModelInfo
}

func NewAbstractDao

func NewAbstractDao(db *gorm.DB, modelInfo *utils.ModelInfo) *AbstractDao

func (*AbstractDao) Add

func (d *AbstractDao) Add(model interface{}) (interface{}, error)

func (*AbstractDao) AddBatch

func (d *AbstractDao) AddBatch(models interface{}) (interface{}, error)

func (*AbstractDao) DeleteByPrimaryKey

func (d *AbstractDao) DeleteByPrimaryKey(primaryKey string) error

func (*AbstractDao) DeleteByPrimaryKeys

func (d *AbstractDao) DeleteByPrimaryKeys(primaryKeys []string) error

func (*AbstractDao) GetList

func (d *AbstractDao) GetList(queryCond utils.QueryConditions) (interface{}, error)

func (*AbstractDao) GetListByPrimaryKeys

func (d *AbstractDao) GetListByPrimaryKeys(primaryKeys []string) (interface{}, error)

func (*AbstractDao) GetOneByPrimaryKey

func (d *AbstractDao) GetOneByPrimaryKey(primaryKey string) (interface{}, error)

func (*AbstractDao) Update

func (d *AbstractDao) Update(model interface{}, pk string) (interface{}, error)

Jump to

Keyboard shortcuts

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