controllers

package
v0.0.0-...-7e9a881 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CodeSystembusy          = CodeType{-1, "System is busy", defaultStatus, ""}
	CodeSuccess             = CodeType{0, "Success", defaultStatus, "OK"}
	CodeIlgmediafiletype    = CodeType{40003, "illegal media file type  ", defaultStatus, ""}
	CodeIlgfiletype         = CodeType{40004, "illegal file type  ", defaultStatus, ""}
	CodeFilesize            = CodeType{40005, "illegal file size  ", defaultStatus, ""}
	CodeImagesize           = CodeType{40006, "illegal image file size  ", defaultStatus, ""}
	CodeVoicesize           = CodeType{40007, "illegal voice file size  ", defaultStatus, ""}
	CodeVideosize           = CodeType{40008, "illegal video file size  ", defaultStatus, ""}
	CodeRequestformat       = CodeType{40009, "illegal request format  ", defaultStatus, ""}
	CodeThumbnailfilesize   = CodeType{400010, "illegal thumbnail file size  ", defaultStatus, ""}
	CodeUrllength           = CodeType{400011, "illegal URL length  ", defaultStatus, ""}
	CodeMultimediafileempty = CodeType{400012, "The multimedia file is empty  ", defaultStatus, ""}
	CodePostpacketempty     = CodeType{400013, "POST packet is empty ", defaultStatus, ""}
	CodeContentempty        = CodeType{400014, "The content of the graphic message is empty. ", defaultStatus, ""}
	CodeTextcmpty           = CodeType{400015, "text message content is empty ", defaultStatus, ""}
	CodeMultimediasizelimit = CodeType{400016, "multimedia file size exceeds limit ", defaultStatus, ""}
	CodeParamNotNull        = CodeType{400017, "Param  message content exceeds limit ", defaultStatus, ""}
	CodeParamOutRange       = CodeType{400018, "Param out of range ", defaultStatus, ""}
	CodeParam               = CodeType{400019, "Param error ", defaultStatus, ""}
	CodeParamNotExists      = CodeType{400020, "Param is exists  ", defaultStatus, ""}
	CodeParamType           = CodeType{400021, "Param type error ", defaultStatus, ""}
	CodeParamKeyConflict    = CodeType{400022, "Param Keyword conflict error ", defaultStatus, ""}
	CodeRecordExists        = CodeType{400023, "Record already exists  ", defaultStatus, ""}
	CodeRecordNotExists     = CodeType{400024, "Record not exists error  ", defaultStatus, ""}
	CodeNewRecordNotRelease = CodeType{400025, "New Record not Release error ", defaultStatus, ""}
	CodeReleaseRule         = CodeType{400026, "Release rule error  ", defaultStatus, ""}
	CodeDeleteRule          = CodeType{400027, "Delete Record  delete rule error  ", defaultStatus, ""}
	CodeHelpDirNotExists    = CodeType{400028, "Help parentdir  not exists error  ", defaultStatus, ""}

	CodeDBfinderr     = CodeType{400029, "DB find error   ", defaultStatus, ""}
	CodeDBcreateerr   = CodeType{400030, "DB create error  ", defaultStatus, ""}
	CodeDBupdateerr   = CodeType{400031, "DB update error  ", defaultStatus, ""}
	CodeDBdeleteerr   = CodeType{400032, "DB delete error  ", defaultStatus, ""}
	CodeDBopertionerr = CodeType{400033, "DB opertion error  ", defaultStatus, ""}
	CodeJsonformaterr = CodeType{400034, "Json format error  ", defaultStatus, ""}
	CodeBodyformaterr = CodeType{400035, "Body format error  ", defaultStatus, ""}

	CodeFileNotExists         = CodeType{400036, "File not exists", defaultStatus, ""}
	CodeFileExists            = CodeType{400037, "File already exists", defaultStatus, ""}
	CodeFileFormatNotSupports = CodeType{400038, "File format is not supported", defaultStatus, ""}
	CodeFileCreated           = CodeType{400039, "Create File is not supported ", defaultStatus, ""}
	CodeFileOpen              = CodeType{400039, "Open File is not supported", defaultStatus, ""}
	CodeCheckParam            = CodeType{400040, "Param error: ", defaultStatus, ""}
	CodeGenerateMine          = CodeType{400041, "new miner generate faile ", defaultStatus, ""}
	CodeImportMine            = CodeType{400042, "import miner faile   ", defaultStatus, ""}
	CodeBooltype              = CodeType{400043, "bool type error  ", defaultStatus, ""}

	CodeUpdateRule               = CodeType{400044, "rule error  ", defaultStatus, ""}
	CodePermissionDenied         = CodeType{400045, "Permission denied  ", defaultStatus, ""}
	CodeNotMineDevidBindActiveid = CodeType{400046, "not mine devid boind Activeid  ", defaultStatus, ""}
	CodeSignError                = CodeType{400047, "sign err ", defaultStatus, ""}
)
View Source
var LogoDir = "./logodir/"
View Source
var UploadDir = "./upload/"

