Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HumanizeDataType ¶
Types ¶
type DataType ¶
type DataType int
DataType is a list of data types used for settings
func DataTypeFromString ¶
type Setting ¶
type Setting struct {
core.Model
Name string `gomonolith:"list,search" gomonolithform:"RequiredFieldOptions"`
Value string `gomonolith:"list" gomonolithform:"DynamicTypeFieldOptions"`
DefaultValue string `gomonolith:"list" gomonolithform:"DynamicTypeFieldOptions"`
DataType DataType `gomonolith:"list,search" gomonolithform:"RequiredSelectFieldOptions"`
Help string `gomonolith:"list,search" sql:"type:text;"`
Category SettingCategory `gomonolith:"list,search" gomonolithform:"FkRequiredFieldOptions"`
CategoryID uint
Code string `gomonolith:"search" gomonolithform:"ReadonlyField"`
}
Setting model stored system settings
func (*Setting) GetRealWidget ¶
type SettingCategory ¶
type SettingCategory struct {
core.Model
Name string `gomonolith:"list"`
Icon string `gomonolithform:"ImageFormOptions" `
}
SettingCategory is a category for system settings
func (*SettingCategory) String ¶
func (m *SettingCategory) String() string
Click to show internal directories.
Click to hide internal directories.