From 87c5676846901fe442427d4fc2ddda8625f8af4d Mon Sep 17 00:00:00 2001 From: qowevisa Date: Wed, 27 Nov 2024 21:59:17 +0200 Subject: [PATCH] Add NameWithParent field for types.DbCategory --- types/types.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/types.go b/types/types.go index c4cbb84..e0a4081 100644 --- a/types/types.go +++ b/types/types.go @@ -42,6 +42,8 @@ type DbCategory struct { // Parent is used as a infinite sub-category structure // Can be 0 ParentID uint `json:"parent_id" example:"0"` + // Purely UI things + NameWithParent string `json:"name_with_parent" example:"World -> Moldova"` } type DbDebt struct {