Commit 4bebd8ee authored by Alex朱枝文's avatar Alex朱枝文

兼容重传

parent ca53b00b
......@@ -160,9 +160,19 @@ class YHCirclePublishViewController: YHBaseViewController {
return view
}()
init(currentUser: UserInfo? = nil, id: String? = nil) {
init(currentUser: UserInfo? = nil, id: String? = nil, mediaItems: [YHSelectMediaItem]? = nil, title: String? = nil, content: String? = nil) {
self.currentUser = currentUser
self.circleId = id
if let mediaItems = mediaItems {
self.mediaItems = mediaItems
}
if let title = title {
//
}
if let content = content {
//
}
super.init(nibName: nil, bundle: nil)
}
......
......@@ -12,6 +12,7 @@ class YHSelectMediaItem {
var name: String
var type: YHMediaType
var image: UIImage?
var imageURL: URL?
var videoURL: URL?
var duration: TimeInterval?
......@@ -27,10 +28,11 @@ class YHSelectMediaItem {
case failed // 上传失败
}
init(name: String = "", type: YHMediaType = .image, image: UIImage? = nil, videoURL: URL? = nil, duration: TimeInterval? = nil) {
init(name: String = "", type: YHMediaType = .image, image: UIImage? = nil, imageURL: URL? = nil, videoURL: URL? = nil, duration: TimeInterval? = nil) {
self.name = name
self.type = type
self.image = image
self.imageURL = imageURL
self.videoURL = videoURL
self.duration = duration
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment