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 caller to given task's id to get a task GetByID(ctx contextx.Contextx, id string) (task *todo.Task, err error) // List serve caller to list all tasks List(ctx contextx.Contextx, start, end int) (tasks []*todo.Task, total int, err error) // Create serve caller to create a task Create(ctx contextx.Contextx, title string) (task *todo.Task, err error) // UpdateStatus serve caller to update the task's status by id UpdateStatus(ctx contextx.Contextx, id string, status bool) (task *todo.Task, err error) // ChangeTitle serve caller to change the task's title by id ChangeTitle(ctx contextx.Contextx, id string, title string) (task *todo.Task, err error) // Delete serve caller to given task's id to delete the task Delete(ctx contextx.Contextx, id string) error }
IBiz describe todo business service function
Click to show internal directories.
Click to hide internal directories.