models

package
v0.0.0-...-87bbeb5 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: MIT 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 {
	CommonModels.Base
	Email    string `gorm:"type:varchar(100);unique_index"`
	Name     string
	Role     common.UserRole
	Password string
	Blogs    []BlogModels.Blog
}

func (*User) BeforeSave

func (user *User) BeforeSave() (err error)

func (User) String

func (user User) String() string

Jump to

Keyboard shortcuts

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