Skip to content

TokenTeam/iwut-smartclass-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

掌理智慧课堂后端

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •