/**
 * Http 通用响应对象
 */
export interface CommonResult<T = unknown> {
    code: ResultCode;
    msg: string;
    total: number;
    data: T;
}

/**
 * Http 响应结果状态码
 */
export enum ResultCode {
    Success = 200, //成功
    Error = 101, //发生错误
    Fail = 102, //失败
    Warning = 103, //非法请求
    Unauthorized = 201, //授权失败
    ParameterError = 202, //参数错误
    InvalidToken = 203, //令牌无效
    InvalidSign = 204, //签名无效
}