mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
25 lines
630 B
Go
25 lines
630 B
Go
package application_authorization
|
|
|
|
import (
|
|
"context"
|
|
"reflect"
|
|
|
|
"github.com/APIParkLab/APIPark/service/universally"
|
|
"github.com/eolinker/go-common/autowire"
|
|
)
|
|
|
|
type IAuthorizationService interface {
|
|
universally.IServiceGet[Authorization]
|
|
universally.IServiceDelete
|
|
universally.IServiceCreate[Create]
|
|
universally.IServiceEdit[Edit]
|
|
ListByApp(ctx context.Context, appId ...string) ([]*Authorization, error)
|
|
CountByApp(ctx context.Context, appId ...string) (map[string]int64, error)
|
|
}
|
|
|
|
func init() {
|
|
autowire.Auto[IAuthorizationService](func() reflect.Value {
|
|
return reflect.ValueOf(new(imlAuthorizationService))
|
|
})
|
|
}
|