feat: add Stow prototype iOS app and Gin backend

This commit is contained in:
2026-10-02 21:23:31 +08:00
commit fe72c1ebd2
30 changed files with 3252 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package api
import "github.com/gin-gonic/gin"
type Response struct {
Code string `json:"code"`
Message string `json:"message"`
Data any `json:"data"`
}
func success(c *gin.Context, status int, data any) {
c.JSON(status, Response{Code: "ok", Message: "success", Data: data})
}
func failure(c *gin.Context, status int, code, message string) {
c.JSON(status, Response{Code: code, Message: message, Data: nil})
}