From 76fd17c0f097a4cffd740f214b471f7ce650a638 Mon Sep 17 00:00:00 2001 From: yanweidong Date: Fri, 15 Mar 2024 15:18:54 +0800 Subject: [PATCH] dev --- encipher/aes.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/encipher/aes.go b/encipher/aes.go index 9a54182..9a2db64 100644 --- a/encipher/aes.go +++ b/encipher/aes.go @@ -26,7 +26,7 @@ func New() { JwtSecretLen = len(env.MeshEnv.JwtSecretKey) } -func GenerateTokenAes(id uint, identity, client, role string, extend map[string]string) (string, error) { +func GenerateTokenAes(id uint, identity, client, role string, owner any, extend map[string]string) (string, error) { if (JwtSecretLen == 16 || JwtSecretLen == 24 || JwtSecretLen == 32) == false { return "", exception.ErrAuthSecret } @@ -35,7 +35,7 @@ func GenerateTokenAes(id uint, identity, client, role string, extend map[string] ID: id, Identity: identity, Extend: extend, - Client: client, + Owner: owner, Role: role, ExpiresAt: expireTime.Unix(), }