mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 20:49:02 +00:00
22 lines
298 B
Go
22 lines
298 B
Go
package models
|
|
|
|
import "time"
|
|
|
|
type ShareToken struct {
|
|
TokenID int
|
|
Value string
|
|
OwnerID int
|
|
Expire *time.Time
|
|
Password *string
|
|
AlbumID *int
|
|
PhotoID *int
|
|
}
|
|
|
|
func (share *ShareToken) Token() string {
|
|
return share.Value
|
|
}
|
|
|
|
func (share *ShareToken) ID() int {
|
|
return share.TokenID
|
|
}
|