weiro/models/sites.go
2026-02-28 09:49:43 +11:00

33 lines
489 B
Go

package models
import "time"
type PublishTargetType int
const (
PublishTargetTypeNone PublishTargetType = 0
PublishTargetTypeLocalFS PublishTargetType = 1
PublishTargetTypeNetlify PublishTargetType = 2
)
type Site struct {
ID int64
OwnerID int64
GUID string
Created time.Time
Title string
Tagline string
}
type SitePublishTarget struct {
ID int64
SiteID int64
Enabled bool
BaseURL string
TargetType string
TargetRef string
TargetKey string
}