SaasStar.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. namespace app\model\saas;
  3. use app\extra\basic\Model;
  4. /**
  5. * @property integer $id (主键)
  6. * @property mixed $poi_id
  7. * @property string $nick_name 昵称
  8. * @property string $unique_id 抖音号
  9. * @property string $avatar_url
  10. * @property string $city_name
  11. * @property mixed $uid 抖音唯一ID
  12. * @property string $fans_count
  13. * @property mixed $fans_tag_list 粉丝标签
  14. * @property string $talent_level_display 带货力
  15. * @property string $talent_item_level_display 视频带货力
  16. * @property string $talent_live_level_display 直播
  17. * @property string $content_level_display 内容力
  18. * @property string $credit_score_display 信用分
  19. * @property string $rank_display 视频榜
  20. * @property mixed $create_at
  21. */
  22. class SaasStar extends Model
  23. {
  24. /**
  25. * The connection name for the model.
  26. *
  27. * @var string|null
  28. */
  29. protected $connection = 'mysql';
  30. /**
  31. * The table associated with the model.
  32. *
  33. * @var string
  34. */
  35. protected string $table = "saas_star";
  36. /**
  37. * The primary key associated with the table.
  38. *
  39. * @var string
  40. */
  41. protected string $primaryKey = "id";
  42. /**
  43. * Indicates if the model should be timestamped.
  44. *
  45. * @var bool
  46. */
  47. public bool $timestamps = false;
  48. public function getShowNicknameAttr($data): string
  49. {
  50. return unicodeToEmoji($data);
  51. }
  52. }