This commit is contained in:
oneao committed 2026-04-16 21:29:38 +08:00
1 parent 6300778150
commit e893ef2e48
27 files changed
+870 -33

No files matched your search

@@ -1,6 +1,7 @@
package handle
import (
"allapp-go/internal/errors"
"allapp-go/internal/httpx"
"allapp-go/internal/types"
"allapp-go/pkg/db"
@@ -12,7 +13,7 @@ func SaveData(c fiber.Ctx) error {
var req []types.SaveDataReq
if err := httpx.BindAndValidate(c, &req); err != nil {
return err
return errors.WithStack(err)
}
if len(req) == 0 {
@@ -49,7 +50,7 @@ func SaveData(c fiber.Ctx) error {
})
if err != nil {
return err
return errors.WithStack(err)
}
return httpx.OK(c, nil)