ChatModel.swift 527 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // ChatModel.swift
  3. // AiKeyboard
  4. //
  5. // Created by Destiny on 2025/4/30.
  6. //
  7. import Foundation
  8. import ObjectMapper
  9. // MARK: Initializer and Properties
  10. struct ReplyModel: Mappable {
  11. var content: String?
  12. // MARK: JSON
  13. init?(map: Map) { }
  14. mutating func mapping(map: Map) {
  15. content <- map["content"]
  16. }
  17. }
  18. struct SpeakModel: Mappable {
  19. var list: [String]?
  20. // MARK: JSON
  21. init?(map: Map) { }
  22. mutating func mapping(map: Map) {
  23. list <- map["list"]
  24. }
  25. }