BuycarModel.php 218 B

1234567891011
  1. <?php
  2. namespace app\api\model;
  3. use think\Model;
  4. class BuycarModel extends Model
  5. {
  6. protected $name = 'buycar';
  7. public function commodity() {
  8. return $this->hasOne('commodityModel','c_id','c_id');
  9. }
  10. }