mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
22 lines
466 B
Go
22 lines
466 B
Go
package permit_identity
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
const (
|
|
SystemGroup = "system"
|
|
TeamGroup = "team"
|
|
)
|
|
|
|
type IdentityTeamService interface {
|
|
IdentifyTeam(ctx context.Context, team string, uid string) ([]string, error)
|
|
}
|
|
|
|
// type IdentityProjectService interface {
|
|
// IdentifyProject(ctx context.Context, project string, uid string) ([]string, error)
|
|
// }
|
|
type IdentitySystemService interface {
|
|
IdentifySystem(ctx context.Context, uid string) ([]string, error)
|
|
}
|