travel/service/app/model/Qas.php

18 lines
296 B
PHP
Raw Normal View History

2024-06-24 20:58:23 +08:00
<?php
namespace app\model;
class Qas extends base
{
2024-06-27 19:53:53 +08:00
public function qaCitys()
{
return $this->hasOne(QaCitys::class,'city_id','city_id');
}
2024-06-28 17:30:56 +08:00
public function qaQuestions()
{
return $this->hasMany(QaQuestions::class,'qa_id','id')->order('sort desc');
}
2024-06-24 20:58:23 +08:00
}