From 0e7f72c3e8b043efdda504b2c65e10d5b1de7833 Mon Sep 17 00:00:00 2001 From: yuyi Date: Tue, 24 Oct 2023 21:04:49 +0800 Subject: [PATCH] fix: typo gmt_create_time to gmt_create --- pkg/oceanbase/model/system.go | 2 +- pkg/oceanbase/model/tenant.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/oceanbase/model/system.go b/pkg/oceanbase/model/system.go index f61f8a91f..c84b4ed4a 100644 --- a/pkg/oceanbase/model/system.go +++ b/pkg/oceanbase/model/system.go @@ -33,7 +33,7 @@ type OBTenant struct { RecoveryUntilScn int64 `json:"recovery_until_scn" db:"recovery_until_scn"` LogMode string `json:"log_mode" db:"log_mode"` ArbitrationServiceStatus string `json:"arbitration_service_status" db:"arbitration_service_status"` - GmtCreateTime string `json:"gmt_create_time,omitempty" db:"gmt_create"` + GmtCreate string `json:"gmt_create,omitempty" db:"gmt_create"` SwitchoverStatus string `json:"switchover_status,omitempty" db:"switchover_status"` SwitchoverEpoch int64 `json:"switchover_epoch,omitempty" db:"switchover_epoch"` UnitNum int64 `json:"unit_num,omitempty" db:"unit_num"` diff --git a/pkg/oceanbase/model/tenant.go b/pkg/oceanbase/model/tenant.go index 4ccc97fb3..c54e6231f 100644 --- a/pkg/oceanbase/model/tenant.go +++ b/pkg/oceanbase/model/tenant.go @@ -21,7 +21,7 @@ type Tenant struct { Locality string `json:"locality" db:"locality"` PreviousLocality string `json:"previous_locality" db:"previous_locality"` Status string `json:"status" db:"status"` - GmtCreateTime string `json:"gmt_create_time" db:"gmt_create"` + GmtCreate string `json:"gmt_create" db:"gmt_create"` } type Replica struct {