<?php
/**
 * Created by PhpStorm.
 * User: billy
 * Date: 10/02/2017
 * Time: 5:20 PM
 */

namespace App\Modules\Enums;

class ErrorCode
{
    //错误码类
    const DATABASE_ERROR = 0001;
    const PARAM_ERROR = 0002;
    const PACK_NOT_DEFINED = 0003;

    //user_related
    const TOKEN_NOT_PROVIDED = 1001;
    const TOKEN_EXPIRE = 1002;
    const TOKEN_INVALID = 1003;
    const SMS_ERROR = 1004;
    const SMS_INVALID_TYPE = 1005;
    const USER_NOT_EXIST = 1006;
    const USER_ALREADY_EXIST = 1007;
    const LOGIN_FAILED = 1008;
    const CREATE_TOKEN = 1009;
    const INPUT_INCOMPLETE = 1010;
    const USER_HAVE_NOT_MONEY = 1011;
    const CREATE_USER_FAILED = 1012;
    const OPEN_ID_ACCESS_TOKEN_ERROR = 1013;
    const USER_DISABLED = 1014;

    const MACHINE_NOT_EXIST = 1015;

    const RENT_ORDER_NOT_BACK = 1016;
    const RENT_ORDER_NOT_TAKE = 1017;
    const RENT_ORDER_ILLEGAL_TAKE = 1018;
    const STOCK_NOT_ENOUGH = 1019;
    const PRODUCTION_NOT_EXIST = 1020;
    const SPOT_NOT_EXIST = 1021;
    const GUIDE_RULE_NOT_EXIST = 1022;
    const GUIDE_RECORD_NOT_EXIST = 1023;
    const SHARE_NOT_ENOUGH = 1024;
    const NO_GUIDE_PERMISSION = 1025;
    const SHARE_NO_EXIST = 1026;
    const CODE_ERROR = 1027;
    const WE_MINIAPP_PAY_FAIL = 1028;
    const RENT_NOT_EXIST = 1029;
    const WE_REfOUND_FAIL = 1030;
    const NEED_TO_TAKE = 1031;
    const GUIDE_HAS_BUY = 1032;
    const SHARE_NOT_EXIST = 1033;

    const WE_REfUND_FAIL = 1030;


    const SALE_POWER_NOT_EXIST = 1034;
    const RENT_HAS_NOT_PAY = 1035;
    const SMS_SEND_FAIL = 1036;
    const CUSTOMER_HAS_REGISTER = 1037;
    const NO_AUTO_SEND = 1038;


    const BUSINESS_NOT_EXIST = 1039;
    const BUSINESS_DO_NOT_HAS_SPOT = 1040;
    const BUSINESS_DO_NOT_HAS_SPOT_PERMISSION = 1041;
    const SPOT_DO_NOT_HAS_MACHINE = 1042;
    const USER_BUSINESS_NOT_FIND = 1043;

    const FINANCE_NOT_EXIST = 1044;

    const BUSINESS_DO_NOT_HAS_THIS_SPOT = 1045;

    const COUPON_QRCODE_INVALID = 1046;
    const COUPON_EXPIRE = 1047;

    //sn
    const SN_NOT_EXIST = 6001;
    //手动弹出
    const MANUAL_TAKE_OUT_INVALID_HATCHNO = 8001;//无效的仓口号

}