Documentation ¶
Index ¶
- type BasePage
- type Content
- type ForwardParam
- type Header
- type InstAsst
- type ModuleHostConfig
- type ObjClassification
- type ObjClassificationObject
- type ObjectAsst
- type ObjectAttDes
- type ObjectDes
- type OperationLog
- type Position
- type PropertyGroup
- type Ref
- type TopoGraphics
- func (t *TopoGraphics) FillBlank() *TopoGraphics
- func (t *TopoGraphics) SetBizID(val int)
- func (t *TopoGraphics) SetExt(val map[string]interface{})
- func (t *TopoGraphics) SetIcon(val string)
- func (t *TopoGraphics) SetInstID(val int)
- func (t *TopoGraphics) SetIsPre(val bool)
- func (t *TopoGraphics) SetNodeName(val string)
- func (t *TopoGraphics) SetNodeType(val string)
- func (t *TopoGraphics) SetObjID(val string)
- func (t *TopoGraphics) SetPosition(val *Position)
- func (t *TopoGraphics) SetScopeID(val string)
- func (t *TopoGraphics) SetScopeType(val string)
- func (t *TopoGraphics) SetSupplierAccount(val string)
- func (TopoGraphics) TableName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasePage ¶
type BasePage struct { Sort string `json:"sort,omitempty"` Limit int `json:"limit,omitempty"` Start int `json:"start,omitempty"` }
BasePage define the page setting
type Content ¶
type Content struct { PreData interface{} `json:"pre_data"` CurData interface{} `json:"cur_data"` Headers []Header `json:"header"` }
type ForwardParam ¶
type InstAsst ¶
type InstAsst struct { ID int64 `bson:"id" json:"-"` InstID int64 `bson:"bk_inst_id" json:"bk_inst_id"` ObjectID string `bson:"bk_obj_id" json:"bk_obj_id"` AsstInstID int64 `bson:"bk_asst_inst_id" json:"bk_asst_inst_id"` AsstObjectID string `bson:"bk_asst_obj_id" json:"bk_asst_obj_id"` }
InstAsst an association definition between instances.
type ModuleHostConfig ¶
type ModuleHostConfig struct { ID int `bson:"id" json:"id"` HostID int `bson:"bk_host_id" json:"bk_host_id"` ModuleID int `bson:"bk_module_id" json:"bk_module_id"` SetID int `bson:"bk_set_id" json:"bk_set_id"` ApplicationID int `bson:"bk_biz_id" json:"bk_biz_id"` Page *BasePage `gorm:"-" json:"page,omitempty"` }
ModuleHostConfig module host map config
func (ModuleHostConfig) TableName ¶
func (ModuleHostConfig) TableName() string
TableName return the table name
type ObjClassification ¶
type ObjClassification struct { ID int `bson:"id" json:"id"` ClassificationID string `bson:"bk_classification_id" json:"bk_classification_id"` ClassificationName string `bson:"bk_classification_name" json:"bk_classification_name"` ClassificationType string `bson:"bk_classification_type" json:"bk_classification_type"` ClassificationIcon string `bson:"bk_classification_icon" json:"bk_classification_icon"` Page *BasePage `bson:"-" json:"page,omitempty"` }
ObjClassification 模型分类
func (ObjClassification) TableName ¶
func (ObjClassification) TableName() string
TableName return the table name
type ObjClassificationObject ¶
type ObjClassificationObject struct { ObjClassification `bson:",inline"` Objects []ObjectDes `bson:"-" json:"bk_objects"` AsstObjects map[string][]interface{} `bson:"-" json:"bk_asst_objects"` }
ObjClassificationObject define the class object class
type ObjectAsst ¶
type ObjectAsst struct { ID int `bson:"id" json:"id"` ObjectID string `bson:"bk_obj_id" json:"bk_obj_id"` ObjectAttID string `bson:"bk_object_att_id" json:"bk_object_att_id"` OwnerID string `bson:"bk_supplier_account" json:"bk_supplier_account"` AsstForward string `bson:"bk_asst_forward" json:"bk_asst_forward"` AsstObjID string `bson:"bk_asst_obj_id" json:"bk_asst_obj_id"` AsstName string `bson:"bk_asst_name" json:"bk_asst_name"` Page *BasePage `bson:"-" json:"page,omitempty"` }
ObjectAsst define object association struct
type ObjectAttDes ¶
type ObjectAttDes struct { ID int `bson:"id" json:"id"` OwnerID string `bson:"bk_supplier_account" json:"bk_supplier_account"` ObjectID string `bson:"bk_obj_id" json:"bk_obj_id"` PropertyID string `bson:"bk_property_id" json:"bk_property_id"` PropertyName string `bson:"bk_property_name" json:"bk_property_name"` PropertyGroup string `bson:"bk_property_group" json:"bk_property_group"` PropertyIndex int `bson:"bk_property_index" json:"bk_property_index"` Unit string `bson:"unit" json:"unit"` Placeholder string `bson:"placeholder" json:"placeholder"` Editable bool `bson:"editable" json:"editable"` IsPre bool `bson:"ispre" json:"ispre"` IsRequired bool `bson:"isrequired" json:"isrequired"` IsReadOnly bool `bson:"isreadonly" json:"isreadonly"` IsOnly bool `bson:"isonly" json:"isonly"` IsSystem bool `bson:"bk_issystem" json:"bk_issystem"` IsAPI bool `bson:"bk_isapi" json:"bk_isapi"` PropertyType string `bson:"bk_property_type" json:"bk_property_type"` Option interface{} `bson:"option" json:"option"` Description string `bson:"description" json:"description"` Creator string `bson:"creator" json:"creator"` CreateTime *time.Time `bson:"create_time" json:"create_time"` LastTime *time.Time `bson:"last_time" json:"last_time"` Page *BasePage `bson:"-" json:"page,omitempty"` }
ObjectAttDes define the object attribute struct
func (ObjectAttDes) TableName ¶
func (ObjectAttDes) TableName() string
TableName return the table name
type ObjectDes ¶
type ObjectDes struct { ID int `bson:"id" json:"id"` ObjCls string `bson:"bk_classification_id" json:"bk_classification_id"` ObjIcon string `bson:"bk_obj_icon" json:"bk_obj_icon"` ObjectID string `bson:"bk_obj_id" json:"bk_obj_id"` ObjectName string `bson:"bk_obj_name" json:"bk_obj_name"` IsPre bool `bson:"ispre" json:"ispre"` IsPaused bool `bson:"bk_ispaused" json:"bk_ispaused"` Position string `bson:"position" json:"position"` OwnerID string `bson:"bk_supplier_account" json:"bk_supplier_account"` Description string `bson:"description" json:"description"` Creator string `bson:"creator" json:"creator"` Modifier string `bson:"modifier" json:"modifier"` CreateTime *time.Time `bson:"create_time" json:"create_time"` LastTime *time.Time `bson:"last_time" json:"last_time"` Page *BasePage `bson:"-" json:"page,omitempty"` }
ObjectDes define Object struct
type OperationLog ¶
type OperationLog struct { OwnerID string `bson:"bk_supplier_account" json:"bk_supplier_account"` ApplicationID int `bson:"bk_biz_id" json:"bk_biz_id"` ExtKey string `bson:"ext_key" json:"ext_key"` OpDesc string `bson:"op_desc" json:"op_desc"` OpType int `bson:"op_type" json:"op_type"` OpTarget string `bson:"op_target" json:"op_target"` Content interface{} `bson:"content" json:"content"` User string `bson:"operator" json:"operator"` OpFrom string `bson:"op_from" json:"op_from"` ExtInfo string `bson:"ext_info" json:"ext_info"` CreateTime time.Time `bson:"op_time" json:"op_time"` InstID int `bson:"inst_id" json:"inst_id"` }
OperationLog opeartion log item definition
func (OperationLog) TableName ¶
func (OperationLog) TableName() string
TableName return the table name
type PropertyGroup ¶
type PropertyGroup struct { ID int `bson:"id" json:"id"` GroupID string `bson:"bk_group_id" json:"bk_group_id"` GroupName string `bson:"bk_group_name" json:"bk_group_name"` GroupIndex int `bson:"bk_group_index" json:"bk_group_index"` ObjectID string `bson:"bk_obj_id" json:"bk_obj_id"` OwnerID string `bson:"bk_supplier_account" json:"bk_supplier_account"` IsDefault bool `bson:"bk_isdefault" json:"bk_isdefault"` IsPre bool `bson:"ispre" json:"ispre"` Page *BasePage `bson:"-" json:"page,omitempty"` }
PropertyGroup 属性分组结构定义
func (PropertyGroup) TableName ¶
func (PropertyGroup) TableName() string
TableName return the table name
type TopoGraphics ¶
type TopoGraphics struct { ScopeType *string `json:"scope_type,omitempty" bson:"scope_type,omitempty"` // biz,user,global,classification ScopeID *string `json:"scope_id,omitempty" bson:"scope_id,omitempty"` // ID for ScopeType NodeType *string `json:"node_type,omitempty" bson:"node_type,omitempty"` // obj inst ObjID *string `json:"bk_obj_id,omitempty" bson:"bk_obj_id,omitempty"` IsPre *bool `json:"ispre,omitempty" bson:"ispre,omitempty"` InstID *int `json:"bk_inst_id,omitempty" bson:"bk_inst_id,omitempty"` NodeName *string `json:"node_name,omitempty" bson:"node_name,omitempty"` Position *Position `json:"position,omitempty" bson:"position,omitempty"` Ext map[string]interface{} `json:"ext,omitempty" bson:"ext,omitempty"` Icon *string `json:"bk_obj_icon,omitempty" bson:"bk_obj_icon,omitempty"` BizID *int `json:"bk_biz_id,omitempty" bson:"bk_biz_id,omitempty"` SupplierAccount *string `json:"bk_supplier_account,omitempty" bson:"bk_supplier_account,omitempty"` // bk_supplier_account }
TopoGraphics define
func (*TopoGraphics) FillBlank ¶
func (t *TopoGraphics) FillBlank() *TopoGraphics
func (*TopoGraphics) SetBizID ¶
func (t *TopoGraphics) SetBizID(val int)
func (*TopoGraphics) SetExt ¶
func (t *TopoGraphics) SetExt(val map[string]interface{})
func (*TopoGraphics) SetIcon ¶
func (t *TopoGraphics) SetIcon(val string)
func (*TopoGraphics) SetInstID ¶
func (t *TopoGraphics) SetInstID(val int)
func (*TopoGraphics) SetIsPre ¶
func (t *TopoGraphics) SetIsPre(val bool)
func (*TopoGraphics) SetNodeName ¶
func (t *TopoGraphics) SetNodeName(val string)
func (*TopoGraphics) SetNodeType ¶
func (t *TopoGraphics) SetNodeType(val string)
func (*TopoGraphics) SetObjID ¶
func (t *TopoGraphics) SetObjID(val string)
func (*TopoGraphics) SetPosition ¶
func (t *TopoGraphics) SetPosition(val *Position)
func (*TopoGraphics) SetScopeID ¶
func (t *TopoGraphics) SetScopeID(val string)
func (*TopoGraphics) SetScopeType ¶
func (t *TopoGraphics) SetScopeType(val string)
func (*TopoGraphics) SetSupplierAccount ¶
func (t *TopoGraphics) SetSupplierAccount(val string)
func (TopoGraphics) TableName ¶
func (TopoGraphics) TableName() string
TableName return the table name
Click to show internal directories.
Click to hide internal directories.