goal

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: GPL-3.0 Imports: 8 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 {
	// Create serve user to create a objective
	Create(ctx contextx.Contextx, obj *okr.Objective) (*okr.Objective, error)

	// GetByID serve user to get a objective by id
	GetByID(ctx contextx.Contextx, id string) (*okr.Objective, error)

	// List serve user to list all objectives
	List(ctx contextx.Contextx, page, size int) ([]*okr.Objective, error)

	// Count serve user to count all objectives
	Count(ctx contextx.Contextx) (int, error)

	// Update serve user to update a objective
	Update(ctx contextx.Contextx, updated *okr.Objective) (*okr.Objective, error)

	// Delete serve user to delete a objective by id
	Delete(ctx contextx.Contextx, id string) error
}

IBiz declare objective biz service function

func CreateIBiz

func CreateIBiz(repo2 repo.IRepo) (IBiz, error)

func NewImpl

func NewImpl(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