commondata

package
v3.0.7-beta+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CC_time_type_parse_flag = "cc_time_type"
)

Variables

View Source
var ObjTableMap = map[string]string{
	common.BKInnerObjIDApp: "cc_ApplicationBase", common.BKInnerObjIDSet: "cc_SetBase", common.BKInnerObjIDModule: "cc_ModuleBase", common.BKINnerObjIDObject: "cc_ObjectBase", common.BKInnerObjIDHost: "cc_HostBase", common.BKInnerObjIDProc: "cc_Process", common.BKInnerObjIDPlat: "cc_PlatBase", common.BKTableNameInstAsst: common.BKTableNameInstAsst}
View Source
var ObjTypeTableMap = map[string]string{common.BKInnerObjIDApp: "cc_ApplicationBase", common.BKInnerObjIDSet: "cc_SetBase", common.BKInnerObjIDModule: "cc_ModuleBase", common.BKINnerObjIDObject: "cc_ObjectBase", common.BKInnerObjIDHost: "cc_HostBase", common.BKInnerObjIDProc: "cc_Process", common.BKInnerObjIDPlat: "cc_PlatBase", common.BKTableNameInstAsst: common.BKTableNameInstAsst}

Functions

This section is empty.

Types

type DataBase

type DataBase struct {
	ID         int       `auto_increment;primary_key"`
	CreateTime time.Time `gorm:"column:CreateTime"`
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL