response

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 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 SignIn

type SignIn struct {
	Access  string `json:"access"`
	Refresh string `json:"refresh"`
}

SignIn struct to describe login response.

type User

type User struct {
	ID           int         `json:"id"`
	Email        string      `json:"email"`
	Fullname     string      `json:"fullname"`
	Phone        string      `json:"phone"`
	Token        interface{} `json:"token"`
	Status       string      `json:"status"`
	Avatar       interface{} `json:"avatar"`
	CreatedAt    time.Time   `json:"created_at"`
	UpdatedAt    time.Time   `json:"updated_at"`
	VerifiedAt   interface{} `json:"verified_at"`
	BlockedAt    interface{} `json:"blocked_at"`
	DeletedAt    interface{} `json:"deleted_at"`
	LastAccessAt interface{} `json:"last_access_at"`
}

User struct to describe User response. The instance should be created from models.User.ToResponse()

Jump to

Keyboard shortcuts

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