Visual_Novel_iOS/crush/Crush/Src/Models/S3Models.swift

46 lines
1.1 KiB
Swift
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// S3Models.swift
// Crush
//
// Created by Leon on 2025/7/21.
//
struct S3AuthData: Codable {
let securityToken: String?
let accessKeyId: String?
/// us-west-2
let region: String?
/// https://hhb.crushlevel.ai/dev/main/headImage/1952268491211472898/17545311197577575.jpeg
let urlPath: String?
let requestId: String? // SwiftNSObject
/// crushthem1
let bucket: String
/// dev/main/headImage/1952268491211472898/17545311197577575.jpeg
let path: String
/// crushthem1.s3.us-west-2.amazonaws.com
let endPoint: String?
let accessKeySecret: String?
/// String: "Thu Aug 07 10:00:24 CST 2025"
let expiration: String?
/// 17545311197577575.jpeg
let fileName: String
}
enum BucketS3Enum: String {
case UNKNOW //
case ROLE
case ALBUM
case HEAD_IMAGE
case IM_IMG
case SOUND
/// bucketbucketpath: dev/main/sound/0/*, urlPath
case SOUND_PATH
}
enum SuffixS3Enum: String {
case jpeg = "jpeg"
case png = "png"
case gif = "gif"
case mp3 = "mp3"
}