Commit Graph

12 Commits

Author SHA1 Message Date
kingecg 284689cb60 chore: update module path to git.kingecg.top 2025-06-26 00:48:10 +08:00
kingecg 2c7b8f52fc chore: update module path to git.kingecg.top 2025-06-25 23:36:30 +08:00
kingecg f1f815efb6 chore: update module path to git.kingecg.top 2025-06-25 22:30:57 +08:00
kingecg 1ec22fb7b1 chore: update module path to git.kingecg.top 2025-06-25 21:35:08 +08:00
kingecg 4b4b4adf05 feat(coperator): 添加逻辑操作符支持
- 新增了 `$and`、`$or`、`$nor` 等逻辑操作符的支持
- 更新了 README.md 中的操作符列表
2025-06-19 22:24:32 +08:00
kingecg 4257e7a3d6 feat(coperator): 添加逻辑运算符支持
- 在 operatorMap 中添加 $and、$or 和 $nor 运算符
- 新增 logic.go 文件实现逻辑运算符的功能
- operatorAnd: 所有子过滤器都必须匹配
- operatorOr: 任意一个子过滤器匹配即可
- operatorNor: 所有子过滤器都不匹配
2025-06-19 21:08:13 +08:00
kingecg 0772d8e2fe refactor(coperator): 将 Filter 类型断言改为 map[string]interface{} 类型
- 修改了 DocumentOperator 和 FieldOperator 函数中的 Filter 类型断言
- 将其改为 map[string]interface{} 类型,以提高灵活性和兼容性
- 更新了相关测试文件中的 Filter 类型为 map[string]interface{}
2025-06-19 21:01:26 +08:00
kingecg 3750e9ddd9 refactor(coperator): 将 Filter 类型从 map 修改为接口
- 将 Filter 类型从 map[string]interface{} 修改为 interface{}
- 在 DocumentOperator 和 FieldOperator 函数中添加 filter 类型检查
- 修改函数参数名称以适应新的 Filter 类型
- 优化错误处理,当 filter 类型不正确时返回错误
2025-06-19 20:52:17 +08:00
kingecg 32250ddaaa docs(README): 更新项目文档
- 添加项目简介、安装方法、核心功能说明
- 提供使用示例代码
- 增加测试和贡献指南
- 附上许可证信息
2025-06-19 20:33:43 +08:00
kingecg 9c2512ea96 feat(coperator): 实现比较运算符功能
- 新增 compare 函数用于比较两个任意类型的值
- 实现了 $gt、$ge、$lt、$le、$eq、$ne、$in、$nin 等比较运算符
- 更新了 DocumentOperator 函数,支持使用比较运算符进行过滤
- 添加了比较运算符相关的单元测试
2025-06-19 20:22:04 +08:00
程广 93fd7363a3 feat: 实现了一个基本的文档过滤器
- 添加了 Document、Array 和 Object 接口的实现
- 实现了 DocumentOperator、ValueOperator 和 FieldOperator 函数
- 添加了 operatorGt 函数作为示例操作符
- 编写了相关测试用例以验证功能正确性
2025-06-19 17:56:05 +08:00
kingecg 6aff4d7f48 Initial commit 2025-06-19 10:16:42 +08:00