UserThird.php 805 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * @package merchant
  4. *
  5. * @author xaboy
  6. * @day 2020-04-28
  7. *
  8. *
  9. */
  10. namespace app\common\model\user;
  11. use app\common\model\BaseModel;
  12. /**
  13. * Class User
  14. * @package app\common\model\user
  15. * @author xaboy
  16. * @day 2020-04-28
  17. */
  18. class UserThird extends BaseModel
  19. {
  20. /**
  21. * @return string
  22. * @author xaboy
  23. * @day 2020-03-30
  24. */
  25. public static function tablePk(): string
  26. {
  27. return 'third_id';
  28. }
  29. /**
  30. * @return string
  31. * @author xaboy
  32. * @day 2020-03-30
  33. */
  34. public static function tableName(): string
  35. {
  36. return 'user_third';
  37. }
  38. /*获取信息*/
  39. public function getDetail($where = [], $field = "*")
  40. {
  41. $res = $this->where($where)->field($field)->find()->toArray();
  42. return $res;
  43. }
  44. }