生成表结构、
This commit is contained in:
33
internal/service/admin.go
Normal file
33
internal/service/admin.go
Normal file
@ -0,0 +1,33 @@
|
||||
// ================================================================================
|
||||
// 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 (
|
||||
IAdmin interface {
|
||||
Login(ctx context.Context, in *model.AdminLoginIn) (out *model.LoginOut, err error)
|
||||
Info(ctx context.Context, in *model.AdminInfoIn) (out *model.AdminInfoOut, err error)
|
||||
}
|
||||
)
|
||||
|
||||
var (
|
||||
localAdmin IAdmin
|
||||
)
|
||||
|
||||
func Admin() IAdmin {
|
||||
if localAdmin == nil {
|
||||
panic("implement not found for interface IAdmin, forgot register?")
|
||||
}
|
||||
return localAdmin
|
||||
}
|
||||
|
||||
func RegisterAdmin(i IAdmin) {
|
||||
localAdmin = i
|
||||
}
|
||||
Reference in New Issue
Block a user