- 创建头像上传API接口 (POST /api/v1/users/:id/avatar) - 实现完整的头像上传逻辑,包含权限验证和文件处理 - 添加头像图片处理功能,支持自动压缩和居中裁剪 - 完善静态文件服务,支持头像访问 - 创建完整的API测试用例 - 更新任务进度文档 任务11已完成,项目完成率提升至37.5%
28 lines
466 B
Plaintext
28 lines
466 B
Plaintext
syntax = "v1"
|
|
|
|
info (
|
|
title: "Photography Portfolio API"
|
|
desc: "摄影作品集 API 服务"
|
|
author: "Photography Team"
|
|
email: "team@photography.com"
|
|
version: "v1.0.0"
|
|
)
|
|
|
|
import "common.api"
|
|
import "auth.api"
|
|
import "user.api"
|
|
import "photo.api"
|
|
import "category.api"
|
|
|
|
// 健康检查接口 (无需认证)
|
|
@server (
|
|
group: health
|
|
prefix: /api/v1
|
|
)
|
|
service photography-api {
|
|
@doc "健康检查"
|
|
@handler health
|
|
get /health returns (BaseResponse)
|
|
}
|
|
|