...
|
...
|
@@ -3,6 +3,7 @@ package dto |
|
|
import "gitlab.fjmaimaimai.com/allied-creation/allied-creation-user/pkg/domain"
|
|
|
|
|
|
type BlockChain struct {
|
|
|
UpChainId int64 `json:"upChainId"`
|
|
|
PrimaryId string `json:"primaryId"`
|
|
|
// 数据块hash
|
|
|
BlockHash string `json:"blockHash"`
|
...
|
...
|
@@ -13,6 +14,7 @@ type BlockChains []*BlockChain |
|
|
func (b *BlockChain) LoadDto(upChain *domain.UpChain) {
|
|
|
b.PrimaryId = upChain.PrimaryId
|
|
|
b.BlockHash = upChain.Hash
|
|
|
b.UpChainId = upChain.UpChainId
|
|
|
}
|
|
|
|
|
|
func NewBlockChains(upChains []*domain.UpChain) BlockChains {
|
...
|
...
|
|