dao

package
v0.0.0-...-45465e8 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: LGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package dao TODO:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProjectDao

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

func NewProjectDao

func NewProjectDao(db *gorm.DB) *ProjectDao

type Query

type Query struct {
	Limit   uint
	Offset  uint
	UserID  uint
	Email   string
	Address string
}

Query .

type UserDao

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

func NewUserDao

func NewUserDao(db *gorm.DB) *UserDao

func (*UserDao) GetUserByQuery

func (repo *UserDao) GetUserByQuery(query Query) (*models.User, error)

GetUserByQuery .

func (*UserDao) UpdateEmail

func (repo *UserDao) UpdateEmail(userID uint, email string) error

func (*UserDao) UserRegister

func (repo *UserDao) UserRegister(user *models.User) (*models.User, error)

UserRegister .

Jump to

Keyboard shortcuts

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