models

package
v0.0.0-...-6f676a1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoleType

type RoleType string
const (
	AdminRole  RoleType = "admin"
	NormalRole RoleType = "normal"
)

type UserModel

type UserModel struct {
	ID           bson.ObjectId           `bson:"_id,omitempty" json:"id"`
	Alias        string                  `json:"alias"`
	FirstName    encBson.EncryptedString `json:"first_name"`
	LastName     encBson.EncryptedString `json:"last_name"`
	Email        string                  `json:"email"`
	Password     string                  `bson:",omitempty" json:"-"`
	Role         RoleType                `json:"role"`
	CreationTime time.Time               `bson:",omitempty" json:"creation_time"`
	UpdateTime   time.Time               `json:"update_time"`
}

Jump to

Keyboard shortcuts

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