CNLiveDownSlideModel.swift
1.72 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
//
// CNLiveDownSlideModel.swift
// metaCode
//
// Created by zx on 2023/10/19.
//
import Foundation
// !!!: /contentApi/getPage 接口数据
class CNLiveDownSlideModel: BaseModel {
///大块标题id
var blockId: String?
///大块标题
var blockName: String?
///大块副标题
var blockSubTitle: String?
///类型 type=4一排两个 74今日推荐 12列表全部课程 75单课程大图/
var type: String?
///显示几行
var rowNum: Int = 0
///具体内容 title subTitle poster thirdUrl或者shareUrl
var contents = [CNLiveDownSlideContentsModel]()
///cell高度
var cellH: CGFloat = 0
}
//下滑tableview背景颜色
let kCNDownSlideContentsModelModel1: String = "1"
let kCNDownSlideContentsModelModel2: String = "2"
let kCNDownSlideContentsModelModel3: String = "3"
let kCNDownSlideContentsModelModel4: String = "4"
let kCNDownSlideContentsModelModelAlbum: String = "album"
let kCNDownSlideContentsModelModelAlbum_video: String = "album_video"
let kCNDownSlideContentsModelModelAlbum_ugc: String = "album_ugc"
class CNLiveDownSlideContentsModel: BaseModel {
///内容id
var contentId: String?
///主标题
var title: String?
///副标题
var subTitle: String?
///头像/
var poster: String?
///videoId
var pid: String?
///model
///1,2时跳转:sharelUrl后面拼接 ?contentId=contentId&videoId=pid
///3,4时跳转:thirdUrl
///“album”,“album_video”,“album_ugc” -> http://wjjh5.cnlive.com/cnYmAlbumVideoList.html?aid=contentId&title=titlle
/// aid:专辑id,title:专辑名称(需要encode)
var model: String?
///model为1,2时
var shareUrl: String?
///model为3,4时跳转url
var thirdUrl: String?
}