Documentation ¶
Index ¶
- func Code(key string) string
- func CodeByProject(projectName string, key string) string
- func SetCache(listBean ConfigListBean)
- func Value(key string) string
- func ValueByCode(code string, parentKey string) string
- func ValueByCodeProject(projectName string, code string, parentKey string) string
- func ValueByProject(projectName string, key string) string
- type ConfigBean
- type ConfigListBean
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CodeByProject ¶
func ValueByCode ¶
func ValueByCodeProject ¶
func ValueByProject ¶
Types ¶
type ConfigBean ¶
type ConfigBean struct { // columns START Name string `json:"name" gconv:"name,omitempty"` // 名称 Key string `json:"key" gconv:"key,omitempty"` // 键 Value string `json:"value" gconv:"value,omitempty"` // 值 Code string `json:"code" gconv:"code,omitempty"` // 编码 ParentKey string `json:"parentKey" gconv:"parent_key,omitempty"` // Sort int `json:"sort" gconv:"sort,omitempty"` // 排序号 ProjectId int `json:"projectId" gconv:"project_id,omitempty"` // 项目ID }
func List ¶
func List(parentKey string) []ConfigBean
func ListByProject ¶
func ListByProject(projectName string, parentKey string) []ConfigBean
type ConfigListBean ¶
type ConfigListBean struct { // columns START Name string `json:"name" gconv:"name,omitempty"` Version string `json:"version" gconv:"version,omitempty"` ListData []ConfigBean `json:"value" gconv:"value,omitempty"` }
func GetCache ¶
func GetCache(projectName ...string) ConfigListBean
获取缓存列表 缓存:projectName,ConfigListBean
Click to show internal directories.
Click to hide internal directories.