From 9301261e91f947f5743702b27453c252f0a07952 Mon Sep 17 00:00:00 2001 From: Erwin Susanto Date: Mon, 29 May 2023 13:27:12 +0700 Subject: [PATCH] PMP-106 Add struct for notify --- hermes.go | 1 + model/notify.go | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 model/notify.go diff --git a/hermes.go b/hermes.go index 43793ed..2951531 100644 --- a/hermes.go +++ b/hermes.go @@ -75,6 +75,7 @@ type Body struct { FreeMarkdown Markdown // Free markdown content that replaces all content other than header and footer SalesOrder model.SalesOrder // Add new var custom data Cards model.GiftcardDetail // Add new var for custom egiftcard data + Notify model.ProductDetail // Add new var for custom notify data } // ToHTML converts Markdown to HTML diff --git a/model/notify.go b/model/notify.go new file mode 100644 index 0000000..29758b3 --- /dev/null +++ b/model/notify.go @@ -0,0 +1,7 @@ +package model + +type ProductDetail struct { + Title string `json:"title"` + Description string `json:"description"` + Thumbnail string `json:"thumbnail"` +}