logo
0
0
Login
dependabot[bot]<49699333+dependabot[bot]@users.noreply.github.com>
build(deps): bump github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common (#51)

iwut-smartclass-backend

Project Structure

. ├── .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

Development

Prerequisites

  • Go 1.24+
  • MySQL 5.7+

Build and run

go build -o server ./cmd chmod +x ./server ./server

Configuration

Example: .env.example

Priority: Environment variables > .env

API Documentation

Get Course Information GET /getCourse

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 } } }

Generate AI Summary POST /generateSummary

Body:

{ "sub_id": "1111111", "token": "eyXX", "task": "new" }

Response:

{ "code": 200, "msg": "OK", "data": { "sub_id": 1111111, "summary_status": "generating" } }

About

No description, topics, or website provided.
574.00 KiB
0 forks0 stars2 branches6 TagREADMEMIT license
Language
Go98.8%
Dockerfile1.2%