From 92019ae027a185d458e23caefb2b5a7e868b72c9 Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Sat, 30 May 2026 11:17:39 +0100 Subject: [PATCH] appview/models: add recent link model Signed-off-by: oppiliappan --- appview/models/recents.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 appview/models/recents.go diff --git a/appview/models/recents.go b/appview/models/recents.go new file mode 100644 index 00000000..265c4cba --- /dev/null +++ b/appview/models/recents.go @@ -0,0 +1,19 @@ +package models + +import "time" + +type RecentLinkType string + +const ( + RecentLinkTypeRepo RecentLinkType = "repo" + RecentLinkTypeIssue RecentLinkType = "issue" + RecentLinkTypePull RecentLinkType = "pull" +) + +type RecentLink struct { + Id int64 + UserDid string + LinkType RecentLinkType + Target string // repo DID for repos; AT-URI string for issues/pulls + Visited time.Time +} -- 2.51.2