From 55746d262f8bc0f4c3c737b28019daec9093f948 Mon Sep 17 00:00:00 2001 From: Artem Date: Thu, 17 Jun 2021 17:25:42 +0300 Subject: [PATCH] Fix: state JSON --- state/state.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/state/state.go b/state/state.go index 373a1d5..610e5bc 100644 --- a/state/state.go +++ b/state/state.go @@ -6,10 +6,10 @@ import ( // State - type State struct { - IndexName string `gorm:"primaryKey"` - IndexType string - Hash string - Level uint64 + IndexName string `gorm:"primaryKey" json:"index_name"` + IndexType string `json:"index_type"` + Hash string `json:"hash,omitempty"` + Level uint64 `json:"level"` } // TableName -