Files
yexuejc-base/src/main/java/com/yexuejc/base/constant/RespConsts.java
maxf d1f0cd695e
Some checks failed
yexuejc-base package jre11 / package_job (push) Has been cancelled
[update] 优化RSA加签验签部分
2025-08-25 21:57:34 +08:00

63 lines
1.7 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package com.yexuejc.base.constant;
/**
* 网络请求统一返回 常量
*
* @PackageName: com.yexuejc.util.base
* @Description:
* @author: maxf
* @date: 2017/12/27 16:47
*/
public class RespConsts {
private RespConsts() {
}
/**
* HTTP请求Header字段用户登录认证凭证
*/
public static String HEADER_AUTHORIZATION = "Authorization";
/**
* HTTP请求Header字段用户未登录时返回认证要求
*/
public static String HEADER_WWW_AUTHENTICATE = "www-authenticate";
/**
* HTTP请求Header字段客户端信息
*/
public static String HEADER_X_USER_AGENT = "X-User-Agent";
/**
* HTTP请求Header字段Content-Type
*/
public static String HEADER_CONTENT_TYPE = "Content-Type";
/**
* www-authenticate字段可选值jwt认证
*/
public static String WWW_AUTHENTICATE_JWT = "jwt";
/**
* 成功
*/
public static final String CODE_SUCCESS = "S";
public static final String MSG_SUCCESS_HTTP = "请求成功";
public static final String MSG_SUCCESS_OPERATE = "操作成功";
/**
* 失败
*/
public static final String CODE_FAIL = "F";
public static final String MSG_FAIL_HTTP = "请求失败";
public static final String MSG_FAIL_OPERATE = "操作失败";
/**
* 错误
*/
public static final String CODE_ERROR = "E";
public static final String MSG_ERROT_HTTP = "请求错误";
public static final String MSG_ERROT_OPERATE = "操作错误";
/**
* 参数校验错误
*/
public static final String CODE_VALIDATION = "V";
public static final String MSG_VALIDATION = "参数错误";
}