| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- <?php
- namespace app\model\saas;
- use app\extra\basic\Model;
- use think\model\relation\HasMany;
- use think\model\relation\HasOne;
- /**
- * @property integer $id (主键)
- * @property mixed $poi_id
- * @property string $nick_name 昵称
- * @property string $unique_id 抖音号
- * @property string $avatar_url
- * @property string $city_name
- * @property mixed $uid 抖音唯一ID
- * @property string $fans_count
- * @property mixed $fans_tag_list 粉丝标签
- * @property string $talent_level_display 带货力
- * @property string $talent_item_level_display 视频带货力
- * @property string $talent_live_level_display 直播
- * @property string $content_level_display 内容力
- * @property string $credit_score_display 信用分
- * @property string $rank_display 视频榜
- * @property mixed $create_at
- */
- class SaasStar extends Model
- {
- /**
- * The connection name for the model.
- *
- * @var string|null
- */
- protected $connection = 'mysql';
-
- /**
- * The table associated with the model.
- *
- * @var string
- */
- protected string $table = "saas_star";
-
- /**
- * The primary key associated with the table.
- *
- * @var string
- */
- protected string $primaryKey = "id";
-
- /**
- * Indicates if the model should be timestamped.
- *
- * @var bool
- */
- public bool $timestamps = false;
- public function getShowNicknameAttr($data): string
- {
- return unicodeToEmoji($data);
- }
- public function poi(): HasOne
- {
- return $this->hasOne(SaasStore::class,'poi_id','poi_id');
- }
- }
|