Skip to content

Instantly share code, notes, and snippets.

@mazz
Created February 18, 2022 22:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mazz/2eb68fd1cff8af7729e8bd28fcc0d0b5 to your computer and use it in GitHub Desktop.
Save mazz/2eb68fd1cff8af7729e8bd28fcc0d0b5 to your computer and use it in GitHub Desktop.
viewmodel
struct SectionModel: Identifiable {
public var id: String
public var index: Int
public var title: String
public var subtotal: String
public var items: [MarkItemModel]
public var commentItems: [MarkItemModel]
}
struct MarkItemModel: Identifiable {
public var id: String
public var markCategoryId: String
public var index: Int = Int.min
public var ordinal: Int
public var desc: String
public var options: Int
public var markOptions: [MarkOptionModel]
public var mark: Int = Int.min
public var markItemType: MbyMarkItemType
public var imageNames: [String]
public var comment: String
public var isMissed: Bool
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment