mirror of
https://github.com/ProtonMail/go-proton-api.git
synced 2025-12-23 23:57:50 -05:00
feat: Add ParentID to Label
This commit is contained in:
@@ -21,7 +21,9 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Label struct {
|
type Label struct {
|
||||||
ID string
|
ID string
|
||||||
|
ParentID string
|
||||||
|
|
||||||
Name string
|
Name string
|
||||||
Path []string
|
Path []string
|
||||||
Color string
|
Color string
|
||||||
|
|||||||
@@ -31,9 +31,10 @@ func (label *label) toLabel(labels map[string]*label) proton.Label {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return proton.Label{
|
return proton.Label{
|
||||||
ID: label.labelID,
|
ID: label.labelID,
|
||||||
Name: label.name,
|
ParentID: label.parentID,
|
||||||
Path: path,
|
Name: label.name,
|
||||||
Type: label.labelType,
|
Path: path,
|
||||||
|
Type: label.labelType,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user