This repository has been archived on 2022-10-02. You can view files and clone it, but cannot push or open issues or pull requests.
2020-06-26 18:30:25 +00:00
|
|
|
package group
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2021-07-17 15:22:36 +00:00
|
|
|
"github.com/tribalwarshelp/dcbot/model"
|
2020-06-26 18:30:25 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Repository interface {
|
2021-07-17 15:22:36 +00:00
|
|
|
Store(ctx context.Context, group *model.Group) error
|
|
|
|
StoreMany(ctx context.Context, groups []*model.Group) error
|
|
|
|
Update(ctx context.Context, group *model.Group) error
|
|
|
|
Delete(ctx context.Context, filter *model.GroupFilter) ([]*model.Group, error)
|
|
|
|
GetByID(ctx context.Context, id int) (*model.Group, error)
|
|
|
|
Fetch(ctx context.Context, filter *model.GroupFilter) ([]*model.Group, int, error)
|
2020-06-26 18:30:25 +00:00
|
|
|
}
|