Functions

func CommonTransactionSearch

func CommonTransactionSearch(c *gin.Context)

@tags common_transaction_search @Description common_transaction_search @Summary common_transaction_search @Accept json @Produce json @Success 200 {string} json "{"code":200,"data":{"id":1,"name":"admin","alias":"","email":"admin@block.vc","password":"","roles":[],"openid":"","active":true,"is_admin":true},"message":"success"}}" @Router /auth/admin/{id} [get]

func DaoVoteDetailSearchHandler

func DaoVoteDetailSearchHandler(c *gin.Context)

func DashboardGetToken

func DashboardGetToken(c *gin.Context)

func EcosystemSearchHandler

func EcosystemSearchHandler(c *gin.Context)

func GenResponse

func GenResponse(c *gin.Context, head *RequestHead, body *ResponseBoby)

GenResponse genrate reponse ,json format

func Get15DayGasFeeChartHandler

func Get15DayGasFeeChartHandler(c *gin.Context)

func GetAccountActiveChartHandler

func GetAccountActiveChartHandler(c *gin.Context)

func GetAccountActiveListHandler

func GetAccountActiveListHandler(c *gin.Context)

func GetAccountChangeChartHandler

func GetAccountChangeChartHandler(c *gin.Context)

func GetAccountDetailBasisEcosystem

func GetAccountDetailBasisEcosystem(c *gin.Context)

func GetAccountDetailBasisTokenChange

func GetAccountDetailBasisTokenChange(c *gin.Context)

func GetAccountDetailEcosystem

func GetAccountDetailEcosystem(c *gin.Context)

@tags @Description @Summary Find a list of all currencies under the account @Accept json @Produce json @Success 200 {string} json "{"code":200,"data":{"id":1,"name":"admin","alias":"","email":"admin@block.vc","password":"","roles":[],"openid":"","active":true,"is_admin":true},"message":"success"}}" @Router /api/get_wallettotal [post]

func GetAccountDetailNftMinerHandler

func GetAccountDetailNftMinerHandler(c *gin.Context)

func GetAccountList

func GetAccountList(c *gin.Context)

func GetAccountListChartHandler

func GetAccountListChartHandler(c *gin.Context)

func GetAccountTokenChangeHandler

func GetAccountTokenChangeHandler(c *gin.Context)

func GetAccountTotalAmountChart

func GetAccountTotalAmountChart(c *gin.Context)

func GetAccountTransactionHistory

func GetAccountTransactionHistory(c *gin.Context)

@tags @Description @Summary @Accept json @Produce json @Success 200 {string} json "{"code":200,"data":{"id":1,"name":"admin","alias":"","email":"admin@block.vc","password":"","roles":[],"openid":"","active":true,"is_admin":true},"message":"success"}}" @Router /auth/admin/{id} [get]

func GetAccountTxChart

func GetAccountTxChart(c *gin.Context)

func GetAccountTxCountHandler

func GetAccountTxCountHandler(c *gin.Context)

func GetAmountChangeBarChart

func GetAmountChangeBarChart(c *gin.Context)

func GetAmountChangePieChart

func GetAmountChangePieChart(c *gin.Context)

func GetBlockDetailTxList

func GetBlockDetailTxList(c *gin.Context)

func GetBlockDetails

func GetBlockDetails(c *gin.Context)

