TSPTPStyleModel.swift 784 B

12345678910111213141516171819202122232425262728
  1. //
  2. // TSPTPStyleModel.swift
  3. // AIEmoji
  4. //
  5. // Created by 100Years on 2025/2/25.
  6. //
  7. import ObjectMapper
  8. class TSPTPStyleModel: TSBaseModel {
  9. var image:UIImage?//给上传图片用的,非模型使用
  10. var imageName:String = ""
  11. var imageText:String = ""
  12. var prompt:String = ""
  13. var isVip:Bool = false
  14. var specialStyle:Int = 0 //0 普通类型,1 热门类型,2 新类型
  15. var style:String = ""
  16. override func mapping(map: ObjectMapper.Map) {
  17. imageName <- map["imageName"]
  18. imageText <- map["imageText"]
  19. prompt <- map["prompt"]
  20. isVip <- map["isVip"]
  21. specialStyle <- map["specialStyle"]
  22. style <- map["style"]
  23. }
  24. }