2020-02-13 10:48:51 +08:00
|
|
|
|
package com.ruoyi.common.constant;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 通用常量信息
|
2021-06-04 16:46:28 +08:00
|
|
|
|
*
|
2020-02-13 10:48:51 +08:00
|
|
|
|
* @author ruoyi
|
|
|
|
|
*/
|
2021-12-02 14:18:20 +08:00
|
|
|
|
public interface Constants {
|
|
|
|
|
|
2020-02-13 10:48:51 +08:00
|
|
|
|
/**
|
|
|
|
|
* UTF-8 字符集
|
|
|
|
|
*/
|
2021-12-02 14:18:20 +08:00
|
|
|
|
String UTF8 = "UTF-8";
|
2020-05-14 16:25:43 +08:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* GBK 字符集
|
|
|
|
|
*/
|
2021-12-02 14:18:20 +08:00
|
|
|
|
String GBK = "GBK";
|
2020-05-14 16:25:43 +08:00
|
|
|
|
|
2020-05-27 09:05:31 +08:00
|
|
|
|
/**
|
|
|
|
|
* http请求
|
|
|
|
|
*/
|
2021-12-02 14:18:20 +08:00
|
|
|
|
String HTTP = "http://";
|
2020-05-27 09:05:31 +08:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* https请求
|
|
|
|
|
*/
|
2021-12-02 14:18:20 +08:00
|
|
|
|
String HTTPS = "https://";
|
2020-05-27 09:05:31 +08:00
|
|
|
|
|
2020-02-13 10:48:51 +08:00
|
|
|
|
/**
|
|
|
|
|
* 通用成功标识
|
|
|
|
|
*/
|
2021-12-02 14:18:20 +08:00
|
|
|
|
String SUCCESS = "0";
|
2020-02-13 10:48:51 +08:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 通用失败标识
|
|
|
|
|
*/
|
2021-12-02 14:18:20 +08:00
|
|
|
|
String FAIL = "1";
|
2020-02-13 10:48:51 +08:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 登录成功
|
|
|
|
|
*/
|
2021-12-02 14:18:20 +08:00
|
|
|
|
String LOGIN_SUCCESS = "Success";
|
2020-02-13 10:48:51 +08:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 注销
|
|
|
|
|
*/
|
2021-12-02 14:18:20 +08:00
|
|
|
|
String LOGOUT = "Logout";
|
2020-02-13 10:48:51 +08:00
|
|
|
|
|
2021-08-02 11:21:09 +08:00
|
|
|
|
/**
|
|
|
|
|
* 注册
|
|
|
|
|
*/
|
2021-12-02 14:18:20 +08:00
|
|
|
|
String REGISTER = "Register";
|
2021-08-02 11:21:09 +08:00
|
|
|
|
|
2020-02-13 10:48:51 +08:00
|
|
|
|
/**
|
|
|
|
|
* 登录失败
|
|
|
|
|
*/
|
2021-12-02 14:18:20 +08:00
|
|
|
|
String LOGIN_FAIL = "Error";
|
2020-02-13 10:48:51 +08:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 验证码有效期(分钟)
|
|
|
|
|
*/
|
2021-12-02 14:18:20 +08:00
|
|
|
|
Integer CAPTCHA_EXPIRATION = 2;
|
2020-02-13 10:48:51 +08:00
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 令牌
|
|
|
|
|
*/
|
2021-12-02 14:18:20 +08:00
|
|
|
|
String TOKEN = "token";
|
2020-02-13 10:48:51 +08:00
|
|
|
|
|
|
|
|
|
}
|
2022-01-07 15:41:18 +08:00
|
|
|
|
|