dao

package
v0.0.0-...-1f4ee57 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Dao *dao = &dao{}

原本是个单独模块,但是考虑到数据库必须初始化,所以合进来了 其实init主要就是配置文件数据库连接,可以理解为init放进dao

Functions

func DBNotNil

func DBNotNil(db **gorm.DB)

func GetDao

func GetDao(ctx *contexti.Ctx) *userDao

Types

This section is empty.

Jump to

Keyboard shortcuts

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