dao

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Database

func Database(connString string) error

func InitDB

func InitDB()

func NewDBClient

func NewDBClient(ctx context.Context) *gorm.DB

Types

type UserDao

type UserDao struct {
	*gorm.DB
}

func NewUserDao

func NewUserDao(ctx context.Context) *UserDao

func (*UserDao) CreateUser

func (dao *UserDao) CreateUser(in *model.User) (err error)

CreateUser 创建用户

func (*UserDao) FindUserByUserName

func (dao *UserDao) FindUserByUserName(userName string) (r *model.User, err error)

Jump to

Keyboard shortcuts

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