entities

package
v0.0.0-...-e03766a Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserEntity

type UserEntity struct {
	Id        string
	Username  string
	Email     string
	Password  string
	CreatedAt time.Time
	UpdatedAt time.Time
}

func NewUserEntity

func NewUserEntity(data *dtos.UserDTO) (*UserEntity, *shared.Error)

func (*UserEntity) IsPasswordValid

func (user *UserEntity) IsPasswordValid(password string) *shared.Error

func (*UserEntity) IsValid

func (user *UserEntity) IsValid() *shared.Error

Jump to

Keyboard shortcuts

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