mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-24 13:01:28 +00:00
7935de0fe1
Co-authored-by: inexcode <inex.code@selfprivacy.org> Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api/pulls/13
22 lines
396 B
Python
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
|