service

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: Apache-2.0 Imports: 5 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 interface {
	AddUser(user *entity.User) (err error)
	GetUser(id uint64) (user *entity.User, err error)
	GetAll() (user *[]entity.User, err error)
	DeleteUser(id uint64) (err error)
}

type UserServiceImpl

type UserServiceImpl struct {
	// add UserService, it means that the instance of UserServiceImpl can be found by UserService
	UserService
	// contains filtered or unexported fields
}

func (*UserServiceImpl) AddUser

func (s *UserServiceImpl) AddUser(user *entity.User) (err error)

func (*UserServiceImpl) DeleteUser

func (s *UserServiceImpl) DeleteUser(id uint64) (err error)

func (*UserServiceImpl) GetAll added in v0.6.0

func (s *UserServiceImpl) GetAll() (users *[]entity.User, err error)

func (*UserServiceImpl) GetUser

func (s *UserServiceImpl) GetUser(id uint64) (user *entity.User, err error)

Jump to

Keyboard shortcuts

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