model

package
v0.0.0-...-c90bac2 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginUser

type LoginUser struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type NewUser

type NewUser struct {
	Role     string `json:"role"`
	Username string `json:"username"`
	Password string `json:"password"`
	Fullname string `json:"fullname"`
	Email    string `json:"email"`
	Phone    string `json:"phone"`
}

type RefreshTokenData

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

type TokenData

type TokenData struct {
	Role     string `json:"role"`
	Username string `json:"username"`
}

type User

type User struct {
	ID          string `json:"id"`
	Role        string `json:"role"`
	Username    string `json:"username"`
	Password    string `json:"password"`
	Fullname    string `json:"fullname"`
	Email       string `json:"email"`
	Phone       string `json:"phone"`
	CreatedAt   string `json:"createdAt"`
	UpdatedAt   string `json:"updatedAt"`
	LastLoginAt string `json:"lastLoginAt"`
}

Jump to

Keyboard shortcuts

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