package com.sikey.wa04.common.exception.errors;

import com.sikey.wa04.common.exception.BusinessException;
import lombok.AllArgsConstructor;
import lombok.Getter;
import org.springframework.http.HttpStatus;

@Getter
@AllArgsConstructor
public enum Errors {
    NOT_IMPLEMENTED(new BusinessException(HttpStatus.NOT_IMPLEMENTED.value(), "功能还未实现")), BEEN_BOUND(new BusinessException(HttpStatus.BAD_REQUEST.value(), "设备已被绑定")), PHONE_NUMBER_EXIST(new BusinessException(HttpStatus.BAD_REQUEST.value(), "手机号已存在")), MOBILE_PHONE_NUMBER_NOT_REGISTERED(new BusinessException(HttpStatus.BAD_REQUEST.value(), "手机号未注册")),CHILD_NOT_EXIST(new BusinessException(HttpStatus.BAD_REQUEST.value(), "小孩不存在")), FAMILY_GROUPS_DO_NOT_EXIST(new BusinessException(HttpStatus.INTERNAL_SERVER_ERROR.value(), "家庭群不存在")), USER_NOT_FOUND(new BusinessException(HttpStatus.BAD_REQUEST.value(), "用户不存在")), PLEASE_ENTER_MOBILE_PHONE_NUMBER(new BusinessException(HttpStatus.BAD_REQUEST.value(), "请输入手机号")), ACCOUNT_OR_PASSWORD_IS_INCORRECT(new BusinessException(HttpStatus.UNAUTHORIZED.value(), "账号名或密码不正确")), VERIFICATION_CODE_IS_INCORRECT(new BusinessException(HttpStatus.BAD_REQUEST.value(), "验证码不正确")), LOCATION_IOT_AMAP_REQUEST_FAILED(new BusinessException(HttpStatus.BAD_REQUEST.value(), "高德地图请求失败")), LOCATION_WEATHER_REQUEST_FAILED(new BusinessException(HttpStatus.BAD_REQUEST.value(), "天气请求失败")),
    ;

    private final BusinessException exception;
}
