Foot.php 216 B

123456789101112
  1. <?php
  2. namespace app\api\model;
  3. use think\Model;
  4. class Foot extends Model
  5. {
  6. protected $name = 'foot';
  7. public function commodity ()
  8. {
  9. return $this->belongsTo('CommodityModel','c_id','c_id');
  10. }
  11. }