2026-02-18 11:07:18 +00:00
|
|
|
package models
|
|
|
|
|
|
2026-02-19 10:21:27 +00:00
|
|
|
const (
|
|
|
|
|
PublishTargetTypeNone int = iota
|
|
|
|
|
PublishTargetTypeNetlify
|
|
|
|
|
)
|
2026-02-18 11:07:18 +00:00
|
|
|
|
|
|
|
|
type Site struct {
|
2026-02-19 10:21:27 +00:00
|
|
|
ID int64
|
|
|
|
|
OwnerID int64
|
|
|
|
|
Title string
|
|
|
|
|
Tagline string
|
|
|
|
|
//Meta SiteMeta
|
|
|
|
|
//Posts []*Post
|
2026-02-18 11:07:18 +00:00
|
|
|
}
|
|
|
|
|
|
2026-02-19 10:21:27 +00:00
|
|
|
type SitePublishTarget struct {
|
|
|
|
|
ID int64
|
|
|
|
|
SiteID int64
|
|
|
|
|
PublishTargetType int
|
|
|
|
|
BaseURL string
|
|
|
|
|
TargetSiteID string
|
|
|
|
|
TargetPublishKey string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*
|
2026-02-18 11:07:18 +00:00
|
|
|
type SiteMeta struct {
|
2026-02-18 11:38:05 +00:00
|
|
|
Title string `yaml:"title"`
|
|
|
|
|
Tagline string `yaml:"tagline"`
|
|
|
|
|
BaseURL string `yaml:"base_url"`
|
2026-02-18 11:07:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type PostMeta struct {
|
|
|
|
|
ID string `yaml:"id"`
|
|
|
|
|
Title string `yaml:"title"`
|
|
|
|
|
Date time.Time `yaml:"date"`
|
|
|
|
|
Tags []string `yaml:"tags"`
|
|
|
|
|
Slug string `yaml:"slug"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Post struct {
|
|
|
|
|
Meta PostMeta
|
|
|
|
|
Content string
|
|
|
|
|
}
|
2026-02-19 10:21:27 +00:00
|
|
|
*/
|