models

package
v0.0.0-...-d308771 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2019 License: MIT Imports: 3 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 {
	ID        int       `json:"id"`
	UID       uuid.UUID `json:"uuid"`
	Username  string    `json:"username" binding:"required"`
	Password  string    `json:"password" binding:"required"`
	Message   string    `json:"message"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

User "Object

func (*User) BeforeCreate

func (u *User) BeforeCreate(scope *gorm.Scope) error

BeforeCreate BeforeCreate

func (*User) BeforeUpdate

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

BeforeUpdate BeforeUpdate

Jump to

Keyboard shortcuts

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