| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace app\agent\model\order;
- use app\common\model\BaseModel;
- class Goods extends BaseModel
- {
- protected $name = 'goods_order';
- /**
- *
- * @author 许祖兴 < zuxing.xu@lettered.cn>
- * @date 2020/7/3 9:14
- *
- * @return \think\model\relation\BelongsTo
- */
- public function user()
- {
- return $this->belongsTo('\app\common\model\Users','user_id');
- }
- /**
- *
- * @author 许祖兴 < zuxing.xu@lettered.cn>
- * @date 2020/7/3 9:14
- *
- * @return \think\model\relation\BelongsTo
- */
- public function seller()
- {
- return $this->belongsTo('\app\common\model\Seller','seller_id');
- }
- /**
- *
- * @author 许祖兴 < zuxing.xu@lettered.cn>
- * @date 2020/7/3 9:14
- *
- * @return \think\model\relation\BelongsTo
- */
- public function addr()
- {
- return $this->belongsTo('\app\common\model\UsersAddr','addr_id');
- }
- }
|