@tags block detial @Description block detial @Summary block detial @Accept json @Produce json @Success 200 {string} json "{"code":200,"data":{"id":1,"name":"admin","alias":"","email":"admin@block.vc","password":"","roles":[],"openid":"","active":true,"is_admin":true},"message":"success"}}" @Router /auth/admin/{id} [get]

func GetBlockList

func GetBlockList(c *gin.Context)

func GetBlockListChart

func GetBlockListChart(c *gin.Context)

func GetBlockNumberHandler

func GetBlockNumberHandler(c *gin.Context)

func GetBlockSizeChartHandler

func GetBlockSizeChartHandler(c *gin.Context)

func GetBlockSizeListHandler

func GetBlockSizeListHandler(c *gin.Context)

func GetBlockTpsLists

func GetBlockTpsLists(c *gin.Context)

func GetContractTxDetailListHandler

func GetContractTxDetailListHandler(c *gin.Context)

func GetDaoVoteChartHandler

func GetDaoVoteChartHandler(c *gin.Context)

func GetDaoVoteListHandler

func GetDaoVoteListHandler(c *gin.Context)

func GetDashboard

func GetDashboard(c *gin.Context)

GetDashboard godoc @Summary get dashboard @Description get dashboard statistical data @Tags accounts @Accept json @Produce json @Success 200 {object} Response{data=models.ScanOutRet} code:0 @Failure 200 {object} Response{data=models.ScanOutRet} code:1 @Router /api/v2/dashboard [get]

func GetDashboardChartHandler

func GetDashboardChartHandler(c *gin.Context)

func GetEcoActiveKeyChartHandler

func GetEcoActiveKeyChartHandler(c *gin.Context)

func GetEcoGasFeeChartHandler

func GetEcoGasFeeChartHandler(c *gin.Context)

func GetEcoNewKeyChartHandler

func GetEcoNewKeyChartHandler(c *gin.Context)

func GetEcoStorageCapacityChartHandler

func GetEcoStorageCapacityChartHandler(c *gin.Context)

func GetEcoTopTenHasTokenChartHandler

func GetEcoTopTenHasTokenChartHandler(c *gin.Context)

func GetEcoTopTenTxAccountChartHandler

func GetEcoTopTenTxAccountChartHandler(c *gin.Context)

func GetEcoTransactionChartHandler

func GetEcoTransactionChartHandler(c *gin.Context)

func GetEcoTxAmountChartHandler

func GetEcoTxAmountChartHandler(c *gin.Context)

func GetEcosystemAppExportHandler

func GetEcosystemAppExportHandler(c *gin.Context)

func GetEcosystemAppHandler

func GetEcosystemAppHandler(c *gin.Context)

func GetEcosystemAttachmentExportHandler

func GetEcosystemAttachmentExportHandler(c *gin.Context)

func GetEcosystemAttachmentHandler

func GetEcosystemAttachmentHandler(c *gin.Context)

func GetEcosystemBasis

func GetEcosystemBasis(c *gin.Context)

func GetEcosystemCirculationsChartHandler

func GetEcosystemCirculationsChartHandler(c *gin.Context)

func GetEcosystemDatabaseHandler

func GetEcosystemDatabaseHandler(c *gin.Context)

func GetEcosystemDetailInfoHandler

func GetEcosystemDetailInfoHandler(c *gin.Context)

func GetEcosystemDetailMemberHandler

func GetEcosystemDetailMemberHandler(c *gin.Context)

func GetEcosystemDetailTokenHandler

func GetEcosystemDetailTokenHandler(c *gin.Context)

func GetEcosystemDetailTxHandler

func GetEcosystemDetailTxHandler(c *gin.Context)

func GetEcosystemGovernModelChartHandler

func GetEcosystemGovernModelChartHandler(c *gin.Context)

func GetEcosystemList

func GetEcosystemList(c *gin.Context)

func GetEcosystemParam

func GetEcosystemParam(c *gin.Context)

func GetGasCombustionLineChartHandler

func GetGasCombustionLineChartHandler(c *gin.Context)

func GetGasCombustionPieChartHandler

func GetGasCombustionPieChartHandler(c *gin.Context)

func GetHistoryNewEcosystemHandler

