.github
android
api
assets
debian
drift_schemas
ios
Flutter
Runner
Assets.xcassets
Base.lproj
Data
Post.swift
User.swift
Service
AppDelegate.swift
AppIntent.swift
GoogleService-Info.plist
Info.plist
NotifyDelegate.swift
Runner-Bridging-Header.h
Runner.entitlements
Runner.xcodeproj
Runner.xcworkspace
RunnerTests
SolarNotifyService
SolarShare
SolarWidget
.gitignore
Podfile
Podfile.lock
SolarWidgetExtension.entitlements
lib
linux
macos
snap
test
web
windows
.gitignore
.metadata
.roadsignrc
README.md
analysis_options.yaml
build.yaml
devtools_options.yaml
firebase.json
pubspec.lock
pubspec.yaml
roadsign.toml
39 lines
700 B
Swift
39 lines
700 B
Swift
//
|
|
// SolarPost.swift
|
|
// Runner
|
|
//
|
|
// Created by LittleSheep on 2024/12/14.
|
|
//
|
|
|
|
|
|
import Foundation
|
|
|
|
struct SolarPost : Codable {
|
|
let id: Int
|
|
let body: SolarPostBody
|
|
let publisher: SolarPublisher
|
|
let publisherId: Int
|
|
let createdAt: Date
|
|
let updatedAt: Date
|
|
let editedAt: Date?
|
|
let publishedAt: Date?
|
|
}
|
|
|
|
struct SolarPostBody : Codable {
|
|
let content: String?
|
|
let title: String?
|
|
let description: String?
|
|
let attachments: [String]?
|
|
}
|
|
|
|
struct SolarPublisher : Codable {
|
|
let id: Int
|
|
let name: String
|
|
let nick: String
|
|
let description: String?
|
|
let avatar: String?
|
|
let banner: String?
|
|
let createdAt: Date
|
|
let updatedAt: Date
|
|
}
|