From 30f137e85a76420d872a96c30b2177f59e9706d2 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期一, 17 七月 2023 16:13:59 +0800
Subject: [PATCH] add

---
 api/v1/user.go |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/api/v1/user.go b/api/v1/user.go
index baf9e7e..bd53901 100644
--- a/api/v1/user.go
+++ b/api/v1/user.go
@@ -81,10 +81,11 @@
 	logx.Infof("TokenNext user:%+v", user)
 	j := &utils.JWT{SigningKey: []byte(conf.Conf.JWT.SigningKey)} // 鍞竴绛惧悕
 	claims := j.CreateClaims(request.BaseClaims{
-		UserId:   user.ID,
-		Username: user.Username,
-		ParentId: user.ParentName,
-		UserType: user.UserType,
+		UserId:      user.ID,
+		Username:    user.Username,
+		ParentId:    user.ParentName,
+		UserType:    user.UserType,
+		AuthorityId: user.AuthorityId,
 	})
 	token, err := j.CreateToken(claims)
 	if err != nil {

--
Gitblit v1.8.0