Documentation ¶
Index ¶
- type Domain
- 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
- type Role
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Domain ¶
type Domain 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;unique" json:"name,omitempty"` }
Domain sample for caskin.Domain interface
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 ¶ added in v0.1.0
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)
type Role ¶
type Role 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_role,unique" json:"name,omitempty"` DomainID uint64 `gorm:"column:domain_id;index:idx_role,unique" json:"domain_id,omitempty"` ObjectID uint64 `gorm:"column:object_id;index:idx_role,unique" json:"object_id,omitempty"` }
Role sample for caskin.Role interface
func (*Role) GetDomainID ¶
func (*Role) GetObjectID ¶ added in v0.1.0
func (*Role) SetDomainID ¶
func (*Role) SetObjectID ¶
type User ¶
type User 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:"-"` Email string `gorm:"column:email;unique" json:"email,omitempty"` }
User sample for caskin.User interface
Click to show internal directories.
Click to hide internal directories.