2022-06-29 20:39:46 +03:00
|
|
|
import strawberry
|
2022-08-25 20:03:56 +03:00
|
|
|
import typing
|
|
|
|
|
|
|
|
from selfprivacy_api.graphql.common_types.jobs import ApiJob
|
2022-06-29 20:39:46 +03:00
|
|
|
|
2022-07-07 15:53:19 +02:00
|
|
|
|
2022-06-29 20:39:46 +03:00
|
|
|
@strawberry.interface
|
|
|
|
class MutationReturnInterface:
|
|
|
|
success: bool
|
|
|
|
message: str
|
|
|
|
code: int
|
2022-07-05 15:11:41 +03:00
|
|
|
|
2022-07-07 15:53:19 +02:00
|
|
|
|
2022-07-05 15:11:41 +03:00
|
|
|
@strawberry.type
|
|
|
|
class GenericMutationReturn(MutationReturnInterface):
|
|
|
|
pass
|
2022-08-25 20:03:56 +03:00
|
|
|
|
|
|
|
|
|
|
|
@strawberry.type
|
2023-06-21 06:46:56 +03:00
|
|
|
class GenericJobMutationReturn(MutationReturnInterface):
|
2022-08-25 20:03:56 +03:00
|
|
|
job: typing.Optional[ApiJob] = None
|