model

package
v0.0.0-...-7544200 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Role

type Role struct {
	Id      int    `json:id,omitempty`
	UserId  int    `json:userId,omitempty`
	Name    string `json:name,omitempty`
	IsAdmin bool   `json:isAdmin,omitempty`
	IsGod   bool   `json:IsGod,omitempty`
}

type Success

type Success struct {
	Ok bool `json:"ok"`
}

type Token

type Token struct {
	Token string `json:"token"`
}

type User

type User struct {
	Id         int     `json:"id,omitempty" sql:",pk"`
	Name       string  `json:"name,omitempty"`
	Email      string  `json:"email,omitempty"`
	Password   []uint8 `json:"-"`
	Role       *Role   `json:"role,omitempty"`
	IsFacebook bool    `json:"isFacebook"`
	IsGoogle   bool    `json:"isGoogle"`
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

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