service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDemoService

func NewDemoService(demoRepo demo.Repository) demo.Service

Types

type DemoService

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

func (*DemoService) CreateDepartment

func (d *DemoService) CreateDepartment(data *model.Department) (model.DepartmentModelInterface, error)

func (*DemoService) CreateUser

func (d *DemoService) CreateUser(data *model.User) (model.UserModelInterface, error)

func (*DemoService) DeleteDepartment

func (d *DemoService) DeleteDepartment(data *model.Department) error

func (*DemoService) DeleteUser

func (d *DemoService) DeleteUser(data *model.User) error

func (*DemoService) GetDepartment

func (d *DemoService) GetDepartment(data *model.Department) (model.DepartmentModelInterface, error)

func (*DemoService) GetDepartmentList

func (d *DemoService) GetDepartmentList() ([]model.DepartmentModelInterface, error)

func (*DemoService) GetUser

func (d *DemoService) GetUser(data *model.User) (model.UserModelInterface, error)

func (*DemoService) GetUserList

func (d *DemoService) GetUserList() ([]model.UserModelInterface, error)

func (*DemoService) ModifyDepartment

func (d *DemoService) ModifyDepartment(data *model.Department) (model.DepartmentModelInterface, error)

func (*DemoService) ModifyUser

func (d *DemoService) ModifyUser(data *model.User) (model.UserModelInterface, error)

Jump to

Keyboard shortcuts

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