// ================================================================================
// 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.AdminLoginOut, err error)
		Info(ctx context.Context, in *model.AdminInfoIn) (out *model.AdminInfoOut, err error)
		EditPass(ctx context.Context, in *model.AdminEditPassIn) (out *model.AdminEditPassOut, 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
}
