feat(role): Add ParentID field to RoleMenuResponse and update ToRoleResponse mapping

This commit is contained in:
Habib Fatkhul Rohman 2025-11-07 13:55:30 +07:00
parent de53d59686
commit 62082a7dce
2 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,7 @@ type RoleMenuResponse struct {
IconUrl string `json:"icon_url"` IconUrl string `json:"icon_url"`
Url string `json:"url"` Url string `json:"url"`
Sequence int `json:"sequence"` Sequence int `json:"sequence"`
ParentID string `json:"parent_id,omitempty"`
} }
type RolePermissionsResponse struct { type RolePermissionsResponse struct {

View File

@ -503,6 +503,7 @@ func ToRoleResponse(role entities.M_Role) dto.RoleResponse {
IconUrl: m.IconUrl, IconUrl: m.IconUrl,
Url: m.Url, Url: m.Url,
Sequence: m.Sequence, Sequence: m.Sequence,
ParentID: m.ParentID.String(),
}) })
} }