selfprivacy-rest-api/selfprivacy_api/graphql/mutations/mutation_interface.py
2022-08-18 00:58:56 +04:00

22 lines
396 B
Python

import strawberry
import typing
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 GenericJobButationReturn(MutationReturnInterface):
job: typing.Optional[ApiJob] = None