. ├── .github │ └── workflows # GitHub Actions workflows ├── assets │ └── assets # Static resource files │ └── templates # Templates ├── cmd # Application entry point └── internal # Internal application logic ├── asr # ASR with Tencent Cloud ├── config # Configuration files loading logic ├── cos # COS with Tencent Cloud ├── database # Database related code ├── handler # HTTP handlers ├── middleware # Middleware ├── router # Route definitions ├── service # Business logic │ ├── course # Course related services │ └── summary # Summary related services └── util # Utilities
go build -o server ./cmd
chmod +x ./server
./server
Example: .env.example
Priority: Environment variables > .env
Body:
{
"course_name": "高等数学A下",
"date": "2025-03-26",
"token": "eyXX"
}
Response:
{
"code": 200,
"msg": "OK",
"data": {
"course_id": 11111,
"sub_id": 1111111,
"name": "高等数学A下",
"teacher": "",
"location": "",
"date": "2025-03-26第1-2节",
"time": "08:00-09:40",
"video": "https://site/play/default/2025/03/26/123_1920_1080.mp4",
"summary": {
"status": "",
"data": "",
"model": "deepseek-chat",
"token": 10000
}
}
}
Body:
{
"sub_id": "1111111",
"token": "eyXX",
"task": "new"
}
Response:
{
"code": 200,
"msg": "OK",
"data": {
"sub_id": 1111111,
"summary_status": "generating"
}
}