修改api结构

This commit is contained in:
2025-11-01 23:38:51 +08:00
parent c2db98cd76
commit 6351539237
21 changed files with 0 additions and 0 deletions

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)
}