basedao

package
v0.0.0-...-63b2ac5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDb

func GetDb(ent DbEntity) (*gorm.DB, error)

func ToString

func ToString(e DbEntity) string

Types

type DbEntity

type DbEntity interface {
	fmt.Stringer
	xxdbsources.DbEntity
}

type Jsoner

type Jsoner interface {
	ToJson() string
}

type SimpleEntity

type SimpleEntity struct {
	// 记录id
	gormodel.ModelId

	// 记录操作时间
	gormodel.ModelTime
}

func (SimpleEntity) GetId

func (se SimpleEntity) GetId() gormodel.ModelId

func (SimpleEntity) GetModelTime

func (se SimpleEntity) GetModelTime() gormodel.ModelTime

Jump to

Keyboard shortcuts

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