@@ -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)