adminsrv

package
v0.0.0-...-7e4f592 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdminServiceProvider = wire.NewSet(
	NewService,
	NewEmployeeService,
)

Functions

This section is empty.

Types

type EmployeeService

type EmployeeService interface {
	Register(ctx context.Context, req *model.EmployeeRegisterRequest) error
	Login(ctx context.Context, req *model.EmployeeLoginRequest) (resp *model.EmployeeLoginResponse, err error)
	FindByLoginName(ctx context.Context, loginName string) (employee *model.Employee, exists bool, err error)
}

func NewEmployeeService

func NewEmployeeService(service *Service, jwt *jwt.JWT) EmployeeService

type Service

type Service struct {
	*data.Data
}

func NewService

func NewService(data *data.Data) *Service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL