This commit is contained in:
Daniel 2025-08-10 18:20:29 +08:00
parent 334e80f8d5
commit 7bd690ecec
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 35 additions and 16 deletions

View file

@ -582,6 +582,19 @@ func (av *AttributeView) ExistBoundBlock(nodeID string) bool {
return false
}
func (av *AttributeView) GetBlockValueByBoundID(nodeID string) *Value {
for _, kv := range av.KeyValues {
if KeyTypeBlock == kv.Key.Type {
for _, v := range kv.Values {
if v.Block.ID == nodeID {
return v
}
}
}
}
return nil
}
func (av *AttributeView) GetValue(keyID, itemID string) (ret *Value) {
for _, kv := range av.KeyValues {
if kv.Key.ID == keyID {