func GetHistoryNewEcosystemHandler(c *gin.Context)

func GetHonorNodeLists

func GetHonorNodeLists(c *gin.Context)

GetHonorNodeLists params: body ?body={"page":1,"limit":10,"order":"newest"} GET

func GetHonorNodeMapHandler

func GetHonorNodeMapHandler(c *gin.Context)

func GetLatestDaoVotingHandler

func GetLatestDaoVotingHandler(c *gin.Context)

func GetMapInfo

func GetMapInfo(c *gin.Context)

func GetMaxBlockId

func GetMaxBlockId(c *gin.Context)

func GetMultiFeeEcosystemChartHandler

func GetMultiFeeEcosystemChartHandler(c *gin.Context)

func GetNewCirculationsChartHandler

func GetNewCirculationsChartHandler(c *gin.Context)

func GetNewEcosystemChartListHandler

func GetNewEcosystemChartListHandler(c *gin.Context)

func GetNewKeysHandler

func GetNewKeysHandler(c *gin.Context)

func GetNftMinerFileHandler

func GetNftMinerFileHandler(c *gin.Context)

func GetNftMinerMapHandler

func GetNftMinerMapHandler(c *gin.Context)

func GetNftMinerMetaverse

func GetNftMinerMetaverse(c *gin.Context)

func GetNftMinerMetaverseList

func GetNftMinerMetaverseList(c *gin.Context)

func GetNftMinerRegionHandler

func GetNftMinerRegionHandler(c *gin.Context)

func GetNftMinerStakeInfoHandler

func GetNftMinerStakeInfoHandler(c *gin.Context)

func GetNftMinerTxInfoHandler

func GetNftMinerTxInfoHandler(c *gin.Context)

func GetNodeBlockListHandler

func GetNodeBlockListHandler(c *gin.Context)

func GetNodeContributionChartHandler

func GetNodeContributionChartHandler(c *gin.Context)

func GetNodeContributionListHandler

func GetNodeContributionListHandler(c *gin.Context)

func GetNodeDaoVoteListHandler

func GetNodeDaoVoteListHandler(c *gin.Context)

func GetNodeMap

func GetNodeMap(c *gin.Context)

func GetNodeRegionChartHandler

func GetNodeRegionChartHandler(c *gin.Context)

func GetNodeStakingChartHandler

func GetNodeStakingChartHandler(c *gin.Context)

func GetNodeStakingHistoryHandler

func GetNodeStakingHistoryHandler(c *gin.Context)

func GetNodeStatisticalChangeHandler

func GetNodeStatisticalChangeHandler(c *gin.Context)

func GetNodeTransactionListHandler

func GetNodeTransactionListHandler(c *gin.Context)

func GetNodeVoteChartHandler

func GetNodeVoteChartHandler(c *gin.Context)

func GetNodeVoteHistoryHandler

func GetNodeVoteHistoryHandler(c *gin.Context)

func GetPlatformEcosystemParam

func GetPlatformEcosystemParam(c *gin.Context)

func GetRedisKey

func GetRedisKey(c *gin.Context)

@tags ecosystem @Description ecosystem @Summary ecosystem @Accept json @Produce json @Success 200 {string} json "{"code":200,"data":{"id":1,"name":"admin","alias":"","email":"admin@block.vc","password":"","roles":[],"openid":"","active":true,"is_admin":true},"message":"success"}}" @Router /auth/admin/{id} [get]

func GetStakingAccountHandler

func GetStakingAccountHandler(c *gin.Context)

func GetTokenEcosystemRatioHandler

func GetTokenEcosystemRatioHandler(c *gin.Context)

func GetTopTenEcosystemTxHandler

func GetTopTenEcosystemTxHandler(c *gin.Context)

func GetTopTenMaxKeysEcosystemHandler

func GetTopTenMaxKeysEcosystemHandler(c *gin.Context)

func GetTransactionDetails

func GetTransactionDetails(c *gin.Context)

@tags @Description @Summary @Accept json @Produce json @Success 200 {string} json "{"code":200,"data":{"id":1,"name":"admin","alias":"","email":"admin@block.vc","password":"","roles":[],"openid":"","active":true,"is_admin":true},"message":"success"}}" @Router /auth/admin/{id} [get]

