models

package
v0.0.0-...-65a69d0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 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 URL

type URL struct {
	gorm.Model
	SrcId  string `form:"src" binding:"required" gorm:"unique;not null"`
	DstUrl string `form:"dst" binding:"required" gorm:"not null"`
	UserId int    `form:"userId" binding:"required" gorm:"not null"`
}

func (URL) Validate

func (url URL) Validate(db *gorm.DB)

type User

type User struct {
	gorm.Model
	Email             string `form:"email" binding:"required" gorm:"unique;not null"`
	EncryptedPassword string `form:"password" binding:"required"`
}

func (User) Validate

func (user User) Validate(db *gorm.DB)

Jump to

Keyboard shortcuts

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