34 lines
810 B
Go
34 lines
810 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 (
|
|
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
|
|
}
|