response

package
v0.0.0-...-b79ed68 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReesponseUserData

type ReesponseUserData struct {
	User       interface{} `json:"user_data"`
	Credential interface{} `json:"credential"`
}

func ResponseUserDataFormatter

func ResponseUserDataFormatter(user interface{}, credential interface{}) ReesponseUserData

type ResponseCredential

type ResponseCredential struct {
	Token     string `json:"token"`
	UserID    uint   `json:"user_id"`
	Issuer    string `json:"issuer"`
	IssuedAt  int64  `json:"issued_at"`
	ExpiresAt int64  `json:"expired_at"`
}

type ResponseUser

type ResponseUser struct {
	ID             uint           `json:"id"`
	Username       string         `json:"username"`
	Email          string         `json:"email"`
	CreatedAt      time.Time      `json:"created_at"`
	UpdatedAt      time.Time      `json:"updated_at"`
	DeletedAt      gorm.DeletedAt `json:"deleted_at"`
	UserCredential interface{}    `json:"user_credential"`
}

func ResponseUserFormatter

func ResponseUserFormatter(user entity.Users) ResponseUser

Jump to

Keyboard shortcuts

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