controller

package
v0.0.0-...-36d6084 Latest Latest
Warning

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

Go to latest
Published: May 20, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

func Login(c *gin.Context)

func Register

func Register(c *gin.Context)

func SendCode

func SendCode(c *gin.Context)

func WxCreateWallet

func WxCreateWallet(c *gin.Context)

func WxDoTransfer

func WxDoTransfer(c *gin.Context)

func WxGetDot

func WxGetDot(c *gin.Context)

func WxGetDotAndRp

func WxGetDotAndRp(c *gin.Context)

func WxGetDotLog

func WxGetDotLog(c *gin.Context)

func WxGetDotLogDetail

func WxGetDotLogDetail(c *gin.Context)

func WxGetRp

func WxGetRp(c *gin.Context)

func WxGetWallet

func WxGetWallet(c *gin.Context)

func WxLockWallet

func WxLockWallet(c *gin.Context)

func WxLogin

func WxLogin(c *gin.Context)

func WxUnlockWallet

func WxUnlockWallet(c *gin.Context)

Types

type LoginRequest

type LoginRequest struct {
	Password   string `form:"password" json:"password" binding:"required"`
	Phone      string `form:"phone" json:"phone" binding:"required"`
	VerifyCode string `form:"verify_code" json:"verify_code"`
}

type RegisterRequest

type RegisterRequest struct {
	Name     string `form:"name" json:"name" binding:"required"`
	Password string `form:"password" json:"password" binding:"required"`
	Phone    string `form:"phone" json:"phone" binding:"required"`
	Code     string `form:"code" json:"code" binding:"required"`
}

type SendCodeRequest

type SendCodeRequest struct {
	Phone string `form:"phone" json:"phone" binding:"required"`
}

type SendCodeResponse

type SendCodeResponse struct {
}

type WxLoginRequest

type WxLoginRequest struct {
	Code          string `json:"code" form:"code" binding:"required"`
	EncryptedData string `json:"encrypted_data" form:"encrypted_data" binding:"required"`
	Iv            string `json:"iv" form:"iv" binding:"required"`
}

type WxTransferRequest

type WxTransferRequest struct {
	ToAccount string `json:"to_account" form:"to_account" binding:"required"`
	Amount    string `json:"amount" form:"amount" binding:"required"`
	Memo      string `json:"memo" form:"memo" binding:"required"`
	Passcode  string `json:"passcode" form:"passcode" binding:"required"`
}

Jump to

Keyboard shortcuts

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