35 lines
869 B
Go
35 lines
869 B
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 (
|
|
ISystem interface {
|
|
Unique(ctx context.Context, in *model.SystemUniqueInput) (*model.SystemOutput, error)
|
|
Version(ctx context.Context) (*model.SystemVersionOutput, error)
|
|
Save(ctx context.Context, in *model.SystemSaveInput) (err error)
|
|
}
|
|
)
|
|
|
|
var (
|
|
localSystem ISystem
|
|
)
|
|
|
|
func System() ISystem {
|
|
if localSystem == nil {
|
|
panic("implement not found for interface ISystem, forgot register?")
|
|
}
|
|
return localSystem
|
|
}
|
|
|
|
func RegisterSystem(i ISystem) {
|
|
localSystem = i
|
|
}
|