初始化提交

This commit is contained in:
2025-10-28 20:40:00 +08:00
commit cda3512456
26 changed files with 1314 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
package com.yolo.keyborad.constant;
/**
* 通用常量
*
* @author yupi
*/
public interface CommonConstant {
/**
* 升序
*/
String SORT_ORDER_ASC = "ascend";
/**
* 降序
*/
String SORT_ORDER_DESC = " descend";
}

View File

@@ -0,0 +1,33 @@
package com.yolo.keyborad.constant;
/**
* 用户常量
*
* @author yupi
*/
public interface UserConstant {
/**
* 用户登录态键
*/
String USER_LOGIN_STATE = "userLoginState";
/**
* 系统用户 id虚拟用户
*/
long SYSTEM_USER_ID = 0;
// region 权限
/**
* 默认权限
*/
String DEFAULT_ROLE = "user";
/**
* 管理员权限
*/
String ADMIN_ROLE = "admin";
// endregion
}