init commit,

This commit is contained in:
louiscklaw
2025-05-28 09:55:51 +08:00
commit efe70ceb69
8042 changed files with 951668 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
//
// GetPostsResponse.swift
// watchapp Watch App
//
// Created by Alexander Harding on 8/2/23.
//
import Foundation
struct GetPostsResponse: Codable {
let posts: [PostView]
}

View File

@@ -0,0 +1,16 @@
//
// Post.swift
// watchapp Watch App
//
// Created by Alexander Harding on 8/2/23.
//
import Foundation
struct Post: Codable, Identifiable {
let id: Int
let name: String
let url: String?
let body: String?
let thumbnailUrl: String?
}

View File

@@ -0,0 +1,17 @@
//
// PostView.swift
// watchapp Watch App
//
// Created by Alexander Harding on 8/2/23.
//
import Foundation
struct PostView: Codable, Identifiable {
var id: Int {
post.id
}
let post: Post
let saved: Bool
}

View File

@@ -0,0 +1,14 @@
//
// SavePost.swift
// watchapp Watch App
//
// Created by Alexander Harding on 8/2/23.
//
import Foundation
struct SavePost: Codable {
let post_id: Int
let save: Bool
let auth: String
}