Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountController ¶
type AccountController struct {
beego.Controller
}
Operations about Account
func (*AccountController) CreateAccount ¶
func (a *AccountController) CreateAccount()
@Title Create account @Param owneraddress body string true @Param accountaddress body string true @router /create [post]
func (*AccountController) Get ¶
func (a *AccountController) Get()
@Title Get account @Description get account by address @Param address path string true "The key for staticblock" @Success 200 {account} models.Account @Failure 403 :address is empty @router /address/:address [get]
func (*AccountController) NetMessage ¶
func (a *AccountController) NetMessage()
@Title Get account net message @Description get account net message by address @Param address path string true @Success 200 {accountnetmessage} models.AccountNetMessage @Failure 403 :address is empty @router /net-message/address/:address [get]
type AssetIssueController ¶
type AssetIssueController struct {
beego.Controller
}
Operations about asset issue
func (*AssetIssueController) Address ¶
func (i *AssetIssueController) Address()
@Title Get asset issue list @Description get asset issue list by account @Param address path string true @Success 200 {assetissuelist} models.AssetIssueList @Failure 403 :address is empty @router /address/:address [get]
func (*AssetIssueController) List ¶
func (i *AssetIssueController) List()
@Title Get asset issue list @Description get asset issue list @Success 200 {assetissuelist} models.AssetIssueList @router /list [get]
func (*AssetIssueController) Name ¶
func (i *AssetIssueController) Name()
@Title Get asset issue by name @Description get asset issue by name @Param name path string true @Success 200 {assetissue} models.AssetIssueContract @Failure 403 :name is empty @router /name/:name [get]
type BlockController ¶
type BlockController struct {
beego.Controller
}
Operations about Block
func (*BlockController) GetBlockByLimit ¶
func (b *BlockController) GetBlockByLimit()
@Title Get block list @Description Get block list @Param start path int64 true @Param end path int64 true @Success 200 {blocklist} models.BlockList @router /start/:start/end/:end [get]
func (*BlockController) Id ¶
func (b *BlockController) Id()
@Title Get block by id @Description Get block by id @Param id path string true @Success 200 {block} models.Block @router /id/:id [get]
func (*BlockController) LatestNum ¶
func (b *BlockController) LatestNum()
@Title Get block list @Description Get block list by latest num @Param num path int64 true @Success 200 {blocklist} models.BlockList @router /latest-num/:num [get]
func (*BlockController) Now ¶
func (b *BlockController) Now()
@Title Get now block @Description get now block account @Success 200 {block} models.Block @router /now [get]
func (*BlockController) Num ¶
func (b *BlockController) Num()
@Title Get block by num @Description Get block by num @Param num path int64 true @Success 200 {block} models.Block @router /num/:num [get]
type NodeController ¶
type NodeController struct {
beego.Controller
}
Operations about Node
func (*NodeController) List ¶
func (n *NodeController) List()
@Title Get node list @Description get node list @Success 200 {nodeList} []models.Node @router /list [get]
type NumberMessageController ¶
type NumberMessageController struct {
beego.Controller
}
Operations about Number Message
func (*NumberMessageController) NextMaintenanceTime ¶
func (n *NumberMessageController) NextMaintenanceTime()
@Title Get next maintenance time @Description Get next maintenance time @Success 200 {nextmaintenancetime} models.NumberMessage @router /next-maintenance-time [get]
func (*NumberMessageController) TotalTransaction ¶
func (n *NumberMessageController) TotalTransaction()
@Title Get total transaction @Description Get total transaction @Success 200 {totaltransaction} models.NumberMessage @router /total-transaction [get]
type ObjectController ¶
type ObjectController struct {
beego.Controller
}
Operations about object
func (*ObjectController) Delete ¶
func (o *ObjectController) Delete()
@Title Delete @Description delete the object @Param objectId path string true "The objectId you want to delete" @Success 200 {string} delete success! @Failure 403 objectId is empty @router /:objectId [delete]
func (*ObjectController) Get ¶
func (o *ObjectController) Get()
@Title Get @Description find object by objectid @Param objectId path string true "the objectid you want to get" @Success 200 {object} models.Object @Failure 403 :objectId is empty @router /:objectId [get]
func (*ObjectController) GetAll ¶
func (o *ObjectController) GetAll()
@Title GetAll @Description get all objects @Success 200 {object} models.Object @Failure 403 :objectId is empty @router / [get]
func (*ObjectController) Post ¶
func (o *ObjectController) Post()
@Title Create @Description create object @Param body body models.Object true "The object content" @Success 200 {string} models.Object.Id @Failure 403 body is empty @router / [post]
func (*ObjectController) Put ¶
func (o *ObjectController) Put()
@Title Update @Description update the object @Param objectId path string true "The objectid you want to update" @Param body body models.Object true "The body" @Success 200 {object} models.Object @Failure 403 :objectId is empty @router /:objectId [put]
type TransactionController ¶
type TransactionController struct {
beego.Controller
}
Operations about Transaction
func (*TransactionController) Id ¶
func (b *TransactionController) Id()
@Title Get transaction by id @Description Get transaction by id @Param id path string true @Success 200 {transaction} models.Transaction @router /id/:id [get]
type UserController ¶
type UserController struct {
beego.Controller
}
Operations about Users
func (*UserController) Delete ¶
func (u *UserController) Delete()
@Title Delete @Description delete the user @Param uid path string true "The uid you want to delete" @Success 200 {string} delete success! @Failure 403 uid is empty @router /:uid [delete]
func (*UserController) Get ¶
func (u *UserController) Get()
@Title Get @Description get user by uid @Param uid path string true "The key for staticblock" @Success 200 {object} models.User @Failure 403 :uid is empty @router /:uid [get]
func (*UserController) GetAll ¶
func (u *UserController) GetAll()
@Title GetAll @Description get all Users @Success 200 {object} models.User @router / [get]
func (*UserController) Login ¶
func (u *UserController) Login()
@Title Login @Description Logs user into the system @Param username query string true "The username for login" @Param password query string true "The password for login" @Success 200 {string} login success @Failure 403 user not exist @router /login [get]
func (*UserController) Logout ¶
func (u *UserController) Logout()
@Title logout @Description Logs out current logged in user session @Success 200 {string} logout success @router /logout [get]
func (*UserController) Post ¶
func (u *UserController) Post()
@Title CreateUser @Description create users @Param body body models.User true "body for user content" @Success 200 {int} models.User.Id @Failure 403 body is empty @router / [post]
func (*UserController) Put ¶
func (u *UserController) Put()
@Title Update @Description update the user @Param uid path string true "The uid you want to update" @Param body body models.User true "body for user content" @Success 200 {object} models.User @Failure 403 :uid is not int @router /:uid [put]
type WitnessController ¶
type WitnessController struct {
beego.Controller
}
Operations about Witness
func (*WitnessController) List ¶
func (w *WitnessController) List()
@Title Get witness list @Description get witness list @Success 200 {witnessList} []models.Witness @router /list [get]