Documentation ¶
Index ¶
- Constants
- func SummarySeparator() string
- func UpdateLastChange(tx *gorm.DB) error
- func UpdateSiteParameter(sp SiteParameter) bool
- type BackupLog
- type DBSiteParameter
- type InterfaceMap
- type InterfaceMapList
- type Option
- type Post
- type SiteParameter
- type StringList
- type StringMap
- type StringMapList
- type UintList
- type User
Constants ¶
View Source
const ( BackupTypeManual = "manual" BackupTypeAutomatic = "automatic" )
View Source
const ( PostTypeArticle = "article" // PostTypeArticle 内容类型-文章 PostTypePage = "page" // PostTypePage 内容类型-页面 PostTypeMicro = "micro" // PostTypeMicro 内容类型-微博 )
Variables ¶
This section is empty.
Functions ¶
func SummarySeparator ¶
func SummarySeparator() string
func UpdateLastChange ¶
func UpdateSiteParameter ¶
func UpdateSiteParameter(sp SiteParameter) bool
Types ¶
type BackupLog ¶
type BackupLog struct { ID uint Type string CloudKey string Others InterfaceMap CreatedAt string `gorm:"time"` }
type DBSiteParameter ¶
func (DBSiteParameter) TableName ¶
func (DBSiteParameter) TableName() string
type InterfaceMap ¶
type InterfaceMap map[string]interface{}
func (InterfaceMap) GetUint ¶
func (iMap InterfaceMap) GetUint(key string, defVal ...uint) (val uint, has bool)
func (*InterfaceMap) Scan ¶
func (iMap *InterfaceMap) Scan(data interface{}) error
func (InterfaceMap) ToStringMap ¶
func (iMap InterfaceMap) ToStringMap() StringMap
type InterfaceMapList ¶
type InterfaceMapList []InterfaceMap
func (InterfaceMapList) ToStringMapList ¶
func (v InterfaceMapList) ToStringMapList() StringMapList
type Post ¶
type SiteParameter ¶
type SiteParameter struct { Name string `db-option:"name"` Description string `db-option:"description"` Domain string `db-option:"domain"` PageSize int `db-option:"page_size"` Separator string `db-option:"separator"` }
func GetSiteParameter ¶
func GetSiteParameter() *SiteParameter
type StringList ¶
type StringList []string
func NewStringList ¶
func NewStringList(s string) StringList
func (*StringList) Scan ¶
func (v *StringList) Scan(data interface{}) error
type StringMap ¶
type StringMapList ¶
type StringMapList []StringMap
func (*StringMapList) Scan ¶
func (v *StringMapList) Scan(data interface{}) error
Click to show internal directories.
Click to hide internal directories.