Skip to content

Commit 55746d2

Browse files
Fix: state JSON
1 parent e19eb04 commit 55746d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

state/state.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import (
66

77
// State -
88
type State struct {
9-
IndexName string `gorm:"primaryKey"`
10-
IndexType string
11-
Hash string
12-
Level uint64
9+
IndexName string `gorm:"primaryKey" json:"index_name"`
10+
IndexType string `json:"index_type"`
11+
Hash string `json:"hash,omitempty"`
12+
Level uint64 `json:"level"`
1313
}
1414

1515
// TableName -

0 commit comments

Comments
 (0)