accountservice

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(account repoiface.AccountRepository) *Service

func (*Service) CheckPasswordByEmail

func (s *Service) CheckPasswordByEmail(ctx context.Context, email, password string) (int64, error)

func (*Service) CheckPasswordById

func (s *Service) CheckPasswordById(ctx context.Context, id int64, password string) (int64, error)

func (*Service) CheckPasswordByMobile

func (s *Service) CheckPasswordByMobile(ctx context.Context, mobile, password string) (int64, error)

func (*Service) Create

func (s *Service) Create(ctx context.Context, mobile, email, password string) (int64, error)

func (*Service) ModifyPassword

func (s *Service) ModifyPassword(ctx context.Context, id int64, oldPassword, newPassword string) error

Jump to

Keyboard shortcuts

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