resource

package
v0.0.0-...-047630e Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: Apache-2.0 Imports: 4 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 {
	DB      *gorm.DB
	Context echo.Context
}

func NewUserResource

func NewUserResource(context echo.Context) *User

func (User) All

func (r User) All() ([]model.User, error)

func (User) Find

func (r User) Find(id string) (model.User, error)

func (User) FindByEmail

func (r User) FindByEmail(email string) (model.User, error)

Jump to

Keyboard shortcuts

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