From 5d7b65670282a4fad015e37d567cfa171b162052 Mon Sep 17 00:00:00 2001
From: huliguo <2023611923@qq.com>
Date: 星期二, 20 五月 2025 12:25:19 +0800
Subject: [PATCH] 基础代码

---
 pt-common/src/main/java/com/ruoyi/common/constant/TokenConstants.java |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/pt-common/src/main/java/com/ruoyi/common/constant/TokenConstants.java b/pt-common/src/main/java/com/ruoyi/common/constant/TokenConstants.java
new file mode 100644
index 0000000..cbd82e0
--- /dev/null
+++ b/pt-common/src/main/java/com/ruoyi/common/constant/TokenConstants.java
@@ -0,0 +1,35 @@
+package com.ruoyi.common.constant;
+
+/**
+ * Token的Key常量
+ * 
+ * @author ruoyi
+ */
+public class TokenConstants
+{
+    /**
+     * 令牌自定义标识
+     */
+    public static final String AUTHENTICATION = "Authorization";
+
+    /**
+     * 令牌前缀
+     */
+    public static final String PREFIX = "Bearer ";
+
+    /**
+     * 令牌秘钥
+     */
+    public final static String SECRET = "abcdefghijklmnopqrstuvwxyz";
+    
+    /**
+     * 参数签名
+     */
+    public static final String SIGN = "sign";
+    
+    /**
+     * 参数随机字符串
+     */
+    public static final String NONCE_STR = "nonce_str";
+
+}

--
Gitblit v1.7.1