feat(role): Add ParentID field to RoleMenuResponse and update ToRoleResponse mapping
This commit is contained in:
parent
de53d59686
commit
62082a7dce
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue