goal

package
v1.3.17 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

func CreateIBiz(logger *zap.Logger, repo2 repo.IRepo, node *snowflake.Node) (IBiz, error)

CreateIBiz serve caller to create an IBiz

func NewImpl

func NewImpl(logger *zap.Logger, repo repo.IRepo, node *snowflake.Node) IBiz

NewImpl serve caller to create an IBiz

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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