yanlongqi f791c235e1 添加题目练习功能模块
实现了完整的题目练习功能,包括后端API和前端界面:
- 后端新增题目管理handlers和数据模型
- 前端新增题目展示页面和API调用模块
- 添加题库数据文件支持
- 更新路由配置以集成新功能

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 20:26:53 +08:00
2025-11-03 20:26:53 +08:00
2025-11-03 20:26:53 +08:00
2025-11-03 11:48:39 +08:00
2025-11-03 20:26:53 +08:00
2025-11-03 20:26:53 +08:00
2025-11-03 20:26:53 +08:00
2025-11-03 11:48:39 +08:00

AnKao Web 项目

这是一个使用Go语言和Gin框架构建的Web应用项目。

项目结构

AnKao/
├── main.go              # 主程序入口
├── internal/            # 私有应用代码
│   ├── handlers/        # HTTP请求处理器
│   ├── middleware/      # 中间件
│   └── models/          # 数据模型
├── pkg/                 # 公共库代码
│   └── config/          # 配置管理
├── go.mod              # Go模块文件
└── README.md           # 项目说明

快速开始

运行服务器

go run main.go

服务器将在 http://localhost:8080 启动

API端点

  • GET / - 首页,返回欢迎信息
  • GET /api/health - 健康检查端点

开发

安装依赖

go mod tidy

构建

go build -o bin/server.exe main.go

运行编译后的程序

# Windows
.\bin\server.exe

# Linux/Mac
./bin/server

特性

  • 基于 Gin 框架的高性能 HTTP 服务器
  • 自定义日志中间件
  • RESTful API 结构
  • 健康检查端点
  • 支持数据库集成(预留结构)

技术栈

  • Go 1.25.1
  • Gin v1.11.0 - Web 框架
  • 清晰的项目架构,易于扩展
Description
保密考试刷题
http://ankao.yuchat.top
Readme 3 MiB
Languages
TypeScript 53.7%
Go 30.6%
Less 15.1%
HTML 0.6%