blob: 5ae68c9decdb6e239fc39551b8f1b7f09b6687d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{-# LANGUAGE DeriveGeneric #-}
module Model.Json.TotalPayment
( TotalPayment(..)
) where
import GHC.Generics
import Data.Text (Text)
import Data.Aeson
import Model.Database (UserId)
data TotalPayment = TotalPayment
{ userId :: UserId
, totalPayment :: Int
} deriving (Show, Generic)
instance FromJSON TotalPayment
instance ToJSON TotalPayment
|