From 833745395ff3766b374660cffaa575e68c73ab38 Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Sun, 24 Sep 2023 20:51:23 -0700 Subject: [PATCH] Fix some more capitalization and remove WebsocketMsg --- cmd/gen/generator/struct.go | 4 ++++ types/types.go | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/cmd/gen/generator/struct.go b/cmd/gen/generator/struct.go index a29b300..62706d7 100644 --- a/cmd/gen/generator/struct.go +++ b/cmd/gen/generator/struct.go @@ -91,6 +91,10 @@ func transformFieldName(s string) string { "Pm", "PM", "Totp", "TOTP", "2fa", "2FA", + "Png", "PNG", + "Uuid", "UUID", + "Wav", "WAV", + "Ap", "AP", ).Replace(s) return s } diff --git a/types/types.go b/types/types.go index 5a19c74..7ea2f69 100644 --- a/types/types.go +++ b/types/types.go @@ -60,8 +60,3 @@ func (lt *LemmyTime) UnmarshalJSON(b []byte) error { lt.Time = t return nil } - -type LemmyWebSocketMsg struct { - Op string `json:"op"` - Data json.RawMessage `json:"data"` -}