token_nft

package
v0.0.1-alpha Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenNft

type TokenNft struct {
	Id              string   `json:"id" gorm:"id"`
	Who             string   `json:"who" gorm:"who"`
	TokenId         int64    `json:"tokenId" gorm:"token_id"`
	BusinessName    string   `json:"businessName" gorm:"business_name"`
	Description     string   `json:"description" gorm:"description"`
	ImgUrl          string   `json:"imgUrl" gorm:"img_url"`
	BusinessAddress string   `json:"businessAddress" gorm:"business_address"`
	WebSite         string   `json:"webSite" gorm:"web_site"`
	Social          string   `json:"social" gorm:"social"`
	ContractAddress string   `json:"contractAddress" gorm:"contract_address"`
	CostValue       *big.Int `json:"costValue" gorm:"serializer:u256;column:cost_value"`
	Deadline        uint64   `json:"deadline" gorm:"deadline"`
	NftType         int8     `json:"nftType" gorm:"nft_type"`
}

func (TokenNft) TableName

func (TokenNft) TableName() string

type TokenNftDB

type TokenNftDB interface {
	TokenNftView
	StoreTokenNft(token TokenNft) error
}

func NewTokenNftDB

func NewTokenNftDB(db *gorm.DB) TokenNftDB

type TokenNftView

type TokenNftView interface {
	List(pageNum, pageSize int, contractAddress, address string) ([]TokenNft, int)
	NftInfo(tokenId int) TokenNft
	NftDetail(businessAccount, deadline string) TokenNft
}

Jump to

Keyboard shortcuts

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