SearchByType 按类型搜索
(ctx context.Context, namespace, memoryType string)
| 310 | |
| 311 | // SearchByType 按类型搜索 |
| 312 | func (s *PostgreSQLStore) SearchByType(ctx context.Context, namespace, memoryType string) ([]*LogicMemory, error) { |
| 313 | return s.List(ctx, namespace, WithType(memoryType)) |
| 314 | } |
| 315 | |
| 316 | // SearchByScope 按作用域搜索 |
| 317 | func (s *PostgreSQLStore) SearchByScope(ctx context.Context, namespace string, scope MemoryScope) ([]*LogicMemory, error) { |