account

package
v0.0.0-...-2fc7590 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: MIT 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 account application service

func New

func New(adb model.AccountDB, udb model.UserDB, rbac model.RBACService) *Service

New creates new user 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, req *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