🗃️ Update models

This commit is contained in:
LittleSheep 2024-02-21 20:40:39 +08:00
parent 3b0cbbb6c9
commit 3393f751a0
2 changed files with 6 additions and 7 deletions

View File

@ -9,11 +9,12 @@ service Auth {
} }
message Userinfo { message Userinfo {
string name = 1; uint64 id = 1;
string nick = 2; string name = 2;
string email = 3; string nick = 3;
string avatar = 4; string email = 4;
optional string description = 5; string avatar = 5;
optional string description = 6;
} }
message AuthRequest { message AuthRequest {

View File

@ -3,7 +3,6 @@ package server
import ( import (
"code.smartsheep.studio/hydrogen/identity/pkg/security" "code.smartsheep.studio/hydrogen/identity/pkg/security"
"code.smartsheep.studio/hydrogen/identity/pkg/services" "code.smartsheep.studio/hydrogen/identity/pkg/services"
"fmt"
"github.com/gofiber/fiber/v2" "github.com/gofiber/fiber/v2"
"strings" "strings"
) )
@ -21,7 +20,6 @@ func authMiddleware(c *fiber.Ctx) error {
c.Locals("token", token) c.Locals("token", token)
if err := authFunc(c); err != nil { if err := authFunc(c); err != nil {
fmt.Println("Watch out!", err)
return err return err
} }