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 get goal by id GetByID(ctx contextx.Contextx, id int64) (info *okr.Goal, err error) // Create a goal Create(ctx contextx.Contextx, title string, startAt, endAt int64) (info *okr.Goal, err error) // List serve caller to list all goals List(ctx contextx.Contextx, page, size int) (infos []*okr.Goal, total int, err error) // ChangeTitle serve caller to change a goal's title ChangeTitle(ctx contextx.Contextx, id int64, title string) (info *okr.Goal, err error) // ChangeTimeRange serve caller to change a goal's start and end at ChangeTimeRange(ctx contextx.Contextx, id int64, startAt, endAt int64) (info *okr.Goal, err error) // Delete serve caller to delete a goal by id Delete(ctx contextx.Contextx, id int64) error }
IBiz declare goal service function
func CreateIBiz ¶
CreateIBiz serve caller to create an IBiz
Click to show internal directories.
Click to hide internal directories.