package com.atguigu.daijia.common.result;
import lombok.Getter;
/**
* 統一返回結果狀態資訊類
*
*/
@Getter
public enum ResultCodeEnum {
SUCCESS(200,"成功"),
FAIL(201, "失敗"),
SERVICE_ERROR(2012, "服務異常"),
DATA_ERROR(204, "資料異常"),
ILLEGAL_REQUEST(205, "非法請求"),
REPEAT_SUBMIT(206, "重複提交"),
FEIGN_FAIL(207, "遠端呼叫失敗"),
UPDATE_ERROR(204, "資料更新失敗"),
ARGUMENT_VALID_ERROR(210, "引數校驗異常"),
SIGN_ERROR(300, "簽名錯誤"),
SIGN_OVERDUE(301, "簽名已過期"),
VALIDATECODE_ERROR(218 , "驗證碼錯誤"),
LOGIN_AUTH(208, "未登陸"),
PERMISSION(209, "沒有許可權"),
ACCOUNT_ERROR(214, "賬號不正確"),
PASSWORD_ERROR(215, "密碼不正確"),
PHONE_CODE_ERROR(215, "手機驗證碼不正確"),
LOGIN_MOBLE_ERROR( 216, "賬號不正確"),
ACCOUNT_STOP( 216, "賬號已停用"),
NODE_ERROR( 217, "該節點下有子節點,不可以刪除"),
COB_NEW_ORDER_FAIL( 217, "搶單失敗"),
MAP_FAIL( 217, "地圖服務呼叫失敗"),
PROFITSHARING_FAIL( 217, "分賬呼叫失敗"),
NO_START_SERVICE( 217, "未開啟代駕服務,不能更新位置資訊"),
DRIVER_START_LOCATION_DISTION_ERROR( 217, "距離代駕起始點1公里以內才能確認"),
DRIVER_END_LOCATION_DISTION_ERROR( 217, "距離代駕終點2公里以內才能確認"),
IMAGE_AUDITION_FAIL( 217, "圖片稽核不透過"),
AUTH_ERROR( 217, "認證透過後才可以開啟代駕服務"),
FACE_ERROR( 250, "當日未進行人臉識別"),
COUPON_EXPIRE( 250, "優惠券已過期"),
COUPON_LESS( 250, "優惠券庫存不足"),
COUPON_USER_LIMIT( 250, "超出領取數量"),
;
private Integer code;
private String message;
private ResultCodeEnum(Integer code, String message) {
this.code = code;
this.message = message;
}
}