func GetTransactionHead

func GetTransactionHead(c *gin.Context)

func GetTxChartHandler

func GetTxChartHandler(c *gin.Context)

func GetTxListChart

func GetTxListChart(c *gin.Context)

func GetTxListHandler

func GetTxListHandler(c *gin.Context)

func GetUtxoInputsHandler

func GetUtxoInputsHandler(c *gin.Context)

func GetUtxoTransactionDetails

func GetUtxoTransactionDetails(c *gin.Context)

func Get_Find_Ecosytemhistory

func Get_Find_Ecosytemhistory(c *gin.Context)

@tags @Description @Summary @Accept json @Produce json @Success 200 {string} json "{"code":200,"data":{"id":1,"name":"admin","alias":"","email":"admin@block.vc","password":"","roles":[],"openid":"","active":true,"is_admin":true},"message":"success"}}" @Router /auth/admin/{id} [get]

func Get_Find_history

func Get_Find_history(c *gin.Context)

@tags @Description @Summary @Accept json @Produce json @Success 200 {string} json "{"code":200,"data":{"id":1,"name":"admin","alias":"","email":"admin@block.vc","password":"","roles":[],"openid":"","active":true,"is_admin":true},"message":"success"}}" @Router /auth/admin/{id} [get]

func Get_transaction

func Get_transaction(c *gin.Context)

@tags @Description @Summary @Accept json @Produce json @Success 200 {string} json "{"code":200,"data":{"id":1,"name":"admin","alias":"","email":"admin@block.vc","password":"","roles":[],"openid":"","active":true,"is_admin":true},"message":"success"}}" @Router /auth/admin/{id} [get]

func Get_transaction_block

func Get_transaction_block(c *gin.Context)

@tags @Description @Summary @Accept json @Produce json @Success 200 {string} json "{"code":200,"data":{"id":1,"name":"admin","alias":"","email":"admin@block.vc","password":"","roles":[],"openid":"","active":true,"is_admin":true},"message":"success"}}" @Router /auth/admin/{id} [get]

func Get_transaction_details

func Get_transaction_details(c *gin.Context)

@tags @Description @Summary @Accept json @Produce json @Success 200 {string} json "{"code":200,"data":{"id":1,"name":"admin","alias":"","email":"admin@block.vc","password":"","roles":[],"openid":"","active":true,"is_admin":true},"message":"success"}}" @Router /auth/admin/{id} [get]

func Get_transaction_history

func Get_transaction_history(c *gin.Context)

@tags @Description @Summary @Accept json @Produce json @Success 200 {string} json "{"code":200,"data":{"id":1,"name":"admin","alias":"","email":"admin@block.vc","password":"","roles":[],"openid":"","active":true,"is_admin":true},"message":"success"}}" @Router /auth/admin/{id} [get]

func IndentedJsonResponse

func IndentedJsonResponse(c *gin.Context, body any)

IndentedJsonResponse Json Format

func JsonResponse

func JsonResponse(c *gin.Context, body *Response)

func NewNftMinerHandler

func NewNftMinerHandler(c *gin.Context)

func NftMinerEnergyPowerChangeHandler

func NftMinerEnergyPowerChangeHandler(c *gin.Context)

func NftMinerHistoryInfoHandler

func NftMinerHistoryInfoHandler(c *gin.Context)

func NftMinerInfoHandler

func NftMinerInfoHandler(c *gin.Context)

func NftMinerIntervalHandler

func NftMinerIntervalHandler(c *gin.Context)

func NftMinerIntervalListHandler

func NftMinerIntervalListHandler(c *gin.Context)

func NftMinerRegionListHandler

func NftMinerRegionListHandler(c *gin.Context)

func NftMinerRewardHandler

func NftMinerRewardHandler(c *gin.Context)

func NftMinerStakedChangeHandler

func NftMinerStakedChangeHandler(c *gin.Context)

func NodeDetailHandler

func NodeDetailHandler(c *gin.Context)

func NodeListSearchHandler

func NodeListSearchHandler(c *gin.Context)

func PureJsonResponse

func PureJsonResponse(c *gin.Context, body *Response)

func SearchHash

