add swiftUI code
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
//
|
||||
// InviteReponse.swift
|
||||
// SFI
|
||||
//
|
||||
// Created by Mac on 2024/10/21.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
||||
// MARK: - Welcome
|
||||
struct InviteReponse: Codable {
|
||||
let status, message: String?
|
||||
let data: InviteReponseDataClass?
|
||||
}
|
||||
|
||||
// MARK: - DataClass
|
||||
struct InviteReponseDataClass: Codable {
|
||||
let codes: [InviteCode]?
|
||||
let stat: [Int]?
|
||||
}
|
||||
|
||||
// MARK: - Code
|
||||
struct InviteCode: Codable,Identifiable {
|
||||
var id = UUID().uuidString
|
||||
let userID: Int
|
||||
let code: String
|
||||
let createdAt:Int
|
||||
|
||||
enum CodingKeys: String, CodingKey {
|
||||
case userID = "user_id"
|
||||
case code
|
||||
case createdAt = "created_at"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user