models

package
v0.0.0-...-ebbd881 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSpecialChar

func IsSpecialChar(str string) bool

func IsValidPassword

func IsValidPassword(password string) bool

Types

type ModelBase

type ModelBase struct {
	gorm.Model
}

type User

type User struct {
	Username    string    `json:"username"`
	FirstName   string    `json:"firstname"`
	LastName    string    `json:"lastname"`
	DisplayName string    `json:"displayName"`
	Email       string    `json:"email"`
	Password    string    `json:"password"`
	Status      string    `json:"status"`
	CreatedAt   time.Time `json:"createdAt"`
	UpdatedAt   time.Time `json:"updatedAt"`
	ID          int       `json:"id"`
}

type UserLogin

type UserLogin struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Role     string `json:"role"`
	ID       int    `json:"id"`
}

func (*UserLogin) IsValid

func (u *UserLogin) IsValid() bool

Jump to

Keyboard shortcuts

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