From 38cfc6b1036e35c941853f15eaef9411d43ab403 Mon Sep 17 00:00:00 2001 From: Adnan Zahir Date: Tue, 28 Apr 2026 12:30:52 +0700 Subject: [PATCH] fix: onToggle return undefined --- internal/entities/system_setting.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/entities/system_setting.go b/internal/entities/system_setting.go index ee5beaff..0680fae5 100644 --- a/internal/entities/system_setting.go +++ b/internal/entities/system_setting.go @@ -5,11 +5,11 @@ import "time" const SystemSettingKeyAllowNegativePakanOVK = "allow_negative_pakan_ovk" type SystemSetting struct { - Key string `gorm:"column:key;primaryKey"` - Value string `gorm:"column:value;not null;default:''"` - Description string `gorm:"column:description"` - CreatedAt time.Time `gorm:"column:created_at;autoCreateTime"` - UpdatedAt time.Time `gorm:"column:updated_at;autoUpdateTime"` + Key string `gorm:"column:key;primaryKey" json:"key"` + Value string `gorm:"column:value;not null;default:''" json:"value"` + Description string `gorm:"column:description" json:"description"` + CreatedAt time.Time `gorm:"column:created_at;autoCreateTime" json:"created_at"` + UpdatedAt time.Time `gorm:"column:updated_at;autoUpdateTime" json:"updated_at"` } func (SystemSetting) TableName() string {