修复岗位错误

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