Brak opisu

PhotoRepository.swift 451B

12345678910111213141516171819202122
  1. //
  2. // PhotoRepository.swift
  3. // PaiaiDataKit
  4. //
  5. // Created by ffib on 2019/1/2.
  6. // Copyright © 2019 yb. All rights reserved.
  7. //
  8. import Foundation
  9. import RxSwift
  10. protocol PhotoRepository {
  11. func load(page: Int) -> Single<NetworkArrayData<PhotoItem>>
  12. func upload(data: Data) -> Single<PhotoItem>
  13. }
  14. extension PhotoRepository {
  15. func upload(data: Data) -> Single<PhotoItem> {
  16. fatalError("The function is not implemented")
  17. }
  18. }