Add NameWithParent field for types.DbCategory
This commit is contained in:
parent
fc2b066c12
commit
87c5676846
|
@ -42,6 +42,8 @@ type DbCategory struct {
|
||||||
// Parent is used as a infinite sub-category structure
|
// Parent is used as a infinite sub-category structure
|
||||||
// Can be 0
|
// Can be 0
|
||||||
ParentID uint `json:"parent_id" example:"0"`
|
ParentID uint `json:"parent_id" example:"0"`
|
||||||
|
// Purely UI things
|
||||||
|
NameWithParent string `json:"name_with_parent" example:"World -> Moldova"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type DbDebt struct {
|
type DbDebt struct {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user