# Agent-Course 示例（最小）

- 创建课程：

```python
# app/api/v1/courses.py 片段（示例）
from fastapi import APIRouter, Depends
from app.api.deps import get_current_user, require_admin
from app.schemas.base import ResponseModel

router = APIRouter()

@router.post("/", dependencies=[Depends(require_admin)])
async def create_course():
    # 省略业务逻辑
    return ResponseModel(code=201, message="created")
```
