165 Commits

Author SHA1 Message Date
0b7b741d8f 更新部署讨论链接至新的网址 2025-06-24 20:03:22 +08:00
c577a827a2 调整定期保存任务的时间间隔,从每5分钟改为每1分钟,并优化域名统计结果的排序逻辑,增加了在访问次数相同时按域名首字母排序的功能。 2025-06-20 14:24:09 +08:00
d944c11afb 新增域名统计功能,包括模型、服务和路由的实现,优化管理后台以支持域名访问统计的获取。 v1.0.4 2025-06-19 19:59:58 +08:00
3a25300b10 调整GORM日志级别,从Info级别改为Warn级别,以减少日志输出并提高系统性能。 2025-06-19 18:58:55 +08:00
32b1cd94ff 新增FetchURLsWithOptions方法以支持跳过缓存的URL获取,并更新RefreshDataSource方法以实现强制刷新数据源的功能。同时,调整Preloader中的数据源刷新逻辑以使用新方法。 2025-06-18 17:17:44 +08:00
1949c8e9f3 修复当a端点引用b端点, a端点的url替换规则不生效的问题 v1.0.3 2025-06-16 09:28:02 +08:00
d7c60d578c 调整S3存储的刷新间隔时间,从每6小时改为每24小时,以统一与其他数据源的刷新策略。 v1.0.2 2025-06-15 23:39:27 +08:00
4150df03cf 新增对S3对象存储的支持,更新数据源配置和管理界面,优化数据源预加载逻辑,重构相关数据处理逻辑,提升系统灵活性和可维护性。 2025-06-15 23:38:55 +08:00
e21b5dac5f 在首页添加GitHub链接,优化导航体验。 2025-06-15 20:27:24 +08:00
wood chen
648e7f69cf
Merge pull request #4 from woodchen-ink/dependabot/go_modules/golang.org/x/time-0.12.0
chore(deps): bump golang.org/x/time from 0.11.0 to 0.12.0
v1.0.1
2025-06-15 06:17:45 +08:00
c050955157 新增数据预加载功能,优化配置缓存逻辑,支持健康检查接口,调整兰空图床获取器的重试机制(指数退避),提升系统性能和稳定性。 2025-06-15 06:12:46 +08:00
26d214c44b 更新favicon图标,修改布局文件中的标题和描述以提升准确性和用户体验。 v1.0.0 2025-06-14 23:34:27 +08:00
c3dc214f9b 移除CachedURL模型及相关缓存逻辑,更新数据源处理逻辑以使用内存缓存,调整缓存时长设置,优化数据源管理界面,简化代码结构,提升性能和可维护性。 2025-06-14 22:24:30 +08:00
310f627a9e 优化首页布局,更新背景图链接,调整样式以提升视觉效果;简化系统状态和API端点统计部分的展示,增强用户体验。 2025-06-14 22:03:52 +08:00
10b530ee3c 在管理后台布局中引入Next.js的Link组件,优化导航链接的实现方式,提升用户体验。 2025-06-14 20:32:37 +08:00
5960444dc9 重构处理器逻辑,统一Handler命名为handler,更新相关引用;重命名模型为model,优化数据库迁移和配置获取逻辑,移除不再使用的处理器文件,简化代码结构。 2025-06-14 20:24:34 +08:00
bcc333b142 重构路由设置逻辑,统一配置所有路由,新增公开首页配置处理方法,更新前端API调用路径以匹配新路由结构。 2025-06-14 20:17:41 +08:00
5176cc85db 重构Handlers结构,新增HandlePublicEndpoints方法以处理公开端点信息请求,优化URL统计缓存逻辑,更新Router以支持新路由,简化认证信息管理,移除不再使用的刷新令牌逻辑。 2025-06-14 20:00:01 +08:00
0465adbb36 更新UpdateEndpoint方法,优化字段更新逻辑,避免覆盖created_at和sort_order字段,同时支持条件更新sort_order字段。 2025-06-14 19:28:50 +08:00
7ba8856e57 移除静态文件处理中的调试日志,简化代码逻辑,保持功能一致性。 2025-06-14 19:11:45 +08:00
797a941172 重构静态文件处理逻辑,新增tryFiles方法以实现类似Nginx的try_files功能,优化路径处理和调试日志;移除不再使用的resolveFilePath方法,简化ServeStatic逻辑。 2025-06-14 19:11:24 +08:00
2394ef7f15 更新静态文件处理逻辑,新增resolveFilePath方法以处理Next.js静态导出的路由问题;在路由处理器中规范化路径以解决尾斜杠问题;禁用尾斜杠以避免路由冲突;在管理端点页面中添加编辑功能,支持更新端点信息。 2025-06-14 19:03:58 +08:00
2c0073f266 更新Dockerfile以简化前端依赖安装和源代码复制流程,调整工作目录和构建命令,优化构建过程。 2025-06-14 18:05:33 +08:00
bb8c011062 删除不再使用的.dockerignore文件,清理项目中的多余配置,优化Docker构建过程。 2025-06-14 17:59:22 +08:00
3f27f418fa 删除Docker部署说明文档,更新Dockerfile以使用Node.js 22版本,并简化GitHub Actions工作流,移除多余的步骤和配置,优化构建和推送过程。 2025-06-14 17:58:19 +08:00
641f00de96 更新Dockerfile以优化前后端构建流程,添加必要的配置文件复制,调整用户权限,增强安全性。同时更新.gitignore以排除新生成的文件和目录。 2025-06-14 17:54:44 +08:00
de92403f68 更新Dockerfile以安装前端依赖,包括开发依赖,支持构建过程 2025-06-14 17:45:16 +08:00
dependabot[bot]
fc53459b92
chore(deps): bump golang.org/x/time from 0.11.0 to 0.12.0
Bumps [golang.org/x/time](https://github.com/golang/time) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/time/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/time
  dependency-version: 0.12.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-06-14 09:41:58 +00:00
f2456e116b 删除不再使用的配置文件和脚本,更新Dockerfile以支持前后端构建,重构配置加载逻辑,添加OAuth2.0支持,优化API处理和路由设置。 2025-06-14 17:40:31 +08:00
efd55448e1 fix(album_mapping.json): 添加缺失的相册ID以确保CSV生成的完整性 2025-05-27 07:38:35 +08:00
54067cd123 fix(album_mapping.json): 移除不再使用的相册ID,更新生成CSV的逻辑以读取本地配置 2025-05-17 17:01:48 +08:00
bd5f86d928 fix(index.md): 更新帖子链接为新域名 2025-04-18 19:55:47 +08:00
bd1e91ada7 fix(css): 更新背景图像链接为正常图像 2025-04-12 10:24:41 +08:00
4f5f639108 refactor(public/index.html): 移除不必要的样式标签和分析脚本 2025-04-12 10:21:35 +08:00
2fb9100f00 refactor(public/index.html): 移除不再使用的字体样式链接
移除不再使用的 `czlfonts/slice/font.css` 链接,以简化页面加载并减少不必要的资源请求
2025-03-20 18:52:46 +08:00
56e4dc6f25 gomod tidy 2025-03-14 00:39:45 +08:00
wood chen
3487895c01
Merge pull request #3 from woodchen-ink/dependabot/go_modules/golang.org/x/time-0.11.0
chore(deps): bump golang.org/x/time from 0.10.0 to 0.11.0
2025-03-14 00:23:05 +08:00
dependabot[bot]
dab19ef252
chore(deps): bump golang.org/x/time from 0.10.0 to 0.11.0
Bumps [golang.org/x/time](https://github.com/golang/time) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/time/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/time
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-10 16:06:46 +00:00
wood chen
1e3086a393
Update readme.md 2025-02-15 02:00:05 +08:00
wood chen
8654132e7b
Merge pull request #2 from woodchen-ink/dependabot/go_modules/golang.org/x/time-0.10.0
chore(deps): bump golang.org/x/time from 0.9.0 to 0.10.0
2025-02-11 15:03:56 +08:00
dependabot[bot]
d6b91cd6bf
chore(deps): bump golang.org/x/time from 0.9.0 to 0.10.0
Bumps [golang.org/x/time](https://github.com/golang/time) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/time/compare/v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/time
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-10 15:42:29 +00:00
e02a5d7a13 对 CSV 内容格式验证的增强:
- 在`loadCSVContent` 函数中添加了严格的 URL 格式验证
- 增加了对空文件的检查
- 添加了对非法字符的检查
- 优化了错误信息的处理和返回
- 保留了对注释行和空行的过滤
- 维持了 URL 去重的功能
2025-01-27 23:46:08 +08:00
wood chen
701cb70fdb
Merge pull request #1 from woodchen-ink/dependabot/go_modules/golang.org/x/time-0.9.0
chore(deps): bump golang.org/x/time from 0.8.0 to 0.9.0
2025-01-15 01:20:40 +08:00
dependabot[bot]
dac8619e3f
chore(deps): bump golang.org/x/time from 0.8.0 to 0.9.0
Bumps [golang.org/x/time](https://github.com/golang/time) from 0.8.0 to 0.9.0.
- [Commits](https://github.com/golang/time/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: golang.org/x/time
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-06 16:10:58 +00:00
4bb4ba1460 Merge branch 'main' of https://github.com/woodchen-ink/random-api-go 2025-01-04 19:31:02 +08:00
075a3f19e7 fix(public): 更新 index.md 中的帖子链接到正确的 URL 2025-01-04 19:31:00 +08:00
wood chen
3e3e7408b7
Update readme.md 2025-01-04 19:29:27 +08:00
wood chen
0bf2bd3adb
Update readme.md 2025-01-01 02:56:21 +08:00
885ce7e187 fix(public): 更新 index.md 中的链接到正确的 URL 2025-01-01 02:56:10 +08:00
ec06638654 Merge branch 'main' of https://github.com/woodchen-ink/random-api-go 2025-01-01 01:36:25 +08:00