models

package
v0.0.0-...-fcce97e Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	gorm.Model `json:"model"`
	Username   string `json:"username"`
	// Password field is not exported
	Password string `json:"password"`
	Name     string `json:"name"`
	Email    string `json:"email"`
}

func (*User) BeforeUpdate

func (u *User) BeforeUpdate(scope *gorm.Scope) (err error)

BeforeUpdate : hook before a user is updated

func (*User) GeneratePassword

func (u *User) GeneratePassword()

Jump to

Keyboard shortcuts

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