MyCollectionModel.ets
766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// {
// "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
}
}
@Observed
export class MyCollectionItem{
pageNum:number = 0
pageSize:number = 0
totalCount:number = 0
hasNext:number = 0
list:MyCollectionModel[] = []
}
export class MyCollectionListModel{
list:MyCollectionModel[] = []
pageNum: number = 0
pageSize: number = 20
totalCount: number = 0
constructor(list?:MyCollectionModel[],pageNum?: number,pageSize?: number,totalCount?: number) {
}
}