mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-14 20:41:15 +08:00
28 lines
734 B
Go
28 lines
734 B
Go
package ai_balance
|
|
|
|
import (
|
|
"context"
|
|
"reflect"
|
|
|
|
"github.com/eolinker/go-common/autowire"
|
|
|
|
"github.com/APIParkLab/APIPark/service/universally"
|
|
)
|
|
|
|
type IBalanceService interface {
|
|
universally.IServiceGet[Balance]
|
|
universally.IServiceCreate[Create]
|
|
universally.IServiceEdit[Edit]
|
|
universally.IServiceDelete
|
|
MaxPriority(ctx context.Context) (int, error)
|
|
SortBefore(ctx context.Context, originID string, targetID string) ([]*Balance, error)
|
|
SortAfter(ctx context.Context, originID string, targetID string) ([]*Balance, error)
|
|
Exist(ctx context.Context, provider string, model string) (bool, error)
|
|
}
|
|
|
|
func init() {
|
|
autowire.Auto[IBalanceService](func() reflect.Value {
|
|
return reflect.ValueOf(new(imlBalanceService))
|
|
})
|
|
}
|