Created response structs and a json response util.

This commit is contained in:
2026-05-01 07:50:31 +02:00
parent 85b83a0741
commit 6f9e37b69a
4 changed files with 71 additions and 49 deletions
+18
View File
@@ -0,0 +1,18 @@
package web
type ErrorResponse struct {
Error string `json:"error"`
}
type SuccessResponse struct {
Message string `json:"message"`
}
type AuthResponse struct {
AccessToken string `json:"access_token"`
RefreshToken string `json:"refresh_token"`
}
type RefreshTokenReq struct {
RefreshToken string `json:"refresh_token"`
}