This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / appview / models / star.go
475 B 31 lines
1package models 2 3import ( 4 "time" 5) 6 7type StarSubjectType string 8 9const ( 10 StarSubjectRepo StarSubjectType = "repo" 11 StarSubjectString StarSubjectType = "string" 12) 13 14type Star struct { 15 Did string 16 SubjectType StarSubjectType 17 Subject string 18 Created time.Time 19} 20 21// RepoStar is used for reverse mapping to repos 22type RepoStar struct { 23 Star 24 Repo *Repo 25} 26 27// StringStar is used for reverse mapping to strings 28type StringStar struct { 29 Star 30 String *String 31}