2024-04-29 00:17:15 +02:00
|
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2020-07-28 18:16:03 +02:00
|
|
|
|
module Mutations
|
|
|
|
|
class DossierModifierAnnotationIntegerNumber < Mutations::DossierModifierAnnotation
|
|
|
|
|
description "Modifier l’annotation au format nombre entier."
|
|
|
|
|
|
|
|
|
|
argument :value, Int, required: true
|
|
|
|
|
|
|
|
|
|
def resolve(dossier:, annotation_id:, instructeur:, value:)
|
2022-12-07 13:21:55 +01:00
|
|
|
|
resolve_with_type(dossier:, annotation_id:, instructeur:, value:)
|
2020-07-28 18:16:03 +02:00
|
|
|
|
end
|
2022-07-21 14:54:14 +02:00
|
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
|
|
def input_type
|
|
|
|
|
:integer_number
|
|
|
|
|
end
|
2020-07-28 18:16:03 +02:00
|
|
|
|
end
|
|
|
|
|
end
|