func SearchHash(c *gin.Context)

Types

type AccountAmountChangeRequest

type AccountAmountChangeRequest struct {
	Ecosystem int64  `json:"ecosystem"`
	Wallet    string `json:"wallet"`
	StartTime int64  `json:"startTime"`
	EndTime   int64  `json:"endTime"`
	IsDefault int    `json:"is_default"`
}

type BlockPriceInfo

type BlockPriceInfo struct {
	Name           string  `json:"name"`
	Symbol         string  `json:"symbol"`
	Price          float32 `json:"price"`
	High           float32 `json:"high"`
	Low            float32 `json:"low"`
	Hist_high      float32 `json:"hist_high"`
	Hist_low       float32 `json:"hist_low"`
	Timestamps     int64   `json:"timestamps"`
	Volume         float32 `json:"volume"`
	Display_volume float32 `json:"display_volume"`
	Usd_volume     float32 `json:"usd_volume"`
	Change_hourly  float32 `json:"change_hourly"`
	Change_daily   float32 `json:"change_daily"`
	Change_weekly  float32 `json:"change_weekly"`
	Change_monthly float32 `json:"change_monthly"`
}

type BlockccdataInfo

type BlockccdataInfo struct {
	Code    string `json:"code"`
	Message string `json:"message"`
	Data    string `json:"data"`
}

type CodeType

type CodeType struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Status  int    `json:"status"`
	Msg     string `json:"msg"`
}

func (CodeType) Errorf

func (ct CodeType) Errorf(err error) CodeType

func (CodeType) String

func (ct CodeType) String(dat string) CodeType

func (CodeType) Success

func (ct CodeType) Success() CodeType

type DBWebInfo

type DBWebInfo struct {
	Id         string `json:"id,omitempty"`
	Nodename   string `yaml:"nodename" json:"nodename"`
	IconUrl    string `yaml:"icon_url" json:"icon_url"`
	Name       string `json:"name,omitempty"`
	Engine     string `json:"engine,omitempty"`
	Version    string `json:"backend_version,omitempty"`
	APIAddress string `json:"api_address,omitempty"`
}

type DashboardNumInfo

type DashboardNumInfo struct {
	MaxBlockID       int64 `json:"max_block_id"`
	MaxEcosystemID   int64 `json:"max_ecosystem_id"`
	MaxTransactionID int64 `json:"max_Transaction_id"`
	MaxNodeID        int64 `json:"max_node_id"`
}

type DashboardTopInfo

type DashboardTopInfo struct {
	Title  string `json:"title"`
	Number int64  `json:"number"`
	Icon   string `json:"icon"`
	Color  string `json:"color"`
}

type DataBaseFind

type DataBaseFind struct {
	Cmd          string `json:"cmd,omitempty"`
	Page_size    int    `json:"page_size,omitempty"`
	Current_page int    `json:"current_page,omitempty"`
	Database_id  string `json:"database_id,omitempty"`
	Ecosystem    int64  `json:"ecosystem,omitempty"`
	Wallet       string `json:"wallet,omitempty"`
	SearchType   string `json:"searchType,omitempty"`
	Block_id     int64  `json:"block_id,omitempty"`
	Table_name   string `json:"table_name,omitempty"`
	NodePosition int64  `json:"nodeposition,omitempty"`
	Hash         string `json:"hash,omitempty"`
	Where        string `json:"where"`                             //
	Order        string `json:"order" example:"date_created desc"` //
	Page         int    `json:"page"`                              //
	Limit        int    `json:"limit"`                             //
}

type DataBaseRespone

type DataBaseRespone struct {
	Cmd           string          `json:"cmd"`
	Page_size     int             `json:"page_size"`
	Current_page  int             `json:"current_page"`
	Ret_data_type string          `json:"ret_data_type,omitempty"`
	NodePosition  int64           `json:"nodeposition"`
	Wallet        string          `json:"wallet,omitempty"`
	Ecosystem     int64           `json:"ecosystem,omitempty"`
	Block_id      int64           `json:"database_id,omitempty"`
	Table_name    string          `json:"table_name,omitempty"`
	Order         string          `json:"order,omitempty"`
	Hash          string          `json:"hash,omitempty"`
	Total         int             `json:"total"`
	Sum           decimal.Decimal `json:"sum,omitempty"`
	Data          any             `json:"data,omitempty"`
	Ret           string          `json:"ret,omitempty"`
	Retcode       int             `json:"retcode,omitempty"`
	Retinfo       string          `json:"retinfo,omitempty"`
}

