-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathassetLocalMint.go
45 lines (42 loc) · 1.87 KB
/
assetLocalMint.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package models
import (
"gorm.io/gorm"
)
type AssetLocalMint struct {
gorm.Model
AssetVersion string `json:"asset_version" gorm:"type:varchar(255)"`
AssetType string `json:"asset_type" gorm:"type:varchar(255)"`
Name string `json:"name" gorm:"type:varchar(255)"`
AssetMetaData string `json:"asset_meta_data"`
AssetMetaType string `json:"asset_meta_type" gorm:"type:varchar(255)"`
AssetMetaHash string `json:"asset_meta_hash" gorm:"type:varchar(255)"`
Amount int `json:"amount"`
NewGroupedAsset bool `json:"new_grouped_asset"`
GroupKey string `json:"group_key" gorm:"type:varchar(255)"`
GroupAnchor string `json:"group_anchor" gorm:"type:varchar(255)"`
GroupedAsset bool `json:"grouped_asset"`
BatchKey string `json:"batch_key" gorm:"type:varchar(255)"`
BatchTxid string `json:"batch_txid" gorm:"type:varchar(255)"`
AssetId string `json:"asset_id" gorm:"type:varchar(255)"`
DeviceId string `json:"device_id" gorm:"type:varchar(255)"`
UserId int `json:"user_id"`
Username string `json:"username" gorm:"type:varchar(255)"`
Status int `json:"status" gorm:"default:1"`
}
type AssetLocalMintSetRequest struct {
AssetVersion string `json:"asset_version"`
AssetType string `json:"asset_type"`
Name string `json:"name"`
AssetMetaData string `json:"asset_meta_data"`
AssetMetaType string `json:"asset_meta_type"`
AssetMetaHash string `json:"asset_meta_hash"`
Amount int `json:"amount"`
NewGroupedAsset bool `json:"new_grouped_asset"`
GroupKey string `json:"group_key"`
GroupAnchor string `json:"group_anchor"`
GroupedAsset bool `json:"grouped_asset"`
BatchKey string `json:"batch_key"`
BatchTxid string `json:"batch_txid"`
AssetId string `json:"asset_id"`
DeviceId string `json:"device_id"`
}