Teror Fox
400d217aac
feat: 添加推送到Bing支持 (#2379)
* feat(core): 添加 Bing 搜索推送功能
- 在 errorCode.constant.ts 中添加 Bing 相关的错误代码
- 在 configs.dto.ts 中添加 BingSearchOptionDto 类用于配置 Bing 推送选项
- 在 helper.cron.service.ts 中实现 pushToBingSearch 方法进行 Bing 搜索推送
* feat(core): 添加必应搜索推送配置并优化相关功能
- 在默认配置中添加 bingSearchOptions 项
- 更新 BingSearchOptionDto 类,统一字段命名
- 在 IConfig 接口中添加 bingSearchOptions 字段
- 修改 CronService 中的 pushToBingSearch 方法,适配新配置
* build: 更新下载资源链接
- 将 CDN 下载 URL 从 `https://mirror.ghproxy.com/` 更改为 `https://ghfast.top/`
* feat(api-client): 添加 Bing 搜索配置模型
- 新增 BingSearchOptionsModel 类,用于 Bing 搜索的配置选项
- 该模型包括 enable 和 token 两个属性,与 BaiduSearchOptionsModel 类似
* refactor(configs): 统一配置类命名规则
- 将 BingSearchOptionDto 重命名为 BingSearchOptionsDto,与 BaiduSearchOptionsDto 保持一致
- 更新相关引用和配置字段类型
* feat(core): 添加每日凌晨1点执行的 Bing 搜索推送任务
- 在 CronService 类中添加了 pushToBingSearch 方法
- 使用 @CronOnce 装饰器设置任务执行时间为每天凌晨1点
- 任务名称为 'pushToBingSearch'
- 方法描述为 '推送到Bing'
* chore: 添加.eslintcache到.gitignore
- 在.gitignore文件中添加.eslintcache,避免eslint缓存文件被版本控制
* feat(docs): 更新readme
* refactor(core): 优化 Bing 站长提交日志输出
- 修改了 Bing 站长提交结果的日志输出格式
- 当提交成功时,输出简短的成功日志
- 当提交失败时,仍输出详细的错误信息
* Update apps/core/src/processors/helper/helper.cron.service.ts
Co-authored-by: Innei <tukon479@gmail.com>
Signed-off-by: Teror Fox <i@trfox.top>
* chore: 删除废弃的服务器部署脚本
* feat(core): 添加 Bing API 域名无效错误码
- 在 ErrorCodeEnum 枚举中添加 BingDomainInvalid 错误码
- 在 ErrorCode 对象中添加对应的错误信息和状态码
* refactor(core): 修复 Bing 推送异常时返回值问题
---------
Signed-off-by: Teror Fox <i@trfox.top>
Co-authored-by: Innei <tukon479@gmail.com>
2025-03-17 23:46:05 +08:00
..
2024-08-01 22:03:53 +08:00
2023-11-07 23:13:24 +08:00
2024-04-30 15:57:38 +08:00
2024-02-09 21:46:47 +08:00
2022-12-25 18:55:00 +08:00
2025-03-17 23:46:05 +08:00