创建版本

This commit is contained in:
2021-02-22 12:17:00 +08:00
commit af555f49c3
2332 changed files with 369202 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
<?php namespace Gdoo\User\Models;
use Gdoo\Index\Models\BaseModel;
class UserPosition extends BaseModel
{
protected $table = 'user_position';
public static $tabs = [
'name' => 'tab',
'items' => [
['value' => 'position.index', 'url' => 'user/position/index', 'name' => '职位列表'],
]
];
public function scopeDialog($q, $value)
{
return $q->whereIn('id', $value)
->pluck('name', 'id');
}
}