valueobject

package
v0.0.0-...-0c44e78 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 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 AuthPayload

type AuthPayload struct {
	AccessToken string
}

AuthPayload is a payload contains access token of customer

type AuthResponse

type AuthResponse struct {
	CustomerID uint64
	Expired    bool
}

AuthResponse is a response contains customer id and expired status of access token

type CustomerCredentials

type CustomerCredentials struct {
	CustomerID uint64
	Active     bool
	Password   string
}

CustomerCredentials contains customer credentials

type CustomerDeliveryInfo

type CustomerDeliveryInfo struct {
	Address     string
	PhoneNumber string
}

CustomerDeliveryInfo value object

type CustomerPersonalInfo

type CustomerPersonalInfo struct {
	FirstName string
	LastName  string
	Email     string
}

CustomerPersonalInfo value object

type JWTClaims

type JWTClaims struct {
	CustomerID uint64
	Refresh    bool
	jwt.RegisteredClaims
}

Jump to

Keyboard shortcuts

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