Recipe creation, editing and deletion are now supported
This commit is contained in:
@@ -13,6 +13,10 @@ struct Category: Codable {
|
||||
let recipe_count: Int
|
||||
}
|
||||
|
||||
extension Category: Identifiable, Hashable {
|
||||
var id: String { name }
|
||||
}
|
||||
|
||||
struct Recipe: Codable {
|
||||
let name: String
|
||||
let keywords: String
|
||||
@@ -23,6 +27,10 @@ struct Recipe: Codable {
|
||||
let recipe_id: Int
|
||||
}
|
||||
|
||||
extension Recipe: Identifiable, Hashable {
|
||||
var id: String { name }
|
||||
}
|
||||
|
||||
struct RecipeDetail: Codable {
|
||||
var name: String
|
||||
var keywords: String
|
||||
@@ -140,3 +148,9 @@ struct MetaData: Codable {
|
||||
let status: String
|
||||
let statuscode: Int
|
||||
}
|
||||
|
||||
|
||||
// Networking
|
||||
struct ServerMessage: Decodable {
|
||||
let msg: String
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user