handler

package
v0.0.0-...-47d3968 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachHandler

func AttachHandler(g *gin.Engine, db *gorm.DB)

Types

type LoginRequest

type LoginRequest struct {
	Email    string `form:"email" binding:"required,email"`
	Password string `form:"password" binding:"required"`
}

type LoginResponseData

type LoginResponseData struct {
	UserID      uint   `json:"user_id"`
	WalletID    string `json:"wallet_id"`
	Fullname    string `json:"fullname"`
	Email       string `json:"email"`
	AccessToken string `json:"access_token"`
}

type RegisterRequest

type RegisterRequest struct {
	Fullname string `form:"fullname" binding:"required"`
	Email    string `form:"email" binding:"required,email"`
	Password string `form:"password" binding:"required"`
}

type UserHandler

type UserHandler struct {
	// contains filtered or unexported fields
}

func (*UserHandler) LoginPost

func (h *UserHandler) LoginPost(c *gin.Context)

func (*UserHandler) RegisterPost

func (h *UserHandler) RegisterPost(c *gin.Context)

Jump to

Keyboard shortcuts

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