Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewImpl, repo.ProviderSet)
ProviderSet is a provider set for wire
Functions ¶
This section is empty.
Types ¶
type IBiz ¶
type IBiz interface { // GetByID serve user to get a task by id GetByID(ctx contextx.Contextx, id int64) (*todo.Task, error) // List serve user to list all tasks List(ctx contextx.Contextx, page, size int) ([]*todo.Task, error) // Create serve user to create a task Create(ctx contextx.Contextx, title string) (*todo.Task, error) // ModifyTitle serve user to modify title of task ModifyTitle(ctx contextx.Contextx, id int64, title string) (t *todo.Task, err error) // UpdateStatus serve user to update status of task UpdateStatus(ctx contextx.Contextx, id int64, status todo.Status) (t *todo.Task, err error) // Delete serve user to delete a task by id Delete(ctx contextx.Contextx, id int64) error }
IBiz declare todo biz service function
func CreateIBiz ¶
CreateIBiz serve caller to create an IBiz
Click to show internal directories.
Click to hide internal directories.