diff options
Diffstat (limited to 'common/src/Common/Model/IncomePage.hs')
-rw-r--r-- | common/src/Common/Model/IncomePage.hs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/common/src/Common/Model/IncomePage.hs b/common/src/Common/Model/IncomePage.hs new file mode 100644 index 0000000..977b0ea --- /dev/null +++ b/common/src/Common/Model/IncomePage.hs @@ -0,0 +1,19 @@ +module Common.Model.IncomePage + ( IncomePage(..) + ) where + +import Data.Aeson (FromJSON, ToJSON) +import GHC.Generics (Generic) + +import Common.Model.Income (Income) +import Common.Model.IncomeHeader (IncomeHeader) + +data IncomePage = IncomePage + { _incomePage_page :: Int + , _incomePage_header :: IncomeHeader + , _incomePage_incomes :: [Income] + , _incomePage_totalCount :: Int + } deriving (Eq, Show, Generic) + +instance FromJSON IncomePage +instance ToJSON IncomePage |