api

package
v0.0.0-...-e06075d Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockchainResponse

type BlockchainResponse struct {
	ID string `json:"id"`
}

BlockchainResponse define blockchain adapter response

type CallbackNotification

type CallbackNotification struct {
	Blockchain string `json:"blockchain"`
	ID         string `json:"id"`
	BlockNum   int64  `json:"block_num"`
	TxID       string `json:"tx_id"`
	Time       int64  `json:"time"`
}

CallbackNotification define blockchain callback notification

type CallbackResponse

type CallbackResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
}

CallbackResponse define blockchain callback response

type CreateAccountRequest

type CreateAccountRequest struct {
	AccountID string `json:"account_id" binding:"required"`
}

CreateAccountRequest define create account request

type PublicityRequest

type PublicityRequest struct {
	UID       string `json:"uid" binding:"required"`
	Publicity string `json:"publicity" binding:"required"`
}

PublicityRequest define publicity request

Jump to

Keyboard shortcuts

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