account

package
v0.0.0-...-b033284 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: Apache-2.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
}

Service represents the account application service

func NewAccountService

func NewAccountService(userRepo model.UserRepo, accountRepo model.AccountRepo, rbac model.RBACService, secret secret.Service) *Service

NewAccountService creates a new account application service

func (*Service) ChangePassword

func (s *Service) ChangePassword(c *gin.Context, oldPass, newPass string, id int) error

ChangePassword changes user's password

func (*Service) Create

func (s *Service) Create(c *gin.Context, u *model.User) error

Create creates a new user account

Jump to

Keyboard shortcuts

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