Add Projects, Schedule, and Invite modules with home routing.
Migrate project management, schedule management, and photographer invitation flows from placeholders, including project image OSS upload and shared business models. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -721,52 +721,6 @@ struct MediaAlbumAddTagRequest: Encodable, Equatable {
|
||||
let name: String
|
||||
}
|
||||
|
||||
/// 摄影项目列表项实体,表示样片上传时可关联的项目。
|
||||
struct PhotographerProjectItem: Decodable, Identifiable, Hashable {
|
||||
let id: Int
|
||||
let type: Int
|
||||
let typeName: String
|
||||
let status: Int
|
||||
let statusName: String
|
||||
let name: String
|
||||
let coverProject: String
|
||||
let coverVideo: String
|
||||
let price: String
|
||||
let otPrice: String
|
||||
let priceDeposit: String
|
||||
|
||||
/// 字段映射,兼容后端下划线命名。
|
||||
enum CodingKeys: String, CodingKey {
|
||||
case id
|
||||
case type
|
||||
case typeName = "type_name"
|
||||
case status
|
||||
case statusName = "status_name"
|
||||
case name
|
||||
case coverProject = "cover_project"
|
||||
case coverVideo = "cover_video"
|
||||
case price
|
||||
case otPrice = "ot_price"
|
||||
case priceDeposit = "price_deposit"
|
||||
}
|
||||
|
||||
/// 宽松解码项目列表项。
|
||||
init(from decoder: Decoder) throws {
|
||||
let container = try decoder.container(keyedBy: CodingKeys.self)
|
||||
id = try container.decodeLossyInt(forKey: .id) ?? 0
|
||||
type = try container.decodeLossyInt(forKey: .type) ?? 0
|
||||
typeName = try container.decodeLossyString(forKey: .typeName)
|
||||
status = try container.decodeLossyInt(forKey: .status) ?? 0
|
||||
statusName = try container.decodeLossyString(forKey: .statusName)
|
||||
name = try container.decodeLossyString(forKey: .name)
|
||||
coverProject = try container.decodeLossyString(forKey: .coverProject)
|
||||
coverVideo = try container.decodeLossyString(forKey: .coverVideo)
|
||||
price = try container.decodeLossyString(forKey: .price)
|
||||
otPrice = try container.decodeLossyString(forKey: .otPrice)
|
||||
priceDeposit = try container.decodeLossyString(forKey: .priceDeposit)
|
||||
}
|
||||
}
|
||||
|
||||
/// 素材本地待上传文件实体,表示封面或媒体文件的内存数据。
|
||||
struct MediaLocalUploadFile: Identifiable, Equatable {
|
||||
let id = UUID()
|
||||
|
||||
Reference in New Issue
Block a user