书籍列表接口新增参数
This commit is contained in:
34
internal/service/system.go
Normal file
34
internal/service/system.go
Normal file
@ -0,0 +1,34 @@
|
||||
// ================================================================================
|
||||
// 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
|
||||
}
|
||||
Reference in New Issue
Block a user