Browse Source

add comment

sunsheng 8 months ago
parent
commit
4ea98e8476
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/api/utils.go

+ 1 - 0
src/api/utils.go

@@ -9,6 +9,7 @@ import (
 	"go.mongodb.org/mongo-driver/bson/primitive"
 )
 
+// 这里需要nats获取通用用户信息,因为spu3d中功能聚合了lancher的功能
 func getUserRole(_ *gin.Context, apictx *ApiSession) ([]string, error) {
 	if apictx.User != nil {
 		userId, _ := primitive.ObjectIDFromHex(apictx.User.Parent)