package
Version:
v0.0.0-...-61bc911
Opens a new window with list of versions in this module.
Published: Apr 19, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Claims struct {
Role string `json:"role"`
jwt.RegisteredClaims
}
type ClaimsRefresh struct {
Role string `json:"role"`
UserId uint `json:"user_id"`
jwt.RegisteredClaims
}
type RefreshToken struct {
RefreshToken string `json:"refresh_token" binding:"required"`
}
type User struct {
gorm.Model
Name string `json:"name,omitempty"`
Email string `gorm:"unique" json:"email" binding:"required"`
Password string `json:"password" binding:"required"`
Role string `json:"role"`
}
type UserPatch struct {
Name string `json:"name" binding:"required"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.