feat: 更新素材管理和举报风险地图
This commit is contained in:
@ -158,6 +158,14 @@ struct SampleMaterialOrderInfo: Decodable, Sendable, Equatable {
|
||||
self.refundTotal = refundTotal
|
||||
self.avgChange = avgChange
|
||||
}
|
||||
|
||||
init(from decoder: Decoder) throws {
|
||||
let container = try decoder.container(keyedBy: CodingKeys.self)
|
||||
totalNum = try container.decodeIfPresent(Int.self, forKey: .totalNum) ?? 0
|
||||
avgOrderAmount = try container.decodeIfPresent(String.self, forKey: .avgOrderAmount) ?? "0"
|
||||
refundTotal = try container.decodeIfPresent(String.self, forKey: .refundTotal) ?? "0"
|
||||
avgChange = try container.decodeIfPresent(Int.self, forKey: .avgChange) ?? 0
|
||||
}
|
||||
}
|
||||
|
||||
/// 样片详情响应,对齐 Android `SampleDetailResponse`。
|
||||
|
||||
Reference in New Issue
Block a user