service

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(
	NewGreetingService,
)

Functions

This section is empty.

Types

type GreetingService

type GreetingService interface {
	GetList(pageIndex int, pageSize int) (greetingList []*model.Greeting, total int64, err error)
	GetAll() (greetingList []*model.Greeting, err error)
	GetDetail(id uint) (greeting *model.Greeting, err error)
	Create(greeting *model.Greeting) (err error)
	Update(greeting *model.Greeting) (err error)
	Delete(id uint) (err error)
}

func NewGreetingService

func NewGreetingService(db *gorm.DB) GreetingService

Jump to

Keyboard shortcuts

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