feat : order info
This commit is contained in:
@@ -96,4 +96,20 @@ class AdminUser extends Model
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $ids
|
||||
* @return array
|
||||
*/
|
||||
public function getDataArrByIds(array $ids): array
|
||||
{
|
||||
$res = $this
|
||||
->whereIn('id',$ids)
|
||||
->orderBy('sort')
|
||||
->get();
|
||||
|
||||
if ($res->isEmpty()) return [];
|
||||
|
||||
return $res->toArray();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user