LNPurchaseResponse.swift 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //
  2. // LNPurchaseResponse.swift
  3. // Lanu
  4. //
  5. // Created by OneeChan on 2025/12/22.
  6. //
  7. import Foundation
  8. import AutoCodable
  9. enum LNCurrencyType: Int, Decodable {
  10. case coin = 0
  11. case diamond = 1
  12. case bean = 2
  13. }
  14. enum LNPurchasePlatform: Int, Decodable {
  15. case official = 0
  16. case android = 1
  17. case web = 2
  18. case iOS = 3
  19. }
  20. enum LNPurchasePayType: Int, Decodable {
  21. case apple = 1
  22. case google = 2
  23. }
  24. @AutoCodable
  25. class LNUserWalletInfoResponse: Decodable {
  26. var diamond: Double = 0
  27. var goldCoin: Double = 0
  28. var beanTotal: Double = 0
  29. var unsettledBean: Double = 0
  30. var availableBean: Double = 0
  31. }
  32. @AutoCodable
  33. class LNPurchaseGoodsVO: Decodable {
  34. var id: String = ""
  35. var coinRechargeAmount: Double = 0
  36. var amount: Double = 0
  37. var currency: String = ""
  38. var code: String = ""
  39. }
  40. @AutoCodable
  41. class LNPurchaseGoodsListResponse: Decodable {
  42. var items: [LNPurchaseGoodsVO] = []
  43. }
  44. @AutoCodable
  45. class LNPurchaseCreateOrderResponse: Decodable {
  46. var result: String = ""
  47. }
  48. @AutoCodable
  49. class LNExchangeExpectResponse: Decodable {
  50. var amount: Double = 0.0
  51. }