🗃️ 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 {
string name = 1;
string nick = 2;
string email = 3;
string avatar = 4;
optional string description = 5;
uint64 id = 1;
string name = 2;
string nick = 3;
string email = 4;
string avatar = 5;
optional string description = 6;
}
message AuthRequest {

View File

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