model

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2021 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 RequsetAuthGRPC

type RequsetAuthGRPC struct {
	Jwt   string        `json:"jwt"`
	Roles []helper.Role `json:"role"`
}

type UserClaims

type UserClaims struct {
	jwt.StandardClaims
	ID   primitive.ObjectID
	Time time.Time
}

type UserModel

type UserModel struct {
	ID       primitive.ObjectID `bson:"_id,omitempty"`
	Login    string             `bson:"login" json:"login"`
	Password string             `bson:"password" json:"password"`
	Role     helper.Role        `bson:"role" json:"role"`
}

Модель пользователя в БД

Jump to

Keyboard shortcuts

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