aboutsummaryrefslogtreecommitdiff
path: root/common/src/Common/Model/CategoryPage.hs
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/Common/Model/CategoryPage.hs')
-rw-r--r--common/src/Common/Model/CategoryPage.hs9
1 files changed, 5 insertions, 4 deletions
diff --git a/common/src/Common/Model/CategoryPage.hs b/common/src/Common/Model/CategoryPage.hs
index 476b4ce..e20f49f 100644
--- a/common/src/Common/Model/CategoryPage.hs
+++ b/common/src/Common/Model/CategoryPage.hs
@@ -5,12 +5,13 @@ module Common.Model.CategoryPage
import Data.Aeson (FromJSON, ToJSON)
import GHC.Generics (Generic)
-import Common.Model.Category (Category)
+import Common.Model.Category (Category, CategoryId)
data CategoryPage = CategoryPage
- { _categoryPage_page :: Int
- , _categoryPage_categories :: [Category]
- , _categoryPage_totalCount :: Int
+ { _categoryPage_page :: Int
+ , _categoryPage_categories :: [Category]
+ , _categoryPage_usedCategories :: [CategoryId]
+ , _categoryPage_totalCount :: Int
} deriving (Eq, Show, Generic)
instance FromJSON CategoryPage