TaskList.php 365 B

123456789101112131415161718
  1. <?php
  2. namespace app\model;
  3. use think\Model;
  4. class TaskList extends Model
  5. {
  6. public function audios(){
  7. return $this->hasOne(AudioList::class,'id','audio');
  8. }
  9. public function backs(){
  10. return $this->hasOne(BackList::class,'id','back');
  11. }
  12. public function roles(){
  13. return $this->hasOne(RoleList::class,'id','role');
  14. }
  15. }