package store

import (
	"context"

	v1 "github.com/pingcap-inc/pchub/model/v1"
)

type DepartmentStore interface {
	ListAll(ctx context.Context) (*v1.DepartmentList, error)
	Sync(ctx context.Context, news, updates []*v1.Department, delIds []uint64) error
	GetByLarkID(ctx context.Context, larkID string) (*v1.Department, error)
	List(ctx context.Context, pid, excludes string, precision int) ([]*v1.Department, error)
	GetChainByLarkID(ctx context.Context, larkID string) (*[]v1.Department, error)
}
