result

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 given result's id to get result
	GetByID(ctx contextx.Contextx, id, goalID int64) (result *okr.Result, err error)

	// List serve caller to list all results
	List(ctx contextx.Contextx, goalID int64, page, size int) (results []*okr.Result, err error)

	// Create serve caller to create a result
	Create(ctx contextx.Contextx, goalID int64, title string, target int) (result *okr.Result, err error)

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

	// ChangeTarget serve caller to change the result's target
	ChangeTarget(ctx contextx.Contextx, id int64, goalID int64, target int) (result *okr.Result, err error)

	// ChangeActual serve caller to change the result's actual
	ChangeActual(ctx contextx.Contextx, id int64, goalID int64, actual int) (result *okr.Result, err error)

	// Delete serve caller to delete a result by id
	Delete(ctx contextx.Contextx, id int64, goalID int64) error
}

IBiz declare result 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