From c04923015eb662250a67597a8ae121b939af3cf5 Mon Sep 17 00:00:00 2001 From: Chang lue Tsen Date: Thu, 21 Aug 2025 08:24:30 -0400 Subject: [PATCH] fix(types): change Content field type in MessageLog to interface{} for improved flexibility --- apis/types.api | 16 ++++++++-------- internal/types/types.go | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/apis/types.api b/apis/types.api index 9d2fb97..963f5f5 100644 --- a/apis/types.api +++ b/apis/types.api @@ -535,14 +535,14 @@ type ( CreatedAt int64 `json:"created_at"` } MessageLog { - Id int64 `json:"id"` - Type uint8 `json:"type"` - Platform string `json:"platform"` - To string `json:"to"` - Subject string `json:"subject"` - Content map[string]interface{} `json:"content"` - Status uint8 `json:"status"` - CreatedAt int64 `json:"created_at"` + Id int64 `json:"id"` + Type uint8 `json:"type"` + Platform string `json:"platform"` + To string `json:"to"` + Subject string `json:"subject"` + Content interface{} `json:"content"` + Status uint8 `json:"status"` + CreatedAt int64 `json:"created_at"` } Ads { Id int `json:"id"` diff --git a/internal/types/types.go b/internal/types/types.go index c06a0f2..71bbdbf 100644 --- a/internal/types/types.go +++ b/internal/types/types.go @@ -1018,14 +1018,14 @@ type LoginResponse struct { } type MessageLog struct { - Id int64 `json:"id"` - Type uint8 `json:"type"` - Platform string `json:"platform"` - To string `json:"to"` - Subject string `json:"subject"` - Content map[string]interface{} `json:"content"` - Status uint8 `json:"status"` - CreatedAt int64 `json:"created_at"` + Id int64 `json:"id"` + Type uint8 `json:"type"` + Platform string `json:"platform"` + To string `json:"to"` + Subject string `json:"subject"` + Content interface{} `json:"content"` + Status uint8 `json:"status"` + CreatedAt int64 `json:"created_at"` } type MobileAuthenticateConfig struct {