type EcosytemTranscationHistoryFind

type EcosytemTranscationHistoryFind struct {
	Ecosystem int64          `json:"ecosystem"`
	Wallet    string         `json:"wallet"`
	Search    string         `json:"search"`
	Where     map[string]any `json:"where"`
	Order     string         `json:"order"`
	Page      int            `json:"page"`
	Limit     int            `json:"limit"`
	ReqType   int            `json:"type"`
	AppId     int64          `json:"app_id"`
	Hash      string         `json:"hash"`
}

type FindForm

type FindForm struct {
	Where map[string]any `json:"where"`                             //
	Order string         `json:"order" example:"date_created desc"` //
	Page  int            `json:"page"`                              //
	Limit int            `json:"limit"`                             //
}

type GeneralRequest

type GeneralRequest struct {
	Search    any            `json:"search"`
	Page      int            `json:"page"`
	Limit     int            `json:"limit"`
	Order     string         `json:"order"`
	Where     map[string]any `json:"where"`
	StartTime int64          `json:"startTime"`
	EndTime   int64          `json:"endTime"`
	Language  string         `json:"language"`
}

type RequestHead

type RequestHead struct {
	Version   string ` json:"version"`
	Msgtype   string `json:"msgtype"`
	Interface string `json:"interface"`
	Remark    string `json:"remark"`
}

type RequestParams

type RequestParams struct {
	Cmd          string `json:"cmd,omitempty"`
	PageSize     int    `json:"page_size,omitempty"`
	CurrentPage  int    `json:"current_page,omitempty"`
	DatabaseId   string `json:"database_id,omitempty"`
	Ecosystem    int64  `json:"ecosystem,omitempty"`
	Wallet       string `json:"wallet,omitempty"`
	SearchType   string `json:"searchType,omitempty"`
	Block_id     int64  `json:"block_id,omitempty"`
	Table_name   string `json:"table_name,omitempty"`
	NodePosition int64  `json:"nodeposition,omitempty"`
	Where        string `json:"where,omitempty"`
	Hash         string `json:"hash,omitempty"`
	Order        string `json:"order,omitempty"`
}

type ResObject

type ResObject struct{}

type Response

type Response struct {
	Code    int    `json:"code" `
	Data    any    `json:"data" `
	Message string `json:"message" `
}

func (*Response) Return

func (r *Response) Return(dat any, ct CodeType)

func (*Response) ReturnFailureString

func (r *Response) ReturnFailureString(str string)

type ResponseBoby

type ResponseBoby struct {
	Cmd          string          `json:"cmd,omitempty"`
	PageSize     int             `json:"page_size,omitempty"`
	CurrentPage  int             `json:"current_page,omitempty"`
	RetDataType  string          `json:"ret_data_type,omitempty"`
	NodePosition int64           `json:"nodeposition,omitempty"`
	Wallet       string          `json:"wallet,omitempty"`
	Ecosystem    int64           `json:"ecosystem,omitempty"`
	Block_id     int64           `json:"database_id,omitempty"`
	TableName    string          `json:"table_name,omitempty"`
	Order        string          `json:"order,omitempty"`
	Hash         string          `json:"hash,omitempty"`
	Total        int64           `json:"total,omitempty"`
	Sum          decimal.Decimal `json:"sum,omitempty"`
	Data         any             `json:"data,omitempty"`
	Ret          string          `json:"ret,omitempty"`
	Retcode      int             `json:"retcode,omitempty"`
	Retinfo      string          `json:"retinfo,omitempty"`
}

type WebRequest

type WebRequest struct {
	Head   *RequestHead   ` json:"head"`
	Params *RequestParams ` json:"params"`
}

type WebResponse

type WebResponse struct {
	Head *RequestHead  ` json:"head"`
	Body *ResponseBoby ` json:"body"`
}

Jump to

Keyboard shortcuts

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