forked from
tangled.org/core
Monorepo for Tangled — https://tangled.org
1package models
2
3import (
4 "time"
5)
6
7type Follow struct {
8 UserDid string
9 SubjectDid string
10 FollowedAt time.Time
11 Rkey string
12}
13
14type FollowStats struct {
15 Followers int64
16 Following int64
17}
18
19type FollowStatus int
20
21const (
22 IsNotFollowing FollowStatus = iota
23 IsFollowing
24 IsSelf
25)
26
27func (s FollowStatus) String() string {
28 switch s {
29 case IsNotFollowing:
30 return "IsNotFollowing"
31 case IsFollowing:
32 return "IsFollowing"
33 case IsSelf:
34 return "IsSelf"
35 default:
36 return "IsNotFollowing"
37 }
38}