• R/O
  • HTTP
  • SSH
  • HTTPS

vapor: Commit

Golang implemented sidechain for Bytom


Commit MetaInfo

Revision214d4d4e01b6a1cfe1824743bd2f151d5c3fd850 (tree)
Time2019-08-21 16:15:03
Authoriczc <iczcalan@gmai...>
Commitericzc

Log Message

adding json tag to chain struct

Change Summary

Incremental Difference

--- a/toolbar/federation/database/orm/chain.go
+++ b/toolbar/federation/database/orm/chain.go
@@ -5,10 +5,10 @@ import (
55 )
66
77 type Chain struct {
8- ID uint64 `gorm:"primary_key"`
9- Name string
10- BlockHeight uint64
11- BlockHash string
12- CreatedAt types.Timestamp
13- UpdatedAt types.Timestamp
8+ ID uint64 `gorm:"primary_key" json:"-"`
9+ Name string `json:"name"`
10+ BlockHeight uint64 `json:"block_height"`
11+ BlockHash string `json:"block_hash"`
12+ CreatedAt types.Timestamp `json:"-"`
13+ UpdatedAt types.Timestamp `json:"-"`
1414 }
Show on old repository browser