用DDD分项目模块

This commit is contained in:
2025-10-05 01:46:48 +08:00
parent 48461b9c49
commit 28acc5104c
41 changed files with 1138 additions and 17 deletions

19
server/api/upload.api Normal file
View File

@@ -0,0 +1,19 @@
type (
UploadImageResp {
Code int `json:"code"` // 业务状态码
Message string `json:"message"` // 提示信息
Data {
Url string `json:"url"` // 图片访问地址
} `json:"data"`
}
)
@server (
group: upload
prefix: /api
)
service upload-api {
@handler UploadImageHandler
post /upload/image returns (UploadImageResp)
}