FollowListDetailItem.ets 2.07 KB

/**
 *
 "attentionNum": 0,
 "authIcon": "",
 "authId": 0,
 "authPersonal": "",
 "authTitle": "",
 "categoryAuth": "",
 "city": "110100",
 "cnAttentionNum": 0,
 "cnCollectNum": 0,
 "cnCommentNum": 0,
 "cnFansNum": 4,
 "cnIsAttention": 1,
 "cnIsComment": 1,
 "cnIsLike": 1,
 "cnLikeNum": 0,
 "cnLiveCommentControl": 1,
 "cnLiveGiftControl": 1,
 "cnLiveLikeControl": 1,
 "cnLiveShareControl": 1,
 "cnMainControl": 1,
 "cnRegistTime": 1695280071000,
 "cnShareControl": 1,
 "cnShareNum": 0,
 "cnUserId": "444937588589253",
 "cnUserName": "QACrawler2115",
 "cnUserType": "2",
 "collectNum": 0,
 "creatorId": "3004862",
 "district": "110101",
 "fansNum": 0,
 "headPhotoUrl": "https://sitcontentjdcdn.aikan.pdnews.cn/vod/content/202309/202309Th211436299/GLN.png?x-oss-process=image/resize,l_400/auto-orient,1/quality,q_90/format,jpg",
 "honoraryIcon": "",
 "honoraryTitle": "",
 "introduction": "知识博主",
 "isAttention": 1,
 "isComment": 1,
 "isLike": 1,
 "isVisiable": 1,
 "likeNum": 0,
 "liveCommentControl": 1,
 "liveGiftControl": 1,
 "liveLikeControl": 1,
 "liveShareControl": 1,
 "posterShareControl": 1,
 "province": "110000",
 "publishNum": 0,
 "region": "",
 "shareControl": 1,
 "shareNum": 0,
 "shopOpen": 0,
 "storeUrl": "",
 "subjectType": 0,
 "userId": "",
 "userName": "QACrawler2115",
 "userType": "2",
 "waresSwitch": 1
 */

@Observed
export class FollowListDetailItem{
  headPhotoUrl:string //头像
  cnUserName:string   //昵称
  cnFansNum:number    //粉丝数
  introduction:string //介绍
  status:string = "0" //是否已经关注
  creatorId:string = ""
  attentionUserId:string = ""

  attentionCreatorId:string = ""
  attentionHeadPhotoUrl:string = ""
  attentionUserName:string = ""
  fansNum :number = 0


  constructor(headPhotoUrl:string,cnUserName:string,cnFansNum:number,introduction:string,creatorId:string,status:string,attentionUserId:string) {
    this.headPhotoUrl = headPhotoUrl
    this.cnUserName = cnUserName
    this.cnFansNum = cnFansNum
    this.introduction = introduction
    this.creatorId = creatorId
    this.status = status
    this.attentionUserId = attentionUserId
  }
}