All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.lframework.starter.cloud.constants.ResponseConstants Maven / Gradle / Ivy

There is a newer version: 3.1.4
Show newest version
package com.lframework.starter.cloud.constants;

/**
 * 响应常量
 *
 * @author zmj
 */
public class ResponseConstants {

  /**
   * 响应成功状态码
   */
  public static final Integer API_INVOKE_RESULT_SUCCESS_CODE = 200;

  /**
   * 响应失败状态码-传入参数错误
   */
  public static final Integer API_INVOKE_RESULT_FAIL_CODE_INPUT_ERROR = 400;

  /**
   * 响应失败状态码-无登录状态
   */
  public static final Integer API_INVOKE_RESULT_FAIL_CODE_AUTH_EXPIRED = 401;

  /**
   * 响应失败状态码-无权限
   */
  public static final Integer API_INVOKE_RESULT_FAIL_CODE_ACCESS_DENIED = 403;

  /**
   * 响应失败状态码-重复请求
   */
  public static final Integer API_INVOKE_RESULT_FAIL_CODE_REPEAT_REQUEST = 410;

  /**
   * 响应失败状态码-登录失败
   */
  public static final Integer API_INVOKE_RESULT_FAIL_USER_LOGIN_FAIL = 419;

  /**
   * 响应失败状态码
   */
  public static final Integer API_INVOKE_RESULT_FAIL_CODE = 500;

  /**
   * 响应成功信息
   */
  public static final String API_INVOKE_RESULT_SUCCESS_MSG = "success";

  /**
   * 默认响应失败信息
   */
  public static final String API_INVOKE_RESULT_FAIL_MSG = "fail";

  /**
   * 响应成功信息
   */
  public static final String API_INVOKE_RESULT_ERROR_MSG = "系统出现内部错误,请联系系统管理员!";

  /**
   * 响应失败信息-传入参数错误
   */
  public static final String API_INVOKE_RESULT_ERROR_MSG_INPUT_ERROR = "传入参数有误!";

  /**
   * 响应失败信息-无登录状态
   */
  public static final String API_INVOKE_RESULT_ERROR_MSG_AUTH_EXPIRED = "请重新登录!";

  /**
   * 响应失败信息-无权限
   */
  public static final String API_INVOKE_RESULT_ERROR_MSG_ACCESS_DENIED = "无系统权限!";

  /**
   * 响应失败信息-重复请求
   */
  public static final String API_INVOKE_RESULT_ERROR_MSG_REPEAT_REQUEST = "请求过于频繁,请稍后再试!";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy