Documentation
¶
Overview ¶
Package eav Entity-Attribute-Values 数据表管理
Index ¶
- func AddValue[T ValueType](m *EAVs, entity, attr int64, val T) (int64, error)
- func DelValue[T ValueType](m *EAVs, id int64) error
- func GetValue[T ValueType](m *EAVs, id int64) (T, error)
- func SetValue[T ValueType](m *EAVs, id int64, val T) error
- type AttributeVO
- type EAVs
- type ValueType
- type ValueVO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AttributeVO ¶
type EAVs ¶ added in v0.13.0
type EAVs struct {
// contains filtered or unexported fields
}
EAVs 提供 Entity-Attribute-Values 数据表管理
func (*EAVs) AddAttribute ¶ added in v0.13.0
func (*EAVs) DelAttribute ¶ added in v0.13.0
func (*EAVs) GetAttribute ¶ added in v0.13.0
GetAttribute 获取属性 id 对应的名称
NOTE: 该操作不会考虑 id 是否已经被删除,如果不存在返回空字符串。
func (*EAVs) GetAttributes ¶ added in v0.13.0
func (m *EAVs) GetAttributes() ([]*AttributeVO, error)
Click to show internal directories.
Click to hide internal directories.