Documentation
¶
Index ¶
- Constants
- type FeishuOkrService
- func (f *FeishuOkrService) CreateKeyResult(ctx context.Context, keyResult model.KeyResult) (string, error)
- func (f *FeishuOkrService) CreateObjective(ctx context.Context, objective model.Objective) (string, error)
- func (f *FeishuOkrService) DeleteKeyResultByID(ctx context.Context, id string) error
- func (f *FeishuOkrService) DeleteObjectiveByID(ctx context.Context, oid string, krids []string) error
- func (f *FeishuOkrService) ListKeyResultsByOwner(ctx context.Context, username string, sortBy string, orderBy string) ([]model.KeyResult, error)
- func (f *FeishuOkrService) ListObjectivesByOwner(ctx context.Context, username string, sortBy string, orderBy string) ([]model.Objective, error)
- func (f *FeishuOkrService) UpdateKeyResult(ctx context.Context, keyResult model.KeyResult) error
- func (f *FeishuOkrService) UpdateObjective(ctx context.Context, objective model.Objective) error
- type Service
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 (*FeishuOkrService) CreateObjective ¶
func (*FeishuOkrService) DeleteKeyResultByID ¶
func (f *FeishuOkrService) DeleteKeyResultByID(ctx context.Context, id string) error
func (*FeishuOkrService) DeleteObjectiveByID ¶
func (*FeishuOkrService) ListKeyResultsByOwner ¶
func (*FeishuOkrService) ListObjectivesByOwner ¶
func (*FeishuOkrService) UpdateKeyResult ¶
func (*FeishuOkrService) UpdateObjective ¶
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 }
Click to show internal directories.
Click to hide internal directories.