From ebc33038fe754c57d4b13434a1f58991efa3a62a Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Sat, 30 May 2026 10:17:39 +0000 Subject: [PATCH] appview/models: add recent link model Signed-off-by: oppiliappan --- appview/models/recents.go | 19 +++++++++++++++++++ 1 file(s) changed, 19 insertion(s)(+), 0 deletion(s)(-) diff --git a/appview/models/recents.go b/appview/models/recents.go new file mode 100644 --- /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 +} -- tangled.sh