domain

package
v0.0.0-...-d77a3c6 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	Id        int64  `json:"id"`
	FirstName string `json:"first_name"`
	LastName  string `json:"last_name"`
	Email     string `json:"email"`
}

type UserDao

type UserDao interface {
	GetUser(userId int64) (*User, *utils.AppError)
}

type UserDb

type UserDb struct{}

func NewUserDb

func NewUserDb() UserDb

func (UserDb) GetUser

func (db UserDb) GetUser(userId int64) (*User, *utils.AppError)

Jump to

Keyboard shortcuts

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