MyCollectionModel.ets 1.04 KB
import { ContentDTO } from 'wdBean/Index';

// {
//   "hasNext": 0,
//   "list": [
//   Object{...},
// Object{...}
// ],
// "pageNum": 1,
// "pageSize": 20,
// "totalCount": 2
// },

export  class MyCollectionModel{
  //标题
  newsTitle:string
  //封面
  coverUrl:string

  constructor(newsTitle:string , coverUrl:string) {
    this.newsTitle = newsTitle;
    this.coverUrl = coverUrl
  }
}

export class  MyCollectionItem{
  pageNum:number = 0
  pageSize:number = 0
  totalCount:number = 0
  hasNext:number = 0
  list:ContentDTO[] = []

  constructor(list?:ContentDTO[],pageNum?: number,pageSize?: number,totalCount?: number,hasNext?:number) {
  }
}

export interface  MyCollectionListModel{
  data: MyCollectionItem
  code: number
  message: string
  success: string
  timestamp: number
}


export interface contentListItemParams{
  contentId?:string;
  contentType?:string;
  relType?:string;
  contentRelId?:string;
}

export interface collcetRecordParams {
  delAll?: number; //是否全部删除

  status?: number;

  contentList?: contentListItemParams[];
}