dao

package
v0.0.0-...-52cd3d9 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

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

func New

func New(engine *gorm.DB) *Dao

func (*Dao) UserGet

func (d *Dao) UserGet(userID uint64) (*model.User, *errcode.Error)

func (*Dao) UserLogin

func (d *Dao) UserLogin(username, password string) (*model.User, *errcode.Error)

func (*Dao) UserRegister

func (d *Dao) UserRegister(username, nickname, password string) *errcode.Error

Jump to

Keyboard shortcuts

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