mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-01-09 10:31:20 -05:00
feat: Use Backend for Recipe Post Actions (#4163)
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
from enum import Enum
|
||||
from typing import Any
|
||||
|
||||
from pydantic import UUID4, ConfigDict
|
||||
|
||||
from mealie.schema._mealie import MealieModel
|
||||
from mealie.schema.response.pagination import PaginationBase
|
||||
|
||||
# ==================================================================================================================
|
||||
# CRUD
|
||||
|
||||
|
||||
class GroupRecipeActionType(Enum):
|
||||
link = "link"
|
||||
@@ -31,3 +35,12 @@ class GroupRecipeActionOut(SaveGroupRecipeAction):
|
||||
|
||||
class GroupRecipeActionPagination(PaginationBase):
|
||||
items: list[GroupRecipeActionOut]
|
||||
|
||||
|
||||
# ==================================================================================================================
|
||||
# Actions
|
||||
|
||||
|
||||
class GroupRecipeActionPayload(MealieModel):
|
||||
action: GroupRecipeActionOut
|
||||
content: Any
|
||||
|
||||
Reference in New Issue
Block a user