正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
@@ -3,6 +3,7 @@ package dto | @@ -3,6 +3,7 @@ package dto | ||
3 | import "gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/domain" | 3 | import "gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/domain" |
4 | 4 | ||
5 | type BlockChain struct { | 5 | type BlockChain struct { |
6 | + UpChainId int64 `json:"upChainId"` | ||
6 | PrimaryId string `json:"primaryId"` | 7 | PrimaryId string `json:"primaryId"` |
7 | // 数据块hash | 8 | // 数据块hash |
8 | BlockHash string `json:"blockHash"` | 9 | BlockHash string `json:"blockHash"` |
@@ -13,6 +14,7 @@ type BlockChains []*BlockChain | @@ -13,6 +14,7 @@ type BlockChains []*BlockChain | ||
13 | func (b *BlockChain) LoadDto(upChain *domain.UpChain) { | 14 | func (b *BlockChain) LoadDto(upChain *domain.UpChain) { |
14 | b.PrimaryId = upChain.PrimaryId | 15 | b.PrimaryId = upChain.PrimaryId |
15 | b.BlockHash = upChain.Hash | 16 | b.BlockHash = upChain.Hash |
17 | + b.UpChainId = upChain.UpChainId | ||
16 | } | 18 | } |
17 | 19 | ||
18 | func NewBlockChains(upChains []*domain.UpChain) BlockChains { | 20 | func NewBlockChains(upChains []*domain.UpChain) BlockChains { |
-
请 注册 或 登录 后发表评论