accounts

package
v0.0.0-...-54cc154 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(auth app.AuthRepository, account app.AccountRepository) *service

Types

type Service

type Service interface {
	AuthLogin(ctx context.Context, in *app.LoginInput) (*app.Accounts, string, error)
	GetProfile(ctx context.Context, id string) (*app.Accounts, string, error)
	NewAccount(ctx context.Context, adminID string, roleName string, in *app.RegisterInput) error
	ListAccount(ctx context.Context, adminId string, roleName string) ([]app.Accounts, error)
	DeleteAccount(ctx context.Context, adminId string, roleName string, userID string, userName string) error
	GetAccessList(ctx context.Context) (app.AccessControl, error)
	NewAccessControlList(ctx context.Context, adminId string, roleAdmin string, control *app.AssignRole) error
}

func NewLoggingService

func NewLoggingService(logger *logrus.Entry, s Service) Service

NewLoggingService returns a new instance of a logging Service.

Jump to

Keyboard shortcuts

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