Init: setup uptrace and swagger

This commit is contained in:
2025-12-07 03:28:07 +08:00
parent a4096bf1a7
commit 56e83b0725
28 changed files with 662 additions and 81 deletions

27
handlers/api/getImages.go Normal file
View File

@@ -0,0 +1,27 @@
package api
import (
"net/http"
"gitea.konchin.com/go2025/backend/utils"
"github.com/uptrace/bunrouter"
)
type getImagesOutputImage struct {
Id int64 `json:"id"`
Uploader string `json:"uploaded_user_id"`
UploadTS int64 `json:"uploaded_at"`
Aliases []string `json:"aliases"`
}
// GetImages
//
// @success 200 {object} getImagesOutputImage
// @failure 400
// @failure 401
// @router /api/images [get]
func (self *Handlers) GetImages(
w http.ResponseWriter, req bunrouter.Request,
) error {
return utils.Success(w)
}