Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DescriptionValue ¶
type DescriptionValue struct { ID int `gorm:"primary_key" json:"id"` TagId int `gorm:"not null" json:"tag_id"` ResourceObjectId int `gorm:"not null" json:"resource_object_id"` ObjectTagId int `gorm:"not null" json:"object_tag_id"` Value string `gorm:"not null;type:varchar(300)" json:"value"` ObjectTag ObjectTag `gorm:"ForeignKey:ObjectTagId"` }
func (DescriptionValue) TableName ¶
func (DescriptionValue) TableName() string
type IntValue ¶
type JSONTime ¶
func (JSONTime) MarshalJSON ¶
type ObjectTag ¶
type ObjectTag struct { ID int `gorm:"primary_key" json:"id"` TagId int `gorm:"not null" json:"tag_id"` ResourceObjectId int `gorm:"not null" json:"resource_object_id"` ValueId int `gorm:"not null" json:"value_id"` CreatedBy string `json:"created_by"` CreatedAt JSONTime `json:"created_at"` UpdatedAt JSONTime `json:"updated_at"` }
type ResourceObject ¶
type ResourceObject struct { ID uint `gorm:"primary_key" json:"id"` ObjectType int `gorm:"not null" json:"object_type"` CreatedAt JSONTime `json:"created_at"` UpdatedAt JSONTime `json:"updated_at"` }
func (ResourceObject) TableName ¶
func (ResourceObject) TableName() string
type StrValue ¶
type StrValue struct { ID int `gorm:"primary_key" json:"id"` TagId int `gorm:"not null" json:"tag_id"` ResourceObjectId int `gorm:"not null" json:"resource_object_id"` ObjectTagId int `gorm:"not null" json:"object_tag_id"` Value string `gorm:"not null;type:varchar(30)" json:"value"` ObjectTag ObjectTag `gorm:"ForeignKey:ObjectTagId"` }
type Tag ¶
type Tag struct { ID int `gorm:"primary_key" json:"id"` Name string `gorm:"not null;type:varchar(30);unique_index" json:"name"` TagTypeId uint `gorm:"not null" json:"tag_type_id"` Description string `gorm:"not null" json:"description"` Default int `gorm:"not null" json:"default"` CreatedAt JSONTime `json:"created_at"` UpdatedAt JSONTime `json:"updated_at"` TagType TagType `gorm:"ForeignKey:TagTypeId" json:"tag_type"` }
type TagType ¶
type ValueModel ¶
type ValueModel struct { ID int `gorm:"primary_key" json:"id"` TagId int `gorm:"not null" json:"tag_id"` Value string `gorm:"not null;type:varchar(30)" json:"value"` CreatedAt JSONTime `json:"created_at"` UpdatedAt JSONTime `json:"updated_at"` }
func (ValueModel) TableName ¶
func (ValueModel) TableName() string
type VmodelValue ¶
type VmodelValue struct { ID int `gorm:"primary_key" json:"id"` TagId int `gorm:"not null" json:"tag_id"` ObjectTagId int `gorm:"not null" json:"object_tag_id"` ResourceObjectId int `gorm:"not null" json:"resource_object_id"` ValueModelId int `gorm:"not null" json:"value_model_id"` ObjectTag ObjectTag `gorm:"ForeignKey:ObjectTagId"` ValueModel ValueModel `gorm:"ForeignKey:ValueModelId"` }
func (VmodelValue) TableName ¶
func (VmodelValue) TableName() string
Click to show internal directories.
Click to hide internal directories.