Files
APIPark/service/setting/setting.go
T
2024-10-17 12:00:19 +08:00

21 lines
447 B
Go

package setting
import (
"context"
"reflect"
"github.com/eolinker/go-common/autowire"
)
type ISettingService interface {
Get(ctx context.Context, name string) (value string, has bool)
Set(ctx context.Context, name string, value string, operator string) error
All(ctx context.Context) (map[string]string, error)
}
func init() {
autowire.Auto[ISettingService](func() reflect.Value {
return reflect.ValueOf(new(imlSettingService))
})
}