Student.php 603 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace App\Models;
  3. use Carbon\Carbon;
  4. use Illuminate\Support\Facades\Log;
  5. class Student extends Model
  6. {
  7. const STATUS_OK = 1;
  8. const STATUS_PAUSE = 0;
  9. public static $statusMaps = [
  10. self::STATUS_OK => '正常',
  11. self::STATUS_PAUSE => '暂停'
  12. ];
  13. const AUTH_STATUS_WAIT = 0;
  14. const AUTH_STATUS_OK = 1;
  15. const AUTH_STATUS_NO = 2;
  16. public static $authStatusMaps = [
  17. self::AUTH_STATUS_WAIT => '待认证',
  18. self::AUTH_STATUS_OK => '认证成功',
  19. self::AUTH_STATUS_NO => '认证失败',
  20. ];
  21. protected $guarded = [];
  22. }