97cadb033e
- Updated .env.example to include SHORT_VIDEO_API_KEY, SHORT_VIDEO_FREE_QUOTA, and SHORT_VIDEO_TIMEOUT_SECONDS. - Enhanced main.go to auto-migrate new VideoParseLog and VideoParseUnlock models. - Introduced VideoService and VideoHandler for handling video-related operations. - Added protected API routes for removing watermarks and unlocking video features. - Updated config.go to support short video configuration settings. - Expanded documentation to reflect new features and configuration options.
19 lines
342 B
Bash
Executable File
19 lines
342 B
Bash
Executable File
# 服务器配置
|
|
SERVER_PORT=8080
|
|
GIN_MODE=debug
|
|
|
|
# 数据库配置
|
|
DB_HOST=localhost
|
|
DB_PORT=3306
|
|
DB_USER=root
|
|
DB_PASSWORD=your_password
|
|
DB_NAME=wx_service
|
|
|
|
# JWT配置
|
|
JWT_SECRET=your-secret-key-change-in-production
|
|
|
|
# 短视频解析配置
|
|
SHORT_VIDEO_API_KEY=replace-with-real-key
|
|
SHORT_VIDEO_FREE_QUOTA=20
|
|
SHORT_VIDEO_TIMEOUT_SECONDS=5
|