OrderRefund.php 936 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: zhengmingwei
  5. * Date: 2020/1/6
  6. * Time: 11:25 下午
  7. */
  8. namespace addons\unishop\model;
  9. use addons\unishop\extend\Hashids;
  10. use think\Model;
  11. /**
  12. * 订单商品表
  13. * Class OrderExtend
  14. * @package addons\unishop\model
  15. */
  16. class OrderRefund extends Model
  17. {
  18. // 表名
  19. protected $name = 'unishop_order_refund';
  20. // 开启自动写入时间戳字段
  21. protected $autoWriteTimestamp = 'int';
  22. // 定义时间戳字段名
  23. protected $createTime = 'createtime';
  24. protected $updateTime = 'updatetime';
  25. // 隐藏属性
  26. protected $hidden = [
  27. 'user_id',
  28. 'order_id',
  29. ];
  30. // 货物状态 0=未收到,1=已收到
  31. const UNRECEIVED = 0;
  32. const RECEIVED = 1;
  33. // 服务类型 0=我要退款(无需退货),1=我要退货退款,2=换货
  34. const TYPE_REFUND_NORETURN = 0;
  35. const TYPE_REFUND_RETURN = 1;
  36. const TYPE_EXCHANGE = 2;
  37. }