userService

package
v0.0.0-...-533f09b Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErasePhoto

func ErasePhoto(i *tracer.Infos, email string) error

func Get

func Get(i *tracer.Infos, nickname string) (map[string]interface{}, error)

func UpdateImage

func UpdateImage(i *tracer.Infos, email string, file multipart.File) (string, error)

Types

type ChangePassword

type ChangePassword struct {
	OldPassword             string `json:"oldPass"`
	NewPassword             string `json:"newPass"`
	NewPasswordConfirmation string `json:"newPassConfirmation"`
	Email                   string
}

func (*ChangePassword) Do

func (c *ChangePassword) Do(i *tracer.Infos) error

func (*ChangePassword) Validate

func (c *ChangePassword) Validate(i *tracer.Infos) bool

type CreateUserService

type CreateUserService struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

func (*CreateUserService) Do

func (c *CreateUserService) Do(i *tracer.Infos) (string, error)

type Profile

type Profile struct {
	FirstName string `json:"firstName,omitempty"`
	LastName  string `json:"lastName,omitempty"`
	BirthDate string `json:"birthDate,omitempty"`
	Gender    int    `json:"gender,omitempty"`
	Register  int    `json:"register,omitempty"` //0 to student an 1 to teacher
	Nickname  string `json:"nickname,omitempty"`
}

func (*Profile) Do

func (p *Profile) Do(i *tracer.Infos, email string) error

Jump to

Keyboard shortcuts

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