messages.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. use App\Constants\HttpStatus;
  3. return [
  4. HttpStatus::CUSTOM_ERROR => '',
  5. HttpStatus::UNKNOWN_ERROR => 'Unknown error.',
  6. HttpStatus::OK => 'OK',
  7. HttpStatus::USER_DOES_NOT_EXIST => "User does not exist.",
  8. HttpStatus::PASSWORDS_ERROR => "Password error",
  9. HttpStatus::VERIFICATION_CODE_ERROR => 'Verification code error.',
  10. HttpStatus::VERIFICATION_CODE_EXPIRED => 'The verification code has expired.',
  11. HttpStatus::PASSWORD_INCONSISTENCY => 'Password inconsistency.',
  12. HttpStatus::USERNAME_ALREADY_EXISTS => 'The user name already exists. Please log in directly.',
  13. HttpStatus::EMAIL_ALREADY_EXISTS => 'Email already exists, please login directly.',
  14. HttpStatus::USERNAME_ERROR => 'User name error.',
  15. HttpStatus::VALIDATION_FAILED => 'Parameter validation failure.',
  16. HttpStatus::SYSTEM_ERROR => 'System error.',
  17. HttpStatus::AUTHORIZATION_HEADER_NOT_FOUND => 'Please log in.',
  18. HttpStatus::NO_COLLECT_YOURSELF => "Don't collect yourself.",
  19. HttpStatus::NO_BASIC_INFO => 'Please fill in the basic information first.',
  20. HttpStatus::NOT_FOUND => 'Not Found.',
  21. HttpStatus::AVATAR_MUST_SQUARE => 'Please crop the picture and upload it again.',
  22. HttpStatus::PAIRING_FAILURE => 'Pairing failure.',
  23. HttpStatus::COLLECT_COUNT_REACH_MAX => 'The number of collectibles reached the maximum.',
  24. HttpStatus::SEND_CODE_ERROR => 'Send failure',
  25. HttpStatus::PHONE_ERROR => 'The phone number is incorrect',
  26. HttpStatus::POST_DOES_NOT_EXIST => 'Post does not exist',
  27. HttpStatus::FILE_UPLOAD_ERROR => 'File upload error.',
  28. HttpStatus::INVITATION_CODE_ERROR => "Invitation code error.",
  29. HttpStatus::USER_ANOTHER_DEVICE => "The user has logged in to another device.",
  30. HttpStatus::INSUFFICIENT => "The remaining times are insufficient.",
  31. HttpStatus::MAXIMUM_NUMBER_OF_ADDRESSES => 'A maximum of 10 addresses can be added.',
  32. HttpStatus::HTTP_POST_ERROR => 'HTTP Post error.',
  33. HttpStatus::IM_ERROR => 'Im error',
  34. HttpStatus::PHONE_ALREADY_EXISTS => 'Phone number already exists, please login directly.',
  35. HttpStatus::GOOGLE_ERROR => 'Google login error.',
  36. HttpStatus::INSUFFICIENT_CHAT_BALANCE => 'Insufficient chat balance',
  37. HttpStatus::INSUFFICIENT_WALLET => 'Insufficient wallet balance',
  38. HttpStatus::FACEBOOK_ERROR => 'Facebook error',
  39. HttpStatus::VERIFY_ERROR => 'Verification failure',
  40. HttpStatus::PAY_VERIFY_ERROR => 'PAY_VERIFY_ERROR',
  41. HttpStatus::IM_SYSTEM_ERROR => 'Im system error',
  42. 'ok' => 'ok',
  43. ];