1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <?php
- declare (strict_types=1);
- namespace app\dao\user\label;
- use app\dao\BaseDao;
- use app\model\user\label\UserLabelRelation;
- class UserLabelRelationDao extends BaseDao
- {
-
- protected function setModel(): string
- {
- return UserLabelRelation::class;
- }
-
- public function getLabelList(array $uids, int $type = 0, int $relation_id = 0)
- {
- return $this->search(['uid' => $uids])->where('type', $type)->where('relation_id', $relation_id)->with('label')->select()->toArray();
- }
- }
|