mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 04:34:23 -06:00
490a787d9d
* Chore: Move tem member models to team pkg * Fix test lint
19 lines
445 B
Go
19 lines
445 B
Go
package teamguardian
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/grafana/grafana/pkg/services/team"
|
|
"github.com/grafana/grafana/pkg/services/user"
|
|
)
|
|
|
|
type TeamGuardian interface {
|
|
CanAdmin(context.Context, int64, int64, *user.SignedInUser) error
|
|
DeleteByUser(context.Context, int64) error
|
|
}
|
|
|
|
type Store interface {
|
|
GetTeamMembers(context.Context, team.GetTeamMembersQuery) ([]*team.TeamMemberDTO, error)
|
|
DeleteByUser(context.Context, int64) error
|
|
}
|