Files
APIPark/service/setting/setting.go
T
2024-08-12 21:38:09 +08:00

20 lines
439 B
Go

package setting
import (
"context"
"github.com/eolinker/go-common/autowire"
"reflect"
)
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
}
func init() {
autowire.Auto[ISettingService](func() reflect.Value {
return reflect.ValueOf(new(imlSettingService))
})
}