model

package
v0.0.0-...-d595cb9 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: Apache-2.0 Imports: 7 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
	dberror.Errorable
	Username string
	Password string
	Email    string
	Roles    []*authorizedModel.Role `gorm:"many2many:user_roles;"`
}

func (*User) BeforeSave

func (u *User) BeforeSave(tx *gorm.DB) error

BeforeSave is used by callbacks.

Jump to

Keyboard shortcuts

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