service

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 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)
	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) GetUser

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

func (*UserServiceImpl) Init

func (s *UserServiceImpl) Init(repository gorm.Repository)

will inject BoltRepository that configured in github.com/hidevopsio/hiboot/pkg/starter/data/bolt

Jump to

Keyboard shortcuts

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