update 优化 统一登录接口令牌key

This commit is contained in:
疯狂的狮子li
2023-03-13 15:43:08 +08:00
parent 89d3c962d9
commit e380bc250e
4 changed files with 7 additions and 61 deletions

View File

@@ -81,4 +81,6 @@ public interface Constants {
*/
String REPEAT_SUBMIT_KEY = "repeat_submit:";
String ACCESS_TOKEN = "access_token";
}

View File

@@ -1,43 +0,0 @@
package com.ruoyi.common.core.constant;
/**
* 权限相关通用常量
*
* @author Lion Li
*/
public interface SecurityConstants {
/**
* 用户ID字段
*/
String DETAILS_USER_ID = "user_id";
/**
* 用户名字段
*/
String DETAILS_USERNAME = "username";
/**
* 授权信息字段
*/
String AUTHORIZATION_HEADER = "authorization";
/**
* 请求来源
*/
String FROM_SOURCE = "from-source";
/**
* 内部请求
*/
String INNER = "inner";
/**
* 用户标识
*/
String USER_KEY = "user_key";
/**
* 登录用户
*/
String LOGIN_USER = "login_user";
}

View File

@@ -1,13 +0,0 @@
package com.ruoyi.common.core.constant;
/**
* 服务名称
*
* @author Lion Li
*/
public interface ServiceNameConstants {
String AUTH_SERVICE = "ruoyi-auth";
String SYSTEM_SERVICE = "ruoyi-system";
String FILE_SERVICE = "ruoyi-file";
}