diff options
| author | mihna123 <mihailonvojinovic@gmail.com> | 2026-08-23 14:52:12 +0200 |
|---|---|---|
| committer | mihna123 <mihailonvojinovic@gmail.com> | 2026-08-23 14:52:12 +0200 |
| commit | a6ae2d9b9cb4f823d677beab11bd3d8610541f01 (patch) | |
| tree | fdb3a122eeec95a01a9eae35cb152fd66da2c925 /internal/listing/listing.go | |
| parent | cfaecd4cb276722ffe0efb23d2cf5b6a250728c2 (diff) | |
| download | openstore-a6ae2d9b9cb4f823d677beab11bd3d8610541f01.tar.gz openstore-a6ae2d9b9cb4f823d677beab11bd3d8610541f01.zip | |
listing: add isExternal and origin fields to listing struct
Need to have information where did the listing come from if it is
external
Diffstat (limited to 'internal/listing/listing.go')
| -rw-r--r-- | internal/listing/listing.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/listing/listing.go b/internal/listing/listing.go index cabd6bb..de769cc 100644 --- a/internal/listing/listing.go +++ b/internal/listing/listing.go @@ -1,6 +1,7 @@ package listing import ( + "net/url" "time" "codeberg.org/mihna123/openstore/internal/user" @@ -43,4 +44,6 @@ type Listing struct { views int createdAt time.Time author *user.User + isExternal bool + origin url.URL } |
