Added a suite GUID
This commit is contained in:
parent
30d99eeb9e
commit
329de2f953
11 changed files with 44 additions and 41 deletions
|
|
@ -3,6 +3,6 @@ package models
|
|||
import "github.com/matoous/go-nanoid/v2"
|
||||
|
||||
func NewNanoID() string {
|
||||
id, _ := gonanoid.New(12)
|
||||
id, _ := gonanoid.New(16)
|
||||
return id
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ const (
|
|||
type Site struct {
|
||||
ID int64
|
||||
OwnerID int64
|
||||
GUID string
|
||||
Created time.Time
|
||||
|
||||
Title string
|
||||
|
|
@ -29,24 +30,3 @@ type SitePublishTarget struct {
|
|||
TargetRef string
|
||||
TargetKey string
|
||||
}
|
||||
|
||||
/*
|
||||
type SiteMeta struct {
|
||||
Title string `yaml:"title"`
|
||||
Tagline string `yaml:"tagline"`
|
||||
BaseURL string `yaml:"base_url"`
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue