Documentation
¶
Index ¶
- Variables
- func ApiGetPageTheme(ctx iris.Context)
- func FormatPageTheme(configs []themeConfig) (mapConfigs map[string]interface{})
- func GetPageTheme(page string) (configs []themeConfig)
- func GetPageThemeSkipCache(page string) (configs []themeConfig)
- func GetWebViewData() (data map[string]interface{}, err error)
- func GetWebViewDataSkipCache() (data map[string]interface{}, err error)
- func Router(p iris.Party)
- func WithWebViewFilter(ctx iris.Context)
- type AppThemeConfig
- type AppWebView
- type ConfigContentType
Constants ¶
This section is empty.
Variables ¶
View Source
var AppName string
Functions ¶
func FormatPageTheme ¶
func FormatPageTheme(configs []themeConfig) (mapConfigs map[string]interface{})
FormatPageTheme 格式化->map
func GetPageTheme ¶
func GetPageTheme(page string) (configs []themeConfig)
GetPageTheme 开放方法:获取页面主题配置。从缓存中获取
func GetPageThemeSkipCache ¶
func GetPageThemeSkipCache(page string) (configs []themeConfig)
GetPageThemeSkipCache 开放方法:获取页面主题配置。跳过缓存
func GetWebViewData ¶
func GetWebViewDataSkipCache ¶
Types ¶
type AppThemeConfig ¶
type AppThemeConfig struct {
Id int `orm:"pk;auto;column(id)"`
AppName string `orm:"column(app_name);"` //应用名称
ConfigPage string `orm:"column(config_page);"` //配置所属页
ConfigName string `orm:"column(config_name);"` //配置字段名称
ConfigContent string `orm:"column(config_content);default()"` //配置字段内容
ConfigContentType string `orm:"column(config_content_Type);default(string)"` //配置字段内容类型
CreateTime time.Time `orm:"auto_now_add;type(datetime);column(ctime)"`
}
func (*AppThemeConfig) TableUnique ¶
func (atc *AppThemeConfig) TableUnique() [][]string
TableUnique 联合唯一约束
type AppWebView ¶
type ConfigContentType ¶
type ConfigContentType string
const ( BooleanConfigContentType ConfigContentType = "boolean" NumberConfigContentType ConfigContentType = "int" StringConfigContentType ConfigContentType = "string" )
Click to show internal directories.
Click to hide internal directories.