metadata

package
v3.1.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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.

func (InstAsst) TableName

func (InstAsst) 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"`
	OwnerID            string    `bson:"bk_supplier_account"     json:"bk_supplier_account"`
	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

func (ObjectAsst) TableName

func (ObjectAsst) TableName() string

TableName return the table name

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

func (ObjectDes) TableName

func (ObjectDes) 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

Jump to

Keyboard shortcuts

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