asset

package
v2.0.0-...-d37b9fa Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2024 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	models.UUID
	models.Base
	UserId        string       `json:"user_id,omitempty"`
	Symbol        string       `json:"symbol,omitempty"`
	TotalBalance  types.Amount `json:"total_balance,omitempty"`
	FreezeBalance types.Amount `json:"freeze_balance,omitempty"`
	AvailBalance  types.Amount `json:"avail_balance,omitempty"`
}

type AssetFreeze

type AssetFreeze struct {
	models.Base
	UserId       string                `json:"user_id"`
	Symbol       string                `json:"symbol"`
	Amount       string                `json:"amount"`
	FreezeAmount string                `json:"freeze_amount"`
	Status       entities.FreezeStatus `json:"status"`
	TransId      string                `json:"trans_id"`
	FreezeType   entities.FreezeType   `json:"freeze_type"`
	Info         string                `json:"info"`
}

type AssetLog

type AssetLog struct {
	models.Base
	UserId        string                   `json:"user_id"`
	Symbol        string                   `json:"symbol"`
	BeforeBalance string                   `json:"before_balance"` // 变动前
	Amount        string                   `json:"amount"`         // 变动数
	AfterBalance  string                   `json:"after_balance"`  // 变动后
	TransID       string                   `json:"trans_id"`
	ChangeType    entities.AssetChangeType `json:"change_type"`
	Info          string                   `json:"info"`
}

type CreateAsset

type CreateAsset struct {
	UserId        string        `json:"user_id,omitempty"`
	Symbol        string        `json:"symbol,omitempty"`
	TotalBalance  *types.Amount `json:"total_balance,omitempty"`
	FreezeBalance *types.Amount `json:"freeze_balance,omitempty"`
	AvailBalance  *types.Amount `json:"avail_balance,omitempty"`
}

type CreateAssetFreeze

type CreateAssetFreeze struct {
	UserId       string                `json:"user_id"`
	Symbol       string                `json:"symbol"`
	Amount       string                `json:"amount"`
	FreezeAmount string                `json:"freeze_amount"`
	Status       entities.FreezeStatus `json:"status"`
	TransId      string                `json:"trans_id"`
	FreezeType   entities.FreezeType   `json:"freeze_type"`
	Info         string                `json:"info"`
}

type CreateAssetLog

type CreateAssetLog struct {
	UserId        string                   `json:"user_id"`
	Symbol        string                   `json:"symbol"`
	BeforeBalance string                   `json:"before_balance"` // 变动前
	Amount        string                   `json:"amount"`         // 变动数
	AfterBalance  string                   `json:"after_balance"`  // 变动后
	TransID       string                   `json:"trans_id"`
	ChangeType    entities.AssetChangeType `json:"change_type"`
	Info          string                   `json:"info"`
}

type UpdateAsset

type UpdateAsset struct {
	models.UUID
	UserId        *string       `json:"user_id,omitempty"`
	Symbol        *string       `json:"symbol,omitempty"`
	TotalBalance  *types.Amount `json:"total_balance,omitempty"`
	FreezeBalance *types.Amount `json:"freeze_balance,omitempty"`
	AvailBalance  *types.Amount `json:"avail_balance,omitempty"`
}

type UpdateAssetFreeze

type UpdateAssetFreeze struct {
	ID           int64                  `json:"id"`
	UserId       *string                `json:"user_id"`
	Symbol       *string                `json:"symbol"`
	Amount       *string                `json:"amount"`
	FreezeAmount *string                `json:"freeze_amount"`
	Status       *entities.FreezeStatus `json:"status"`
	TransId      *string                `json:"trans_id"`
	FreezeType   *entities.FreezeType   `json:"freeze_type"`
	Info         *string                `json:"info"`
}

type UpdateAssetLog

type UpdateAssetLog struct {
	ID            int64   `json:"id"`
	UserId        *string `json:"user_id"`
	Symbol        *string `json:"symbol"`
	BeforeBalance *string `json:"before_balance"` // 变动前
	Amount        *string `json:"amount"`         // 变动数
	AfterBalance  *string `json:"after_balance"`  // 变动后
	TransID       *string `json:"trans_id"`
}

Jump to

Keyboard shortcuts

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