export const ERROR_CODE = {
ERR_DUPLICATED_PHONE_NO: 100001,
ERR_VERIFY_CODE: 100002,
ERR_VERIFY_CODE_TIME: 100003,
NOT_SUPPORT_PHONE_NO: 100004,
ERR_FORMAT_PHONE_NO: 110001,
ERR_FORMAT_EMAIL: 110002,
ERR_NULL_PHONE_NO: 120001,
ERR_NULL_EMAIL: 120002,
ERR_NULL_VERIFY_CODE: 120003,
ERR_NULL_PASSWORD: 120004,
NOT_API: 200001,
UNKNOW_ERROR: 9999,
};
export const ERROR_MESSAGE = {
ERR_DUPLICATED_PHONE_NO: "",
ERR_VERIFY_CODE: "",
ERR_VERIFY_CODE_TIME: "",
NOT_SUPPORT_PHONE_NO: "",
ERR_FORMAT_PHONE_NO: "",
ERR_FORMAT_EMAIL: "",
ERR_NULL_PHONE_NO: "",
ERR_NULL_EMAIL: "",
ERR_NULL_VERIFY_CODE: "",
ERR_NULL_PASSWORD: "",
NOT_API: " API",
UNKNOW_ERROR: "",
};
I want some combinations to start with 100000 and some with 110000. I don"t want to change the definition of each. What is the elegant way to implement it?