RoleMenu.php 530 B

12345678910111213141516171819202122
  1. <?php
  2. namespace App\Model;
  3. use Illuminate\Database\Eloquent\Model;
  4. class RoleMenu extends Model
  5. {
  6. protected $table = "role_menu"; //指定表
  7. const CREATED_AT = 'crt_time';
  8. const UPDATED_AT = 'upd_time';
  9. protected $dateFormat = 'U';
  10. const type_one = 1;//个人
  11. const type_two = 2;//部门
  12. const type_three = 3;//所有
  13. public static $type_name = [
  14. self::type_one => '我创建的',
  15. self::type_two => '我的部门权限范围内',
  16. self::type_three => '所有',
  17. ];
  18. }