services

package
v0.0.0-...-47332bf Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserService

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

UserService Service

func NewUserService

func NewUserService(dao userDAO) *UserService

NewUserService creates a new UserService with the given user DAO.

func (*UserService) Create

func (userService *UserService) Create(user *models.User) error

Create create new user by userDAO

func (*UserService) Get

func (userService *UserService) Get(id uint) (*models.User, error)

Get just retrieves one user using User DAO

func (*UserService) GetAll

func (userService *UserService) GetAll() (*[]models.User, error)

GetAll return all the users

Jump to

Keyboard shortcuts

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