photoprism/internal/form/link.go
Michael Mayer f2955fdefc Sharing: Refactor link entity and database columns #367 #18
Add missing fields in js model and rename fields for mode clarity. A link token can be valid for multiple shares.

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
2020-06-28 14:52:26 +02:00

13 lines
334 B
Go

package form
// Link represents a link sharing form.
type Link struct {
Password string `json:"Password"`
ShareSlug string `json:"Slug"`
LinkToken string `json:"Token"`
LinkExpires int `json:"Expires"`
MaxViews uint `json:"MaxViews"`
CanComment bool `json:"CanComment"`
CanEdit bool `json:"CanEdit"`
}