add collections endpoint to nfts

This commit is contained in:
Asim Aslam
2021-12-08 14:39:52 +00:00
parent 598872e839
commit c6a8286bae
6 changed files with 446 additions and 210 deletions

View File

@@ -1,9 +1,13 @@
package domain
type AssetResponse struct {
type AssetsResponse struct {
Assets []*Asset `json:"assets"`
}
type CollectionsResponse struct {
Collections []*Collection `json:"collections"`
}
type Asset struct {
Id int32 `json:"id"`
TokenId string `json:"token_id"`