basedao

package
v1.0.2-dev-10 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MulanPSL-2.0 Imports: 7 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(key string, web DaoIface)

Types

type BaseDao

type BaseDao struct {
}

func (*BaseDao) GetDB

func (this *BaseDao) GetDB() *gorm.DB

type DaoIface

type DaoIface interface {
	//Insert(entity ModelIface) (int32, error)
	DeleteById(pkey int64) error
	//Save(entity *model.SubsysDict) (int32, error)
	//Update(entity *model.SubsysDict) (int32, error)
	UpdateNotNull(pkey int64, maps map[string]interface{}) (int32, error)
	UpdateMap(pkey int64, maps map[string]interface{}) (int32, error)
	//FindById(pkey int64) (entity *model.SubsysDict, found bool, err error)
	//FindByIds(pks string) (*[]model.SubsysDict, error)
	Query(param *page.PageRequest) *page.PageResult
	Count(param *page.PageRequest) (int, error)
}

func Get

func Get(key string) (DaoIface, bool)

type DaoIfaceInt32

type DaoIfaceInt32 interface {
	//Insert(entity ModelIface) (int32, error)
	DeleteById(pkey int32) error
	//Save(entity *model.SubsysDict) (int32, error)
	//Update(entity *model.SubsysDict) (int32, error)
	UpdateNotNull(pkey int32, maps map[string]interface{}) (int32, error)
	UpdateMap(pkey int32, maps map[string]interface{}) (int32, error)
	//FindById(pkey int32) (entity *model.SubsysDict, found bool, err error)
	//FindByIds(pks string) (*[]model.SubsysDict, error)
	Query(param *page.PageRequest) *page.PageResult
	Count(param *page.PageRequest) (int, error)
}

type Factroy

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

func NewFactroy

func NewFactroy() *Factroy

func (*Factroy) Get

func (this *Factroy) Get(key string) (DaoIface, bool)

func (*Factroy) Register

func (this *Factroy) Register(key string, web DaoIface)

Jump to

Keyboard shortcuts

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