MyCollectionModel.ets
1.04 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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[];
}