Student.php 642 B

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