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