dnsmanagerd: Maintenance message slightly changed.
parent
f6602be98f
commit
b448278c84
|
@ -35,9 +35,15 @@ codecLogin ∷ CA.JsonCodec Login
|
|||
codecLogin = CA.object "Login" (CAR.record { token: CA.string })
|
||||
|
||||
{- 7 -}
|
||||
type Maintenance = { subject :: MaintenanceSubject.MaintenanceSubject, value :: Maybe Int }
|
||||
type Maintenance = { subject :: MaintenanceSubject.MaintenanceSubject
|
||||
, int :: Maybe Int
|
||||
, string :: Maybe String
|
||||
}
|
||||
codecMaintenance ∷ CA.JsonCodec Maintenance
|
||||
codecMaintenance = CA.object "Maintenance" (CAR.record { subject: MaintenanceSubject.codec, value: CAR.optional CA.int })
|
||||
codecMaintenance = CA.object "Maintenance" (CAR.record { subject: MaintenanceSubject.codec
|
||||
, int: CAR.optional CA.int
|
||||
, string: CAR.optional CA.string
|
||||
})
|
||||
|
||||
{- 9 -}
|
||||
type NewDomain = { domain :: String }
|
||||
|
|
Loading…
Reference in New Issue