mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-27 06:21:28 +00:00
22 lines
403 B
Python
22 lines
403 B
Python
from typing import Optional
|
|
import strawberry
|
|
|
|
from selfprivacy_api.graphql.common_types.jobs import ApiJob
|
|
|
|
|
|
@strawberry.interface
|
|
class MutationReturnInterface:
|
|
success: bool
|
|
message: str
|
|
code: int
|
|
|
|
|
|
@strawberry.type
|
|
class GenericMutationReturn(MutationReturnInterface):
|
|
pass
|
|
|
|
|
|
@strawberry.type
|
|
class GenericJobMutationReturn(MutationReturnInterface):
|
|
job: Optional[ApiJob] = None
|