SearchByType 按类型搜索
(ctx context.Context, namespace, memoryType string)
| 299 | |
| 300 | // SearchByType 按类型搜索 |
| 301 | func (s *MySQLStore) SearchByType(ctx context.Context, namespace, memoryType string) ([]*LogicMemory, error) { |
| 302 | return s.List(ctx, namespace, WithType(memoryType)) |
| 303 | } |
| 304 | |
| 305 | // SearchByScope 按作用域搜索 |
| 306 | func (s *MySQLStore) SearchByScope(ctx context.Context, namespace string, scope MemoryScope) ([]*LogicMemory, error) { |