types

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Code generated by goctl. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCoinReq

type AddCoinReq struct {
	CoinName string `json:"coin_name"`
	Prec     int32  `json:"prec"`
	CoinId   int32  `json:"coin_id"`
}

type AddCoinResp

type AddCoinResp struct {
}

type AddErrorCodeReq

type AddErrorCodeReq struct {
	ErrorCodeName string `json:"error_code_name"`
	ErrorCodeId   int32  `json:"error_code_id"`
	Language      string `json:"language"`
}

type AddSymbolReq

type AddSymbolReq struct {
	BaseCoinID  uint32 `json:"base_coin_id"`
	QuoteCoinID int32  `json:"quote_coin_id"`
	SymbolId    int32  `json:"symbol_id"`
}

type AddSymbolResp

type AddSymbolResp struct {
}

type CoinInfo

type CoinInfo struct {
	ID       uint32 `json:"id"`
	CoinName string `json:"coin_name"`
	CoinId   int32  `json:"coin_id"`
	Prec     int32  `json:"prec"`
}

type Empty

type Empty struct {
}

type ErrorCode

type ErrorCode struct {
	Id            uint32 `json:"id"`
	ErrorCodeName string `json:"error_code_name"`
	ErrorCodeId   int32  `json:"error_code_id"`
	Language      string `json:"language"`
}

type GetCoinListReq

type GetCoinListReq struct {
	PageNo   int64 `form:"page_no"`
	PageSize int64 `form:"page_size"`
}

type GetCoinListResp

type GetCoinListResp struct {
	List  []*CoinInfo `json:"list"`
	Total int64       `json:"total"`
}

type GetErrorCodeListReq

type GetErrorCodeListReq struct {
	Language string `form:"language"`
}

type GetErrorCodeListResp

type GetErrorCodeListResp struct {
	List  []*ErrorCode `json:"list"`
	Total int64        `json:"total"`
}

type GetMatchListReq added in v1.2.0

type GetMatchListReq struct {
	PageNo   int64 `json:"page_no"`
	PageSize int64 `json:"page_size"`
}

type GetMatchListResp added in v1.2.0

type GetMatchListResp struct {
	List  []*MatchInfo `json:"list"`
	Total int64        `json:"total"`
}

type GetServiceConfigReq

type GetServiceConfigReq struct {
	Key string `json:"key"`
}

type GetServiceConfigResp

type GetServiceConfigResp struct {
	ConfigData string `json:"config_data"`
}

type GetSymbolListReq

type GetSymbolListReq struct {
	PageNo   int64 `form:"page_no"`
	PageSize int64 `form:"page_size"`
}

type GetSymbolListResp

type GetSymbolListResp struct {
	List  []*SymbolInfo `json:"list"`
	Total int64         `json:"total"`
}

type LoginReq

type LoginReq struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type LoginResp

type LoginResp struct {
	Token    string    `json:"token"`
	Expire   int64     `json:"expire"`
	UserInfo *UserInfo `json:"user_info"`
}

type MatchInfo added in v1.2.0

type MatchInfo struct {
	ID               int64           `json:"id"`
	MatchID          string          `json:"match_id"`
	SymbolID         int32           `json:"symbol_id"`
	SymbolName       string          `json:"symbol_name"`
	TotalQty         string          `json:"total_qty"`
	TotalAmount      string          `json:"total_amount"`
	AvgPrice         string          `json:"avg_price"`
	CreatedAt        int64           `json:"created_at"`
	SubMatchInfoList []*SubMatchInfo `json:"sub_match_info_list"`
}

type RegisterReq

type RegisterReq struct {
	Username        string `json:"username"`
	Password        string `json:"password"`
	ConfirmPassword string `json:"comfirm_password"`
}

type SubMatchInfo added in v1.2.0

type SubMatchInfo struct {
	TakerUserID int64  `json:"taker_user_id"`
	MakerUserID int64  `json:"maker_user_id"`
	MatchPrice  string `json:"match_price"`
	MatchQty    string `json:"match_qty"`
	MatchAmount string `json:"match_amount"`
	MatchTime   int64  `json:"match_time"`
}

type SymbolInfo

type SymbolInfo struct {
	ID            uint32 `json:"id"`
	SymbolName    string `json:"symbol_name"`
	SymbolId      int32  `json:"symbol_id"`
	BaseCoinID    uint32 `json:"base_coin_id"`
	BaseCoinName  string `json:"base_coin_name"`
	BaseCoinPrec  int32  `json:"base_coin_prec"`
	QuoteCoinID   int32  `json:"quote_coin_id"`
	QuoteCoinName string `json:"quote_coin_name"`
	QuotePrec     int32  `json:"quote_prec"`
}

type UpdateCoinReq

type UpdateCoinReq struct {
	ID       uint32 `json:"id"`
	CoinName string `json:"coin_name"`
	Prec     int32  `json:"prec"`
	CoinId   int32  `json:"coin_id"`
}

type UpdateErrorCodeReq

type UpdateErrorCodeReq struct {
	Id            uint32 `json:"id"`
	ErrorCodeName string `json:"error_code_name"`
	ErrorCodeId   int32  `json:"error_code_id"`
	Language      string `json:"language"`
}

type UpdateSymbolReq

type UpdateSymbolReq struct {
	SymbolName    string `json:"symbol_name"`
	BaseCoinID    uint32 `json:"base_coin_id"`
	BaseCoinName  string `json:"base_coin_name"`
	BaseCoinPrec  int32  `json:"base_coin_prec"`
	QuoteCoinID   int32  `json:"quote_coin_id"`
	QuoteCoinName string `json:"quote_coin_name"`
	QuotePrec     int32  `json:"quote_prec"`
}

type UpdateSymbolResp

type UpdateSymbolResp struct {
}

type UploadTemplateFileReq

type UploadTemplateFileReq struct {
	ServiceName string `form:"service_name"` //服务名
	Symbol      string `form:"symbol"`       //交易对
}

type UpsertServiceConfigReq

type UpsertServiceConfigReq struct {
	Key        string `json:"key"`         //交易对
	ConfigData string `json:"config_data"` //配置
}

type UserInfo

type UserInfo struct {
	Username string `json:"username"`
	UserId   uint32 `json:"user_id"`
}

Jump to

Keyboard shortcuts

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