daos

package
v0.0.0-...-969198b Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2017 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectDAO

type ProjectDAO struct {
	*gorm.DB
}

func NewProjectDAO

func NewProjectDAO(db *gorm.DB) *ProjectDAO

func (*ProjectDAO) Create

func (dao *ProjectDAO) Create(proj *models.Project) error

func (*ProjectDAO) GetAll

func (dao *ProjectDAO) GetAll() []*models.Project

func (*ProjectDAO) GetById

func (dao *ProjectDAO) GetById(id int32) (*models.Project, error)

type UserDao

type UserDao struct {
	*gorm.DB
}

func NewUserDao

func NewUserDao(db *gorm.DB) *UserDao

func (*UserDao) AddUser

func (dao *UserDao) AddUser(user *models.User) error

func (*UserDao) GetUserByEmail

func (dao *UserDao) GetUserByEmail(email string) *models.User

func (*UserDao) ModifyPassword

func (dao *UserDao) ModifyPassword(user *models.User) error

Jump to

Keyboard shortcuts

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