28 lines
653 B
Python
28 lines
653 B
Python
import graphene
|
|
from graphene import InputObjectType
|
|
|
|
from books.schema.inputs import ContentElementInput
|
|
from user.inputs import SchoolClassInput
|
|
|
|
|
|
class RoomInput(InputObjectType):
|
|
title = graphene.String()
|
|
description = graphene.String()
|
|
school_class = SchoolClassInput()
|
|
appearance = graphene.String()
|
|
|
|
|
|
class AddRoomArgument(RoomInput):
|
|
pass
|
|
|
|
|
|
class UpdateRoomArgument(RoomInput):
|
|
id = graphene.ID(required=True)
|
|
|
|
|
|
class AddRoomEntryArgument(InputObjectType):
|
|
title = graphene.String(required=True)
|
|
subtitle = graphene.String()
|
|
contents = graphene.List(ContentElementInput)
|
|
room = graphene.ID(required=True)
|