okr

package
v0.0.0-...-da91ef8 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const KrPrefix = "kr-"
View Source
const OPrefix = "o-"

Variables

This section is empty.

Functions

This section is empty.

Types

type FeishuOkrService

type FeishuOkrService struct {
	OTableID, KrTableID string
	FieldManager        *field.Manager
	RecordManager       *bitable.RecordManager
}

func NewFeishuOkrService

func NewFeishuOkrService(OTableID, KrTableID string, fm *field.Manager, rm *bitable.RecordManager) (*FeishuOkrService, error)

func (*FeishuOkrService) CreateKeyResult

func (f *FeishuOkrService) CreateKeyResult(ctx context.Context, keyResult model.KeyResult) (string, error)

func (*FeishuOkrService) CreateObjective

func (f *FeishuOkrService) CreateObjective(ctx context.Context, objective model.Objective) (string, error)

func (*FeishuOkrService) DeleteKeyResultByID

func (f *FeishuOkrService) DeleteKeyResultByID(ctx context.Context, id string) error

func (*FeishuOkrService) DeleteObjectiveByID

func (f *FeishuOkrService) DeleteObjectiveByID(ctx context.Context, oid string, krids []string) error

func (*FeishuOkrService) ListKeyResultsByOwner

func (f *FeishuOkrService) ListKeyResultsByOwner(ctx context.Context, username string, sortBy string, orderBy string) ([]model.KeyResult, error)

func (*FeishuOkrService) ListObjectivesByOwner

func (f *FeishuOkrService) ListObjectivesByOwner(ctx context.Context, username string, sortBy string, orderBy string) ([]model.Objective, error)

func (*FeishuOkrService) UpdateKeyResult

func (f *FeishuOkrService) UpdateKeyResult(ctx context.Context, keyResult model.KeyResult) error

func (*FeishuOkrService) UpdateObjective

func (f *FeishuOkrService) UpdateObjective(ctx context.Context, objective model.Objective) error

type Service

type Service interface {
	ListObjectivesByOwner(ctx context.Context, username string, sortBy string, orderBy string) ([]model.Objective, error)
	ListKeyResultsByOwner(ctx context.Context, username string, sortBy string, orderBy string) ([]model.KeyResult, error)
	CreateObjective(context.Context, model.Objective) (string, error)
	UpdateObjective(context.Context, model.Objective) error
	DeleteObjectiveByID(context.Context, string, []string) error
	CreateKeyResult(context.Context, model.KeyResult) (string, error)
	UpdateKeyResult(context.Context, model.KeyResult) error
	DeleteKeyResultByID(context.Context, string) error
}

Jump to

Keyboard shortcuts

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