43 lines
1.6 KiB
Go
43 lines
1.6 KiB
Go
// ================================================================================
|
|
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
|
// You can delete these comments if you wish manually maintain this interface file.
|
|
// ================================================================================
|
|
|
|
package service
|
|
|
|
import (
|
|
"context"
|
|
"server/internal/model"
|
|
)
|
|
|
|
type (
|
|
IStore interface {
|
|
List(ctx context.Context, in *model.StoreListIn) (out *model.StoreListOut, err error)
|
|
Create(ctx context.Context, in *model.StoreCreateIn) (out *model.CreateOut, err error)
|
|
Update(ctx context.Context, in *model.StoreUpdateIn) (out *model.UpdateOut, err error)
|
|
Delete(ctx context.Context, in *model.StoreDeleteIn) (out *model.DeleteOut, err error)
|
|
Info(ctx context.Context, in *model.StoreInfoIn) (out *model.StoreInfoOut, err error)
|
|
GetDesktopSetting(ctx context.Context, in *model.StoreGetDesktopSettingIn) (*model.StoreGetDesktopSettingOut, error)
|
|
GetIPList(ctx context.Context, in *model.IPListIn) (*model.IPListout, error)
|
|
CreateIP(ctx context.Context, in *model.IPCreateIn) (*model.IPCreateOut, error)
|
|
UpdateIP(ctx context.Context, in *model.IPUpdateIn) (*model.IPUpdateOut, error)
|
|
DeleteIP(ctx context.Context, in *model.IPDeleteIn) (*model.IPDeleteOut, error)
|
|
Detail(ctx context.Context, in *model.StoreDetailIn) (out *model.StoreDetailOut, err error)
|
|
}
|
|
)
|
|
|
|
var (
|
|
localStore IStore
|
|
)
|
|
|
|
func Store() IStore {
|
|
if localStore == nil {
|
|
panic("implement not found for interface IStore, forgot register?")
|
|
}
|
|
return localStore
|
|
}
|
|
|
|
func RegisterStore(i IStore) {
|
|
localStore = i
|
|
}
|