result

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

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 {
	// List serve get key result list by page and size
	List(ctx contextx.Contextx, page, size int) (krs []*okr.Result, err error)

	// GetByID serve caller use key result to get key result by id
	GetByID(ctx contextx.Contextx, id string) (kr *okr.Result, err error)

	// GetByGoalID serve caller use goal id to get key results
	GetByGoalID(ctx contextx.Contextx, id string) (krs []*okr.Result, err error)

	// LinkToGoal serve caller link a key result to goal via id
	LinkToGoal(ctx contextx.Contextx, created *okr.Result) (kr *okr.Result, err error)

	// ModifyTitle serve caller to modify title of result
	ModifyTitle(ctx contextx.Contextx, id, title string) (result *okr.Result, err error)

	// Delete serve caller to delete a key result by id
	Delete(ctx contextx.Contextx, id string) (err error)
}

IBiz declare key result biz service function

func CreateIBiz

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

func NewImpl

func NewImpl(logger *zap.Logger, repo repo.IRepo) 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