mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-04 10:13:53 +08:00
29 lines
416 B
Go
29 lines
416 B
Go
package team
|
|
|
|
import (
|
|
"context"
|
|
"reflect"
|
|
|
|
"github.com/eolinker/go-common/autowire"
|
|
)
|
|
|
|
const (
|
|
accessGroup = "team"
|
|
)
|
|
|
|
type ITeamPermitModule interface {
|
|
Permissions(ctx context.Context, teamId string) ([]string, error)
|
|
}
|
|
|
|
func init() {
|
|
var m *imlTeamPermitModule
|
|
|
|
autowire.Auto[ITeamPermitModule](func() reflect.Value {
|
|
if m == nil {
|
|
m = new(imlTeamPermitModule)
|
|
}
|
|
return reflect.ValueOf(m)
|
|
})
|
|
|
|
}
|