package store

import (
	"context"
	v1 "github.com/pingcap-inc/pinsights/model/v1"
)

type GroupStore interface {
	Create(ctx context.Context, group *v1.Group) error
	MCreate(ctx context.Context, groups *[]v1.Group) error
	Update(ctx context.Context, group *v1.Group) error
	DeleteByLarkDptID(ctx context.Context, larkdptid string) error
	MDelete(ctx context.Context, ids []uint64) error
	Sync(ctx context.Context, news *[]v1.Group, updates []*v1.Group, delIds []uint64) error
	List() (*v1.GroupList, error)
	ListLarkDpts() (*v1.GroupList, error)
}
