mirror of https://github.com/synctv-org/synctv
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
426 B
Go
25 lines
426 B
Go
package model
|
|
|
|
import (
|
|
"net/http"
|
|
"time"
|
|
)
|
|
|
|
type StreamingVendor string
|
|
|
|
const (
|
|
StreamingVendorBilibili StreamingVendor = "bilibili"
|
|
)
|
|
|
|
type StreamingVendorInfo struct {
|
|
UserID string `gorm:"not null;primarykey"`
|
|
Vendor StreamingVendor `gorm:"not null;primarykey"`
|
|
CreatedAt time.Time
|
|
UpdatedAt time.Time
|
|
VendorToken
|
|
}
|
|
|
|
type VendorToken struct {
|
|
Cookies []*http.Cookie `gorm:"serializer:fastjson"`
|
|
}
|