feat: add Level field to UserRolesResponse and update roles handling in ToUserResponse
Deploy Application / deploy (push) Successful in 20s
Details
Deploy Application / deploy (push) Successful in 20s
Details
This commit is contained in:
parent
b0eaa3fd33
commit
6be0c5fa37
|
|
@ -510,6 +510,7 @@ func ToUserResponse(user query.M_User) dto.UserResponse {
|
|||
roles = append(roles, dto.UserRolesResponse{
|
||||
ID: role.ID.String(),
|
||||
Name: role.Name,
|
||||
Level: role.Level,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ type (
|
|||
Phone string `json:"phone"`
|
||||
Email string `json:"email"`
|
||||
PhotoUrl string `json:"photo_url"`
|
||||
Roles []UserRolesResponse `json:"roles,omitempty"`
|
||||
Roles []UserRolesResponse `json:"roles"`
|
||||
Client dto.IdNameResponse `json:"client"`
|
||||
Warehouses []dto.IdNameResponse `json:"warehouses"`
|
||||
}
|
||||
|
|
@ -98,6 +98,7 @@ type (
|
|||
UserRolesResponse struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Level int `json:"level"`
|
||||
}
|
||||
|
||||
UserPaginationResponse struct {
|
||||
|
|
|
|||
Loading…
Reference in New Issue