Documentation
¶
Index ¶
- type Object
- func (o *Object) Decode(code string) error
- func (o *Object) Encode() string
- func (o *Object) GetDomainID() uint64
- func (o *Object) GetID() uint64
- func (o *Object) GetObjectType() string
- func (o *Object) GetParentID() uint64
- func (o *Object) SetDomainID(did uint64)
- func (o *Object) SetID(id uint64)
- func (o *Object) SetParentID(pid uint64)
- type OneObjectData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Object ¶
type Object struct { ID uint64 `gorm:"column:id;primaryKey" json:"id,omitempty"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at,omitempty"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at,omitempty"` DeletedAt gorm.DeletedAt `gorm:"column:delete_at;index" json:"-"` Name string `gorm:"column:name;index:idx_object,unique" json:"name,omitempty"` Type string `gorm:"column:type" json:"type,omitempty"` DomainID uint64 `gorm:"column:domain_id;index:idx_object,unique" json:"domain_id,omitempty"` ParentID uint64 `gorm:"column:parent_id;index:idx_object,unique" json:"parent_id"` }
Object sample for caskin.Object interface
func (*Object) GetDomainID ¶
func (*Object) GetObjectType ¶
func (*Object) GetParentID ¶
func (*Object) SetDomainID ¶
func (*Object) SetParentID ¶
type OneObjectData ¶
type OneObjectData struct { ID uint64 `gorm:"column:id;primaryKey" json:"id,omitempty"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at,omitempty"` UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at,omitempty"` DeletedAt gorm.DeletedAt `gorm:"column:delete_at;index" json:"-"` Name string `gorm:"column:name" json:"name,omitempty"` DomainID uint64 `gorm:"column:domain_id" json:"domain_id,omitempty"` ObjectID uint64 `gorm:"column:object_id" json:"object_id,omitempty"` }
OneObjectData one kind of object_data
func (*OneObjectData) GetDomainID ¶
func (o *OneObjectData) GetDomainID() uint64
func (*OneObjectData) GetID ¶
func (o *OneObjectData) GetID() uint64
func (*OneObjectData) GetObjectID ¶
func (o *OneObjectData) GetObjectID() uint64
func (*OneObjectData) SetDomainID ¶
func (o *OneObjectData) SetDomainID(did uint64)
func (*OneObjectData) SetID ¶
func (o *OneObjectData) SetID(id uint64)
func (*OneObjectData) SetObjectID ¶
func (o *OneObjectData) SetObjectID(oid uint64)
Click to show internal directories.
Click to hide internal directories.