mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
23 lines
359 B
Go
23 lines
359 B
Go
package system
|
|
|
|
import (
|
|
"reflect"
|
|
|
|
"github.com/eolinker/go-common/autowire"
|
|
"github.com/eolinker/go-common/store"
|
|
)
|
|
|
|
type IAPIKeyStore interface {
|
|
store.ISearchStore[APIKey]
|
|
}
|
|
|
|
type imlAPIKeyStore struct {
|
|
store.SearchStore[APIKey]
|
|
}
|
|
|
|
func init() {
|
|
autowire.Auto[IAPIKeyStore](func() reflect.Value {
|
|
return reflect.ValueOf(new(imlAPIKeyStore))
|
|
})
|
|
}
|