Files
91-api-server/main.go
2026-06-10 03:29:17 +00:00

28 lines
1.2 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package main
import "api-server/cmd"
// @title api-server — sol148-extractor API 服务平台
// @version 1.0.0
// @description 基于 Go + Gin 的高性能 API 服务,将 sol148-extractor 的功能封装为 RESTful API。
// @description 提供视频源提取、作者/分类视频列表、IP 地理位置解析、请求统计分析等能力。
// @description
// @description ## 核心功能
// @description - **视频提取** — 从视频播放页提取正片源地址strencode2 → unescape → mp4
// @description - **分类浏览** — 10 个分类的视频列表(分页 / 全量)
// @description - **作者浏览** — 按 UID 查看作者全部视频
// @description - **批量提取** — 并发提取多个视频源
// @description - **统计监控** — QPS / 延迟百分位 / 地理分布 / 并发等
// @description
// @description ## 内置前端
// @description - `/` — 运维仪表盘Chart.js 暗色主题)
// @description - `/video` — 视频浏览网站(完整 SPA
// @description
// @contact.name QwenPaw
// @license.name MIT
// @host localhost:8080
// @BasePath /api
func main() {
cmd.Execute()
}