dao

package
v0.0.0-...-8af7e35 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 6 Imported by: 0

README

Dao

  • 数据访问层(mysql,redis...)
  • daoimpl依赖dao

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewDao, NewXGorm)

ProviderSet is DAO providers.

Functions

func NewRedisClient

func NewRedisClient(c *conf.Data) (*redis.Client, func(), error)

func NewXGorm

func NewXGorm(c *conf.Data) (*xgorm.XGorm, func(), error)

Types

type DAO

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

func NewDao

func NewDao(db *xgorm.XGorm) *DAO

func (*DAO) CreateSpeakLog

func (d *DAO) CreateSpeakLog(ctx context.Context, log *types.SpeakLog) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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