package com.ag.secp.platform.jwt;

/**
 * Description: 数据返回状态码
 * Author: songwp
 * Version: 1.0
 * Create Date: 2021/9/3
 */
public interface ResultCode {

    //请求成功
    int SUCCESS = 1;
    String SUCCESS_MSG = "请求成功";
    //请求失败
    int FAILED = 0;

    String FAILED_MSG = "请求失败";

    String FAILED_MSG_img = "图片不存在";

    //登录--用户名或密码错误
    String USERNAME_OR_PASSWORD_ERROR_MSG = "用户名或密码错误";
    String USER_FROZEN = "账号已冻结";
    String USER_IS_NULL = "无此用户";
    String USER_IS_EXISTS = "用户名已存在";

    String TOKEN_VERIFY_ERROR = "token验证失败";
    String TOKEN_KEY = "token";
    String TOKEN_KEY_HEADER_AUTHORIZATION = "Authorization";
    String TOKEN_KEY_HEADER_AUTHORIZATION_BEARER = "Bearer";

    //系统繁忙，请稍候再试
    Integer SYSTEM_BUSY = -1;
    //请求参数不合法
    Integer ILLEGAL_PARAMETER = 40000;
    //需要 GET 请求
    Integer GET_REQUEST = 43001;
    //需要 POST 请求
     Integer POST_REQUEST = 43002;
    //需要 HTTPS 请求
    Integer HTTPS_REQUEST = 43003;
    //API 调用太频繁，请稍候再试
    Integer API_BUSY = 45011;
    //系统错误 (system error)
     Integer SERVE_ERROR = 61450;

    //(Illegal token)
    Integer ILLEGAL_TOKEN = 50008;
    //Other clients logged in
    Integer OTHERCLIENTS_LOGININ = 50012;
    //Token expired
    Integer TOKEN_EXPIRED = 50014;
    //会话过期，请重新登录
    Integer LOGIN_REQUIRED = 70500;
}
