Discover Packages
github.com/glamostoffer/ValinorAuth
internal
model
package
Version:
v0.0.0-...-a051c0a
Opens a new window with list of versions in this module.
Published: Jun 2, 2024
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type SignInRequest struct {
Login string `json:"login"`
Password string `json:"password"`
}
type SignInResponse struct {
Token string `json:"token"`
}
type SignUpRequest struct {
Login string `json:"login"`
Password string `json:"password"`
}
type UpdateUserModel struct {
ID int64 `db:"id"`
Username *string `db:"username"`
Password *string `db:"password"`
}
type User struct {
ID int64 `db:"id"`
Username string `db:"username"`
Password string `db:"password_hashed"`
Role int `db:"role"`
CreatedAt time .Time `db:"created_at"`
UpdatedAt time .Time `db:"updated_at"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.