Documentation
¶
Index ¶
Constants ¶
View Source
const ( FriendShipLinks = `friendShipLinks` WebSettings = `webSettings` )
Variables ¶
View Source
var PageTypeList = []string{ FriendShipLinks, WebSettings, }
Functions ¶
func CreateOrSave ¶
func GetConfigByPageType ¶ added in v0.0.5
Types ¶
type Entity ¶
type Entity struct {
Id uint64 `gorm:"primaryKey;column:id;autoIncrement;not null;" json:"id"` // 主键
PageType string `gorm:"column:page_type;uniqueIndex;type:varchar(128);not null;default:'';" json:"pageType"` // 页面类型
Config string `gorm:"column:config;type:text;" json:"content"` //
CreatedAt time.Time `gorm:"column:created_at;index;autoCreateTime;<-:create;" json:"createdAt"` //
UpdatedAt time.Time `gorm:"column:updated_at;autoUpdateTime;" json:"updatedAt"`
}
func GetByPageType ¶
type FriendLinksGroup ¶ added in v0.0.5
type WebSettingsConfig ¶ added in v0.0.5
Click to show internal directories.
Click to hide internal directories.