Documentation ¶
Index ¶
- Constants
- Variables
- func GetInstTableName(objID string) string
- func TranslateClassificationName(defLang language.DefaultCCLanguageIf, att *metadata.ObjClassification) string
- func TranslateEnumName(defLang language.DefaultCCLanguageIf, att *metadata.ObjectAttDes, ...) interface{}
- func TranslateInstName(defLang language.DefaultCCLanguageIf, att *metadata.ObjectDes) string
- func TranslateObjectName(defLang language.DefaultCCLanguageIf, att *metadata.ObjectDes) string
- func TranslatePropertyGroupName(defLang language.DefaultCCLanguageIf, att *metadata.PropertyGroup) string
- func TranslatePropertyName(defLang language.DefaultCCLanguageIf, att *metadata.ObjectAttDes) string
- type DataBase
- type ObjQueryInput
Constants ¶
View Source
const (
CC_time_type_parse_flag = "cc_time_type"
)
Variables ¶
View Source
var ObjTableMap = map[string]string{ common.BKInnerObjIDApp: common.BKTableNameBaseApp, common.BKInnerObjIDSet: common.BKTableNameBaseSet, common.BKInnerObjIDModule: common.BKTableNameBaseModule, common.BKINnerObjIDObject: common.BKTableNameBaseInst, common.BKInnerObjIDHost: common.BKTableNameBaseHost, common.BKInnerObjIDProc: common.BKTableNameBaseProcess, common.BKInnerObjIDPlat: common.BKTableNameBasePlat, common.BKTableNameInstAsst: common.BKTableNameInstAsst, }
Functions ¶
func GetInstTableName ¶
GetInstTableName returns inst data table name
func TranslateClassificationName ¶
func TranslateClassificationName(defLang language.DefaultCCLanguageIf, att *metadata.ObjClassification) string
func TranslateEnumName ¶
func TranslateEnumName(defLang language.DefaultCCLanguageIf, att *metadata.ObjectAttDes, val interface{}) interface{}
func TranslateInstName ¶
func TranslateInstName(defLang language.DefaultCCLanguageIf, att *metadata.ObjectDes) string
func TranslateObjectName ¶
func TranslateObjectName(defLang language.DefaultCCLanguageIf, att *metadata.ObjectDes) string
func TranslatePropertyGroupName ¶
func TranslatePropertyGroupName(defLang language.DefaultCCLanguageIf, att *metadata.PropertyGroup) string
func TranslatePropertyName ¶
func TranslatePropertyName(defLang language.DefaultCCLanguageIf, att *metadata.ObjectAttDes) string
Types ¶
type ObjQueryInput ¶
type ObjQueryInput struct { Condition interface{} `json:"condition"` Fields string `json:"fields"` Start int `json:"start"` Limit int `json:"limit"` Sort string `json:"sort"` }
func (*ObjQueryInput) ConvTime ¶
func (o *ObjQueryInput) ConvTime() error
ConvTime 将查询条件中字段包含cc_type key ,子节点变为time.Time
Click to show internal directories.
Click to hide internal directories.