Files
dafuweng-saiadmin6.x/server/app/api/lang/en.php

40 lines
2.0 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
declare(strict_types=1);
/**
* API 英文文案(对外接口推荐:英文 key
* 请求头 lang=en 时使用key 为英文错误码value 为英文展示文案
*/
return [
'SUCCESS' => 'Success',
'FAIL' => 'Fail',
'TOKEN_REQUIRED' => 'Please provide token',
'TOKEN_INVALID' => 'Invalid or expired token',
'TOKEN_EXPIRED_RELOGIN' => 'Token expired, please login again',
'TOKEN_FORMAT_INVALID' => 'Token format invalid',
'AUTH_TOKEN_REQUIRED' => 'Please provide auth-token',
'AUTH_TOKEN_EXPIRED' => 'auth-token expired',
'AUTH_TOKEN_INVALID' => 'auth-token invalid',
'AUTH_TOKEN_FORMAT_INVALID' => 'auth-token format invalid',
'AUTH_TOKEN_INVALID_OR_EXPIRED' => 'auth-token invalid or expired',
'USER_NOT_FOUND' => 'User not found',
'USERNAME_REQUIRED' => 'username is required',
'USERNAME_PASSWORD_REQUIRED' => 'username and password are required',
'PASSWORD_WRONG' => 'Wrong password',
'ACCOUNT_DISABLED' => 'Account is disabled and cannot log in',
'BUY_TICKET_ERROR' => 'Invalid lottery ticket purchase',
'INSUFFICIENT_BALANCE' => 'Insufficient balance',
'INSUFFICIENT_TICKETS' => 'Insufficient lottery tickets',
'DIRECTION_INVALID' => 'direction must be 0 or 1',
'BALANCE_LESS_THAN_MIN' => 'Balance %s is less than %s, cannot continue',
'LOTTERY_CONFIG_NOT_FOUND' => 'Lottery config not found',
'LOTTERY_POOL_CONFIG_NOT_FOUND_DEFAULT' => 'Lottery pool config not found (name=default required)',
'LOTTERY_POOL_CONFIG_DEFAULT_NOT_FOUND' => 'No name=default pool config found, please create one first',
'NO_AVAILABLE_REWARD_CONFIG' => 'No available reward config',
'CONFIG_ID_NOT_FOUND_OR_TIER_EMPTY' => 'Config ID %s not found or tier is empty',
'DATA_NOT_FOUND' => 'Data not found',
'BATCH_DELETE_FORBIDDEN' => 'Batch delete is not allowed',
'SUPER_ADMIN_CANNOT_DELETE' => 'Super admin cannot be deleted',
'OLD_PASSWORD_WRONG' => 'Old password is incorrect',
];