feat: add stickers
This commit is contained in:
@@ -52,9 +52,16 @@ type SadhnaReward struct {
|
||||
// SadhnaRewardGrant is a reward a user earned at a streak milestone (a
|
||||
// multiple of 7 days). The full reward is embedded for direct rendering.
|
||||
type SadhnaRewardGrant struct {
|
||||
Milestone int `json:"milestone"`
|
||||
// Milestone is the streak day this was earned on. Nil for an admin gift,
|
||||
// which isn't tied to a streak at all.
|
||||
Milestone *int `json:"milestone"`
|
||||
GrantedAt time.Time `json:"granted_at"`
|
||||
Reward SadhnaReward `json:"reward"`
|
||||
// Source is "streak" or "gift".
|
||||
Source string `json:"source"`
|
||||
// Opened is false while a gift is still wrapped — the gallery renders
|
||||
// those blurred until the devotee opens them.
|
||||
Opened bool `json:"opened"`
|
||||
}
|
||||
|
||||
// SadhnaDashboard is the single payload the /sadhna-streak page reads. It
|
||||
|
||||
Reference in New Issue
Block a user