mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-12 18:11:34 +08:00
21 lines
447 B
Go
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))
|
|
})
|
|
}
|