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
Click to show internal directories.
Click to hide internal directories.