fix: api descript

This commit is contained in:
wwweww
2026-02-28 05:33:16 +08:00
parent 5930fb0dde
commit d2f33b4b96
243 changed files with 37065 additions and 780 deletions
@@ -6,10 +6,11 @@ package file
import (
"net/http"
"github.com/zeromicro/go-zero/rest/httpx"
"juwan-backend/app/objectstory/api/internal/logic/file"
"juwan-backend/app/objectstory/api/internal/svc"
"juwan-backend/app/objectstory/api/internal/types"
"github.com/zeromicro/go-zero/rest/httpx"
)
// 文件获取接口 (如果是私有文件,通过此接口获取或重定向)
@@ -22,11 +23,11 @@ func GetFileHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
}
l := file.NewGetFileLogic(r.Context(), svcCtx)
err := l.GetFile(&req)
url, err := l.GetFile(&req)
if err != nil {
httpx.ErrorCtx(r.Context(), w, err)
} else {
httpx.Ok(w)
http.Redirect(w, r, url, http.StatusTemporaryRedirect)
}
}
}