mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
22 lines
449 B
Go
22 lines
449 B
Go
package ai
|
|
|
|
import (
|
|
"context"
|
|
"reflect"
|
|
|
|
"github.com/APIParkLab/APIPark/service/universally"
|
|
"github.com/eolinker/go-common/autowire"
|
|
)
|
|
|
|
type IProviderService interface {
|
|
universally.IServiceGet[Provider]
|
|
Save(ctx context.Context, id string, cfg *SetProvider) error
|
|
MaxPriority(ctx context.Context) (int, error)
|
|
}
|
|
|
|
func init() {
|
|
autowire.Auto[IProviderService](func() reflect.Value {
|
|
return reflect.ValueOf(new(imlProviderService))
|
|
})
|
|
}
|